-
Notifications
You must be signed in to change notification settings - Fork 332
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
Warning: No loadimage plugin for "svg:cairo" in Mac #19
Comments
Hi @Aru2612 that's weird. which OS X version? Are you sure you have latest dtreeviz via pip? |
Hi @parrt, |
hi @Aru2612 Hmm...that all sounds good. The leaf1 etc... nodes are generated into that tmp dir so that is fine. You might try uninstalling graphviz via brew then running that installation again. Are you getting any error messages that all that you can see? What are you using for the SVG viewer? There are permissions issues sometimes if you're doing it from a browser etc. I use gapplin. |
Hi @parrt I am using gapplin as well.
I also realised that because graphviz was already installed from before using pip, my code seemed to have been using that . But now after having done |
Hmm...the pip graphviz should be just a library wrapper that calls the dot executable installed via brew. i haven't tried 0.10.1 graphviz pypi lib but 0.9 worked. No module issue should be resolved with a pip install. |
I think the problem is that brew installed packages are not being found by Anaconda. I noticed it gets installed to a folder called Cellar. When I do conda list only The following packages will be downloaded:
The following NEW packages will be INSTALLED:
The following packages will be REMOVED:
The following packages will be UPDATED:
However, on attempting to download librsvg again, it attempts to downgrade graphviz to version |
Yep, Cellar is standard brew location. I think conda is wrong way to install as that tries to overwrite libs not just python stuff. pip should work. Ok, so I'll close as you have it working but thanks for figuring this out on your machine! |
I'm getting a similar error: I tried both any tips on what I should try next? |
Try making file
Does that get a t.svg file? |
try uninstalling with brew then reinstalling. |
@xih For me the problem was solved when I tried it outside the anaconda environment. The problem is anaconda and brew doesn't go together. Using anaconda on Windows worked for me. But on Mac when I had tried on a different laptop which didn't have anaconda installed at all it worked perfectly fine with |
Hmm...it could be an env thing for anaconda. I never use those. just plain anaconda. Do you use those conda env things? I use nothing but anaconda so it's more likely something else. Did Either way, good to know! |
I am using just Miniconda. So when I launch python it by default launches |
Well, if |
I had a similar issue after a re-imaging of my machine.
and did not get it working :-( Luckily I had a backup from before and found some missing lib in the new install. additionally I moved the backed up
and now a command line like this works perfect. Still - indeed there is a danger that this setup can be overwritten ... so I hope some adjustements to the graphviz procedure will resolve |
Wow. Did you move to 10.14 with new image? This is all so frustrating!!! |
@parrt I had been on 10.14.3 before and after. However, did install this kind of while ago. Not sure if even before upgrading... |
I have been trying to use dtreeviz to visualise iris data using my Mac.
Despite installing graphviz as:
brew install graphviz --with-librsvg --with-app --with-pango
I get the following output.
Solutions proposed in #4 did not work for me either. On downloading the zipped file in the thread and using
dot -Tsvg t.dot > t.svg
I could view the combined file. However, this did not work for me after deleting the contents of the folder III from the current directory.Also, I noticed that the individual plots of only some of the nodes get stored in the location: "/private/var/folders/gs/r3f6yn8n4zj570qsj4s9rvnm0000gp/T/DTreeViz_19418" This included leaf1, leaf3, leaf4, node0, node2, legend and two other files named DTreeViz.
The text was updated successfully, but these errors were encountered: