-
-
Notifications
You must be signed in to change notification settings - Fork 153
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
CairoSVG not working on Mac M2 #385
Comments
Hi! If you want to use cairosvg on Mac, you have to install cairo. That’s not a Python library, so you’ll have to find another way than pip to install it. The easiest way is probably to use Homebrew, and then to use Hombrew’s Python to install cairosvg. |
This issue has been reported before, a workaround can be found here (works on my M2 Mac, look for the tip submitted by @sinwoobang): |
HI @liZe I have installed the cairo and other required packages also.
But not able to find any solution for M2, Also tried multiple solution os other Mac M2 thinking that it might be a issue of my pc in particular, but thats not the case, the issue is same on each M2 I have tried it. |
You have to use Homebrew’s Python to make CairoSVG find Homebrew’s Cairo. Be sure that your virtual environment has been created using Hombrew’s Python. $ which python3 # should print the path of Hombrew’s Python
$ python3 -m venv venv
$ source venv/bin/activate
$ pip install cairosvg
$ cairosvg --help # should print CairoSVG’s help |
And you should follow the hint from @sinwoobang (#354 (comment)):
|
|
@unclok Hello, have you tried installing cairosvg through homebrew for the recent Mac Chips? |
@sinwoobang
|
CairoSVG is not working on Mac M2 and gives the following error:
This error occurs when trying to import cairocffi module.
Steps to reproduce:
The text was updated successfully, but these errors were encountered: