How to Debug an nTop Automate Error in Python


Learn how to debug errors in your nTop Automate process from Python when an error is shown based on your inputs.

Applies to:

  • Automating nTop notebooks for repeatable and intelligent workflows
  • Interacting with external software suites and databases


  • Set up your Python script for modifying inputs and calling nTop, as shown here.
  • Find the 'exePath' variable used to point to the nTopCL executable
    exePath =r"C:/Program Files/nTopology/nTop Platform/nTopCL.exe" #nTop Automate path
  • Change the exePath variable to refer to nTop.exe, instead of nTopCL.exe. This is the standard nTop Platform executable, so running the script will open up the nTop window with the inputs specified by the command line process.
    exePath = r"C:/Program Files/nTopology/nTop Platform/nTop.exe" #nTop Automate path 
  • Run the script, and the nTop GUI will open up, allowing you to check that the inputs are placed correctly and where there are errors in the nTop notebook.
  • Correct any errors and reset the exePath variable in your Python script to the original (nTopCL.exe)
    exePath =r"C:/Program Files/nTopology/nTop Platform/nTopCL.exe"#nTop Automate path
  • You can also set up an IF statement to quickly switch back before the standard and nTop Automate versions.
    OpenGUI = 1
    exePath =
    r"C:/Program Files/nTopology/nTop Platform/nTopCL.exe"#nTopCL path
    if OpenGUI == 1:
    exePath = r"C:/Program Files/nTopology/nTop Platform/nTop.exe" #nTop path 

Are you still having issues? Contact the support team, and we’ll be happy to help!

More on this Topic:



 error ntop troubleshoot ntopcl python command line cl debug 
Was this article helpful?