-
-
Notifications
You must be signed in to change notification settings - Fork 63
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
RuntimeWarning: Failed to import CairoSVG #69
Comments
Thanks for the report. Can you give a few more details to help determine the issue?
In case this is an interaction with another package, could you also create a fresh Python virtual environment, install only drawSvg, then try |
macOS 12.0.1 (M1X MacBook Pro if that's helpful.. I know this worked on an older Intel MBP, albeit with different environmental factors)
Python 3.10.0 Same error on a new environment with a file which simple has
Hope this is helpful. |
Also what brew cairo version? Below is mine. I cannot reproduce with your venv, Python 3.10.0 (installed from brew: /usr/local/opt/[email protected]/bin/python3.10), macOS 12.1, and cairo 1.16.0. Can you try a version of Python installed through brew? Other versions of cairo?
|
I wonder if it's something to do with being an M1 Mac. I believe I followed this guide to setup virtualenv using conda, or something like that, because otherwise I was running into many errors. But still, checking the cairo version using conda gives the same result. |
OK. Sounds like dynamic library compatibility on the M1 may be the problem. If |
Yes, `import cairosvg` does give me a series of errors too. Lets consider the issue closed here, I’ve raised it with them here:
Kozea/CairoSVG#354
|
Posted a workaround here: Kozea/CairoSVG#354 (comment) |
I've followed the instructions and installed Cairo with
brew install cairo
. I've also tried other ways, through pip install etc. to try and get rid of this error, but can't. This is the error I get when simply running a file withimport drawSvg
:The text was updated successfully, but these errors were encountered: