Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when trying to run diagram module #65

Open
ntwrkguy opened this issue May 6, 2021 · 2 comments
Open

Error when trying to run diagram module #65

ntwrkguy opened this issue May 6, 2021 · 2 comments

Comments

@ntwrkguy
Copy link

ntwrkguy commented May 6, 2021

python3 natlas-cli.py diagram -r 10.0.0.1 -o diagram.svg
natlas v0.12.1
Michael Laforest mjlaforest@gmail.com
Python 3.6.8

Expecting value: line 8 column 2 (char 127)

No other information is provided for the error

@sjbeskur
Copy link

sjbeskur commented Jun 1, 2021

I too had this same issue and after stepping through the code It turned out that my natlas.conf file had an error (trailing common in one of the arrays). Here is a copy of my natlas config for your referrence:

{ "snmp" : [ { "community":"public_ro", "ver":2 } ], "domains" : [ ], "discover" : [ "permit ip 192.168.88.0/24" ], "diagram" : { "node_text_size" : 10, "link_text_size" : 9, "title_text_size" : 15, "get_stack_members" : 0, "get_vss_members" : 0, "expand_stackwise" : 0, "expand_vss" : 1, "expand_lag" : 1, "group_vpc" : 0 } }

@mav51
Copy link

mav51 commented Jun 23, 2021

Thanks for the wonderful job, I have a problem with diagram module.
I get this error on every single IP address

Back filling node details...
:1: SyntaxWarning: 'float' object is not callable; perhaps you missed a comma?
:1: SyntaxWarning: 'float' object is not callable; perhaps you missed a comma?
"dot" with args ['-Tsvg', '/tmp/tmpeyo79kwj'] returned code: 1

stdout, stderr:
b''
b"Error: /tmp/tmpeyo79kwj: syntax error in line 24 near '>'\n"

Traceback (most recent call last):
File "natlas-cli.py", line 305, in
main(sys.argv[1:])
File "natlas-cli.py", line 96, in main
exec_mod(mod, argv[1:])
File "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 "/home/kali/skyforce/pentest/scripts/cisco/natlas/natlas/natlas.py", line 125, in write_diagram
self.diagram.generate(output_file, diagram_title)
File "/home/kali/skyforce/pentest/scripts/cisco/natlas/natlas/output_diagram.py", line 108, in generate
output_func(f)
File "/usr/lib/python3/dist-packages/pydot.py", line 1736, in new_method
self.write(
File "/usr/lib/python3/dist-packages/pydot.py", line 1825, in write
s = self.create(prog, format, encoding=encoding)
File "/usr/lib/python3/dist-packages/pydot.py", line 1953, in create
assert process.returncode == 0, process.returncode
AssertionError: 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants