-
-
Notifications
You must be signed in to change notification settings - Fork 55
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
pip installation of cairocffi not working on mac #28
Comments
Hi. Your probably need to install cairo separately. You can get it with Homebrew or Macports. After that, you may need to enable something so that the library can be loaded dynamically. Unfortunately I don’t have access to OS X myself to test this. |
Hi, I have installed cairo from macports. Regards, |
As you can see with Does it help to add |
Hi, I have added 'libcairo.2.dylib' to dlopen call and that fixed the issue.
Thanks for help. Regards, |
Could you try these and tell me which of them work?
|
libcairo.2.dylib and libcairo.dylib worked for me.
|
By the way, this
works nicer on GitHub than |
Ok, I just pushed 01681e6. Let me know if it’s still broken or if you need this on PyPI. |
Sorry, this is the first time I am using GitHub commenting. To give the bigger picture, I am trying to install Graphite, I stuck upon cairo installation. I came across "http://stackoverflow.com/questions/11491268/install-pycairo-in-virtualenv" I am hitting following traceback.
|
I think there are couple of places we need to modify to fix this.
|
Please open another issue with this traceback and some context such as steps to reproduce it. |
Sure, I will open separate issue. |
Closing this as it seems solved. Let me know if you need it on PyPI. |
Is this fix reflected on PyPI? I received this error recently. Currently have v 0.5.2 installed according to pip freeze. |
@colevscode Looks like it’s not. Can you confirm that this change actually fixes the issue for you? Install from git with: pip uninstall cairocffi # convince pip to actually do the next step despite identical version numbers
pip install git+https://github.com/SimonSapin/cairocffi.git |
I'm also getting this error. Tried all of the above ways to import and still got errors. Also used latest from master. |
@czpython Please copy the exact error message you get. |
so |
I have this problem too. In my Plone project, we have WeasyPrint as a dependency, which in its turn depends on cairo. Platform: Contents of /opt/local/lib/libcairo.*
The error i get when the instance starts up:
I can reproduce this in my buildout's Python interpreter by doing:
The change you mentioned (01681e6) should be in 0.6 right? I also tried that, and got the same error. |
... but
fixed it for me. Thanks! |
+1 on the export, khink. Since I've installed Yosemite on this MacbookPro, I've started over: I created a new virtualenv and installed the dependencies I need for our Django app. We use WeasyPrint, so I installed the dependencies it needs using Mac Port. But I still have to add that env variable to load. |
Hello there, i'm trying to use this library on a django project installing it using
I'm using a MacOS Monterrey 12.4 with an M1 Pro any suggestions on why this isn't working? Thanks in advance |
The following export fixed the issue for me:
Make sure you have |
Do u fixed?how?plz |
I tried to install cairocffi on Mac.
I am getting error while importing cairocffi.
Below are environment details:
Model: MacBook Pro
OS X: 10.8.5
Python: 2.7.2
Command Log:
sudo pip install cairocffi
...some warnings ....
The text was updated successfully, but these errors were encountered: