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 running show_graph example #1791

Open
andreifoldes opened this issue Oct 15, 2020 · 1 comment
Open

Error running show_graph example #1791

andreifoldes opened this issue Oct 15, 2020 · 1 comment
Labels
bug Should work but doesn't

Comments

@andreifoldes
Copy link

andreifoldes commented Oct 15, 2020

Hello
When running the first example from: https://princetonuniversity.github.io/PsyNeuLink/Visualization.html?highlight=show_graph
I get the following error:

File`` "C:\Users\folde\Anaconda3\lib\site-packages\psyneulink\core\compositions\showgraph.py", line 2278, in _generate_output
    G.view(composition.name.replace(" ", "-"), cleanup=True, directory='show_graph 'OUTPUT/PDFS')

File "C:\Users\folde\Anaconda3\lib\site-packages\graphviz\files.py", line 242, in view
    quiet=quiet, `quiet_view=quiet_view)

  File "C:\Users\folde\Anaconda3\lib\site-packages\graphviz\files.py", line 209, in render
    quiet=quiet)

  File "C:\Users\folde\Anaconda3\lib\site-packages\graphviz\backend.py", line 221, in render
    run(cmd, capture_output=True, cwd=cwd, check=True, quiet=quiet)

  File "C:\Users\folde\Anaconda3\lib\site-packages\graphviz\backend.py", line 184, in run
    output=out, stderr=err)

CalledProcessError: Command '['dot', '-Tpdf', '-O', 'Composition-2']' returned non-zero exit status 1. [stderr: b'Format: "pdf" not recognized. Use one of:\r\n']
@jvesely
Copy link
Collaborator

jvesely commented Oct 16, 2020

This looks like a problem with graphviz installation.
Potentially a variant of https://gitlab.com/graphviz/graphviz/-/issues/1315

can you run the test in the above bug report in windows cmdline?

echo graph test {} >test.dot
dot.exe test.dot -Tpdf -o test.pdf

@jvesely jvesely added the bug Should work but doesn't label Oct 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Should work but doesn't
Projects
None yet
Development

No branches or pull requests

2 participants