-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
mac yosemite seems to have broken things #3694
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
Comments
I'm afraid I don't have enough SO reputation to comment on the site forms. I think the first poster is not using the pypi wheel, because it's trying to find the png library in X11, and our wheel builds don't build on a system with X11 installed. I suspect the second isn't either - could you clarify with them? |
For the first, it would be helpful to know in which of the many possible ways the user is building matplotlib: i.e., from source, from MacPorts/fink/homebrew, from pip etc. For the second, the user has clipped away the part of the output that describes a little bit about freetype and what was found. If I disable MacPorts, indeed it doesn't find freetype on my Yosemite Mac either. This one I can look into. |
Indeed, it seems Apple moved freetype from http://xquartz.macosforge.org/trac/wiki/DeveloperInfo Note that the X11 package needs to be installed to get the freetype library. Alternatively, MacPorts/fink/homebrew may be used to get freetype. But the base system does not have it. The following patch will make this work with the X11 package (without requiring MacPorts/fink/homebrew). diff --git a/setupext.py b/setupext.py
index 19ec6e5..13756eb 100755
--- a/setupext.py
+++ b/setupext.py
@@ -148,7 +148,7 @@ def get_base_dirs():
basedir_map = {
'win32': ['win32_static',],
- 'darwin': ['/usr/local/', '/usr', '/usr/X11', '/opt/local'],
+ 'darwin': ['/usr/local/', '/usr', '/usr/X11', '/opt/X11', '/opt/local'],
'sunos5': [os.getenv('MPLIB_BASE') or '/usr/local',],
'gnu0': ['/usr'],
'aix5': ['/usr/local'], |
@mdboom Seems sensible. Should we add that to 1.4.2? |
👍 on getting that in for 1.4.2 That way we can blame the quick turn around an apple! |
Full output. FWIW, I had |
@orome: With the patch above, are you able to build from source (not from pip)? Do you have at least one of X11, MacPorts, fink or homebrew installed? (For the latter three, also with the freetype package installed)? |
Actually, it looks like that patch is already in the v1.4.x branch in the git repo -- if you check out from that, you shouldn't need to apply the patch. |
@mdboom: Currently I use
What, if anything, should I try differently? I have x11 (2.7.7), in 1.4.2 also fails the same as described. |
@orome I guess that should work. Could you please attach the log output here? Any particular reason why you want to avoid wheels? |
Not sure why I avoid wheels. Security? Maybe just habit. Anyway I often get get all kinds of errors when I use wheels, and using |
Sorry missed that. Can you check if you have ft2build.h in /opt/X11/include/freetype2? I have never had any issues with the matplotlib wheel so if you can reproduce the problems it would be great if you could raises that as a new issue. |
@jenshnielsen: Yes:
(The wheel issues don't just apply to matplotlib, I get them for a bunch of stuff. It's not really been a problem, since I prefer — for whatever reason I can't recall — to avoid them.) |
I managed to reproduce your issue. Will se if I can find a fix |
Thanks! |
Looked a bit more into this. It happens when pkg-config is not available. The current logic tries |
The simple paths in #3713 gets it building without pkg-config for me. |
Just checked that Ubuntu also stores the freetype headers in a freetype2 subdir of /usr/include |
Closing this issue as the title is misleading and there is a PR open to address a related bug. |
http://stackoverflow.com/questions/26485550/yosemite-and-python-matplotlib-issue
http://stackoverflow.com/questions/26451946/update-of-matplotlib-1-4-1-following-yosemite-update-using-pip-fails
cc @matthew-brett @mdehoon @cimarronm @jenshnielsen (people I know are mac using devs)
The text was updated successfully, but these errors were encountered: