-
-
Notifications
You must be signed in to change notification settings - Fork 710
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
OSError: cannot load library 'libxcb.dylib': dlopen(libxcb.dylib, 2): image not found #475
Comments
Not sure if it is even remotely useful, but I've managed to get the installation working. But now it's failing at runtime. What I did was setting the
and after that I followed https://stackoverflow.com/questions/37437041/dlopen-failed-to-load-a-library-cairo-cairo-2 :
and https://coderwall.com/p/-k_93g/mac-os-x-valueerror-unknown-locale-utf-8-in-python:
Now WeasyPrint installs through pip flawlessly, however I keep getting te following error during runtime:
|
Thank you for taking the time to report this issue. Setting the Another solution is to remove the I don't know what's going on with MacOS libraries, you'll find many bugs like this one (#277, #79, Kozea/cairocffi#28…). We've already spend a lot of time trying to find the reason of this issue, we've even automated installation on TravisCI. The only solutions we've got so far are "just set this random variable and launch this random command, I don't know why but it works for me". I'm a bit sad about that. If anyone finds the reason why this issue appears here but not on Travis, I'd be glad to know it and definitely close these issues. |
@liZe I cannot thank you enough!! Thanks!! |
Good to know 😄. I close this issue as it's another way to solve this issue, even if we don't know the real reason. If anyone finds a reason why this happens, please tell us! |
I'm running the latest version of Mac OS Sierra: 10.12.5 (16F73) and got the latest Python: 3.6.1 running when I install my dependencies using pip3.
Furthermore I've got the whole shebang of dependencies installed through homebrew:
brew install cairo pango gdk-pixbuf libxml2 libxslt libffi
However, when I install weasyprint through pip I keep getting the following error:
I'm not sure how to proceed, but it seems like WeazsyPrint is not able to find libxcb, which seems to be a dependency of cairo if I'm not mistaken. cairo is really installed through homebrew. When I perform a
locate libxcb.dylib
I only come across/opt/X11/lib/libxcb.dylib
, which comes from Quartz.I haven't came across people with the exact same issue so I decided to leave a ticket.
The text was updated successfully, but these errors were encountered: