-
-
Notifications
You must be signed in to change notification settings - Fork 686
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
WeasyPrint fails with error on OSX 10.7.5/homebrew #79
Comments
It looks like the install was successful, it’s only at runtime that |
Also, are you using the Python installed by Homebrew? |
While I was getting the answers to those, I noticed the libcairo formula became keg-only, so it wasn't loaded into /usr/local/lib. Running |
I … am not sure what that means. Do you have suggestions for Homebrew instructions I could put in the documentation? |
That means they figured it's on OSX by default so they shouldn't link it implicitly. There generally aren't too severe consequences for linking, but it's definitely something that varies on a case-by-case basis. Maybe just mention that it might be the case that it needs to be manually linked? That way people won't keep opening dumb bugs like this one. ;) |
Ideally I’d like a set of instructions in the docs that people can follow even if they don’t care about pythons and virtualenvs and shared libraries. I’m trying to figure out what that is on OS X, but I don’t have a Mac to test on :/ |
A good goal to have! Unfortunately I'm not much help. I don't know enough about cairo and the programs which use it to be of any real assistance. Sorry. I'm willing to help test instructions though, should you need a hand. |
Hi, @BrianHicks, I'm having the same problem but I am not using homebrew. I'm using macports and installed like this:
But I get the same error running WeasyPrint:
Do you have an idea what should I do? |
I haven't used port in a long time. Find out where they put libs and add it
|
Hi @pelegrini . I can’t seem to find the github issue again, but another Macports user had the same problem and resolved it by making sure to use the Python installed by Macports. Apparently it’s common on OS X to have Python install from multiple sources. |
@BrianHicks, the location was /opt/local, but the @SimonSapin, it's a good idea, but I did not want to install another python26 in my machine... What I did was uninstall macports completely and install homebrew. Although the problem persisted, Thanks very much for your help, guys. |
So … suggestions for the install docs? @pelegrini , I don’t think that the |
It worked for me setting the correct path for DYLD_LIBRARY_PATH.
|
Hi, I have just got the same issue on Mac 10.8.4.
- returned HTTP 404 error for glib dependency
After that both installation of cairo and running weasyprint were fine:
- worked for me |
Fixes the issue with macports. |
@jmelett thanks! This solved the issue for me and I'm still using the system python. (for many reasons I prefer to use it). I set the path and then reinstalled cairocffi with
|
I can confirm that DYLD_FALLBACK_LIBRARY_PATH solution works with Python 3.4 and macports. |
Just wanted to comment that I found this problem with Python 3.6 + MacOS High Sierra. Installed deps with |
I've got the following versions of the requirements installed:
And when I install using
mktmpenv --system-site-packages -i WeasyPrint
, I get this output.When I run WeasyPrint, I get the following:
The text was updated successfully, but these errors were encountered: