-
Notifications
You must be signed in to change notification settings - Fork 220
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
ImportError: No module named sip #8
Comments
Just to add a comment that on windows with the |
So should |
I don't think this has anything to do with |
It looks like this issue is fixed in the git master version of matplotlib https://github.com/matplotlib/matplotlib/blob/master/lib/matplotlib/backends/qt4_compat.py#L43. |
It looks like. I just thought it's something anaconda related since it works on windows and linux. The bug only manifests itself on MacOSX. (sorry I closed it accidentally, you should decide what to do with the issue.) |
So I think the easiest fix until the next release would be to make |
The same issue exists on linux if pyqt4 and pyside are installed. export QT_API='pyside' This works as a workaround for the issue on linux. |
I encountered the issue with Anaconda 1.9.1 on Mac OSX. I solved it by choosing PySide as qt backend in matplotlibrc, like suggested here: http://stackoverflow.com/questions/19231944/anaconda-unable-to-import-pylab I use Anaconda on several machine and I never had this issue on WIndows or Linux. |
I just encountered this issue on osx with anaconda3 2.4.1. |
Pyside is not nearly as well-developed as PyQt. Unless you are constrained by license requirements and are unable to use PyQt, we strongly recommend PyQt. PyQt is included with Anaconda. PySide is available as an add-on package:
|
I don't think you should close this issue, as it affects people with a default anaconda install: matplotlib doesn't work, which is pretty fundamental. The beauty and attraction of anaconda is that it "just works" - but in this case it doesn't... I'm not sure what can/should be done, but at least some sort of warning would be in order. Or perhaps matplotlib for anaconda could be coerced into looking in the anaconda folder somewhere to find it's matplotlibrc, and build a new one there fitting the anaconda install. Many new users of anaconda will have already been using matplotlib and have an rc file that may say pyside. They will all be affected by this (note the comment that on linux when both pyside and pyqt4 are installed, though that may be related to matplotlib/matplotlib#4883). |
Thanks for your concern. Anaconda "just works" much of the time because it controls much of the system. Your issue gets into config files that are created by packages. These are just hard to keep track of in the general case. I feel like documenting the solution in several easy to find places is a better solution than trying to detect all possible problems across all possible upgrade paths. This particular issue with matplotlib might be relatively easy, but I don't want to commit anyone to expanding this over time. What we might reasonably support would be a quick and easy way to clear config files to restore systems to a clean state, with a backup feature so that we aren't just blowing away everyone's stuff. If you agree with this approach, please create a new issue. |
Installation: Anaconda-1.6.1-MacOSX-x86_64.pkg
Apparently
sip
is not packaged withpyside
package, so when I runipython qtconsole
and try%pylab qt
or just run the full command line:ipython qtconsole --pylab=qt
I get the following exception:The text was updated successfully, but these errors were encountered: