Skip to content

Exception Error - "dot" not found in path. #64

@Marct27

Description

@Marct27

Issues when running this on OSX and Windows, have tried with Python 3.6.8 and 3.9.x

natlas v0.12.1
Michael Laforest <mjlaforest@gmail.com>
Python 3.6.8

     Config file: ./natlas.conf
     Output file: .\network.svg
Out Catalog file: None
       Root node: 192.168.146.254
  Discover depth: 100
   Diagram title: natlas Diagram

Discovery codes:
    . depth             ! connection error
    + discovering node  > numerating adjacencies
    i include node      L leaf node

Discovering network...
1  [root]  +UnifiSwitch16PoE (192.168.146.254)
   [root]  >UnifiSwitch16PoE (192.168.146.254)

Collecting node details...
[1/1]+ UnifiSwitch16PoE (192.168.146.254) 0.78 sec

Back filling node details...
Traceback (most recent call last):
  File "C:\Users\marc\AppData\Local\Programs\Python\Python36\lib\site-packages\pydot.py", line 1915, in create
    working_dir=tmp_dir,
  File "C:\Users\marc\AppData\Local\Programs\Python\Python36\lib\site-packages\pydot.py", line 136, in call_graphviz
    **kwargs
  File "C:\Users\marc\AppData\Local\Programs\Python\Python36\lib\subprocess.py", line 729, in __init__
    restore_signals, start_new_session)
  File "C:\Users\marc\AppData\Local\Programs\Python\Python36\lib\subprocess.py", line 1017, in _execute_child
    startupinfo)
FileNotFoundError: [WinError 2] The system cannot find the file specified

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "E:\PythonProjects\natlas\natlas-cli.py", line 305, in <module>
    main(sys.argv[1:])
  File "E:\PythonProjects\natlas\natlas-cli.py", line 96, in main
    exec_mod(mod, argv[1:])
  File "E:\PythonProjects\natlas\natlas-cli.py", line 167, in exec_mod
    modret = module.entryfunc(natlas_obj, argv)
  File "./modules\diagram.py", line 88, in mod_entry
    if (opt_output != None):    natlas_obj.write_diagram(opt_output, opt_title)
  File "E:\PythonProjects\natlas\natlas\natlas.py", line 125, in write_diagram
    self.diagram.generate(output_file, diagram_title)
  File "E:\PythonProjects\natlas\natlas\output_diagram.py", line 108, in generate
    output_func(f)
  File "C:\Users\marc\AppData\Local\Programs\Python\Python36\lib\site-packages\pydot.py", line 1734, in new_method
    encoding=encoding)
  File "C:\Users\marc\AppData\Local\Programs\Python\Python36\lib\site-packages\pydot.py", line 1817, in write
    s = self.create(prog, format, encoding=encoding)
  File "C:\Users\marc\AppData\Local\Programs\Python\Python36\lib\site-packages\pydot.py", line 1922, in create
    raise OSError(*args)
FileNotFoundError: [WinError 2] "dot" not found in path.```

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions