-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
pylab import fails for non-framework python installs on OS X #2361
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
You can disable the osx backend in setup.cfg by adding:
it will then fall back to the next available backend. My understanding is that the macosx backend has never worked on a non-framework Python, so perhaps in the past a different backend was being selected by default? |
Events are broken on non-framework builds, but standard plotting works. For instance, anaconda ships with a non-framework build and mpl 1.2.1. Basic plotting works, but don't try to connect to a |
I guess this leads to a reasonable question, should we allow mostly-functional installs of matplotlib? There is the real possibility of getting blamed for events not working, even when warn the user that running non-framework python builds will void the warranty. However, some folks (yt for example) may not use those corners of mpl and may be quite happy otherwise. |
@mdboom just tried building matplotlib using your suggested modifications to setup.cfg and pylab still fails to import with the same error in the macosx backend. I can't find the place in the matplotlib codebase where the macosx config option is parsed so I'm not sure if this is a bug of if I should be doing something slightly different. |
In |
Hi guys, @ngoldbaum @mdboom, |
Given that there are some deep-level event handling done within mpl, I |
This was an intentional choice from PR 1613. Unfortunately this has caused some downstream headaches for us (speaking on behalf of the yt project).
The issue is that we distribute yt using a bash installer script that builds all of yt's dependencies from source. Now that we've updated to use matplotlib 1.3.0, all pylab imports fail on OS X with a RuntimeError.
The relevant yt issue is here: https://bitbucket.org/yt_analysis/yt/issue/642/cannot-import-pylab-on-os-x-using
Wouldn't it be possible to fallback to another frontend rather than outright failing? Our suggested workaround is to use tkagg instead of macosx but that's a bit nasty since it doesn't fix the fact that pylab is broken out of the box for our OS X users.
For what it's worth, we've never heard of issues with the macosx backend. I guess it wasn't fully working on our non-framework install of python, but the failures were so subtle that no one ever noticed.
The text was updated successfully, but these errors were encountered: