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
[Apple Silicon] ImportError : Symbol not found: _cairo_append_path #226
Comments
Try reinstalling python -m pip install pycairo --force |
@naveen521kk pycairo-1.20.0 was reinstalled successfully, but it didn't solve the issue |
How did you install Cairo? |
I used homebrew. I tried both install via arm native brew version ( |
does installing pycairo using homebrew works? https://formulae.brew.sh/formula/py3cairo#default |
I didn't know if I should keep the pip installation or not when installing pycairo via homebrew (that's were my understanding of underneath logic begins) so I tried both :
Am I missing something with the configuration of my python environment when installing pycairo with homebrew only ? |
Not a mac user here. But it is worth reading https://docs.brew.sh/Homebrew-and-Python. |
Ok I finally solved the problem, but I did a lot of things so I couldn't tell what was the exact problem solver. Here are some details for posterity :
The combination of all these steps solved all my issues, including this |
Hi @naveen521kk tired @Franciscortega solution but somehow still showing the same error. |
Even with the brew package of pycairo? |
Yeah, followed by the link that you shared on the previous comments. Only difference is trying it with python 3.7 |
Well if you are using the one from brew, I think you should use Python 3.9. Only then it will work. |
It worked with 3.9, Thank you @naveen521kk |
I tried this out, but after I do all of those steps I am getting the error module Cairo not found. When I call brew install py3cairo however, it says it's already installed. Any idea how to fix this? |
I tried the above methods in a conda environment (using python 3.9, doing brew install py3cairo) but that didn't help. Using conda install works: |
@Timothysit |
This works, and no need to follow setups of @Franciscortega if you have followed https://docs.manim.community/en/stable/installation.html. |
Is the |
It's something else https://cairographics.org |
Hi, I'm running into this issue and for operational reasons cannot upgrade to 3.9. Are there any workarounds for this? |
I had been having this issue. I was using anaconda virtual env on M1, tried everything but didn't fix it. @Franciscortega 's comment on --system-site-package made me think maybe I should try using python venv. Create a virtual env using |
I did have this issue on a MacBook Pro with an M2 chip (I was trying to install Manim to create animations). I fixed it by blowing away my whole Python ecosystem on my laptop and reinstalling from scratch. I received the machine with a mix of Python 3.9, 3.10 and 3.11 installed plus PyCharm with virtual environments. I uninstalled everything (including pip3) and used BREW to install Python 3.11 from scratch. Then all libraries were installed as ARM64. As the last step, I installed PyCharm, I blew away the venvs and set up the interpreter 3.11 and inherit the global libraries. I believe the same would work if I only chose Python 3.9, it's more about avoiding a big mishmash of software versions and CPU architectures on the same computer. |
Not sure why this issue is closed? It would be great to see pycairo working via pip in Apple Silicon. Here's the steps to reproduce the error: (using a python3.9 version downloaded from Python)
Edit: okay, works using python3.10. Just simply replace python3.9 with python3.10 in my example and it imports okay. |
Anyone arriving here because you searched up an error that Manim gave you, see the solution here: |
Hi everyone !
I just migrated to a new M1 MBP and I'm setting up a Django project. I managed to set up all dependencies, but when starting the server I got stopped by an import error :
Anyone have faced the same issue and managed to solve it ?
Some infos :
Thanks !
The text was updated successfully, but these errors were encountered: