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

graphviz error #25

Open
gattia opened this issue Apr 25, 2022 · 1 comment
Open

graphviz error #25

gattia opened this issue Apr 25, 2022 · 1 comment

Comments

@gattia
Copy link
Collaborator

gattia commented Apr 25, 2022

Describe the bug
Using the current install instructions leads to an error from graphviz.

To Reproduce
python train_net.py --config-file path/to/config

error:

Warning: Could not load "/dataNAS/people/aagatti/miniconda/envs/medsegpy_env/lib/graphviz/libgvplugin_pango.so.6" - file not found\nWarning: Could not load "/dataNAS/people/aagatti/miniconda/envs/medsegpy_env/lib/graphviz/libgvplugin_pango.so.6" - file not found\nFormat: "png" not recognized. Use one of: canon cmap cmapx cmapx_np dot dot_json eps fig gv imap imap_np ismap json json0 mp pdf pic plain plain-ext png pov ps ps2 svg svgz tk vml vmlz xdot xdot1.2 xdot1.4 xdot_json\n'

Solution
The following conda install command fixes this error:

conda install -c conda-forge graphviz=2.46.1 python-graphviz

@ad12
Copy link
Owner

ad12 commented Apr 25, 2022

good call - graphviz has always caused issues. Maybe we can keep it as an optional dependency and recommend that users install it in the way you mentioned? We will need to modify the code to make sure that we don't try to print the model to a png if graphviz is not installed

mind taking a stab at this if you have a few cycles?

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