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 with pydot in generate-graph.py #5

Closed
clemisch opened this issue Jan 11, 2024 · 1 comment
Closed

Error with pydot in generate-graph.py #5

clemisch opened this issue Jan 11, 2024 · 1 comment

Comments

@clemisch
Copy link

$ python3 generate-graph.py --file ~/snake.log --with-users --format dot
Traceback (most recent call last):
  File "/home/clem/git/SSH-Snake/tools/generate-graph.py", line 110, in <module>
    nx.drawing.nx_pydot.write_dot(graph, output_dot_file_path)
  File "/home/clem/git/SSH-Snake/tools/venv/lib64/python3.12/site-packages/networkx/utils/decorators.py", line 770, in func
    return argmap._lazy_compile(__wrapper)(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<class 'networkx.utils.decorators.argmap'> compilation 5", line 5, in argmap_write_dot_1
  File "/home/clem/git/SSH-Snake/tools/venv/lib64/python3.12/site-packages/networkx/drawing/nx_pydot.py", line 51, in write_dot
    P = to_pydot(G)
        ^^^^^^^^^^^
  File "/home/clem/git/SSH-Snake/tools/venv/lib64/python3.12/site-packages/networkx/drawing/nx_pydot.py", line 265, in to_pydot
    raise ValueError(
ValueError: Node names and attributes should not contain ":" unless they are quoted with "".                For example the string 'attribute:data1' should be written as '"attribute:data1"'.                Please refer https://github.com/pydot/pydot/issues/258
@MegaManSec
Copy link
Owner

Thanks for the report! Fixing..

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

2 participants