Skip to content

Updated matplotlib 1.5.3 broken in default Anaconda channel #7124

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

Closed
jorisvandenbossche opened this issue Sep 17, 2016 · 6 comments
Closed

Comments

@jorisvandenbossche
Copy link

jorisvandenbossche commented Sep 17, 2016

Our pandas tests on travis started to fail last night on python 3.5 (eg https://travis-ci.org/pydata/pandas/jobs/160584906) with errors in our plotting tests (among others: "ImportError: No module named 'PyQt4'").
Compared to the previous build that passed, I noticed the difference in matplotlib and pyqt versions (matplotlib 1.5.1 -> 1.5.3, pyqt-4.11.4 -> pyqt-5.6.0, qt-4.8.7 -> qt-5.6.0). I could also reproduce this locally with conda create -n test-mpl python=3.5 matplotlib -c defaults, then importing matplotlib.pyplot gives the above error.

I am not sure if this has anything to do with matplotlib itself, or rather a broken build in anaconda, but reporting it here to be sure.

@jorisvandenbossche
Copy link
Author

There is a recent issue about the update of pyqt on the anaconda issue tracker where I also commented: ContinuumIO/anaconda-issues#1065

@Kojoley
Copy link
Member

Kojoley commented Sep 17, 2016

Please take a look at the issue #6567. Looks like you have the same problem.

@jorisvandenbossche
Copy link
Author

Since it is happening both on travis (and it started to fail on travis after an update of matplotlib and qt) as locally in a fresh conda env (and I don't think I have a custom .matplotlibrc file), I am not sure this is the same issue

@jorisvandenbossche
Copy link
Author

But indeed, specifying manually the backend, then importing does work:

>>> import matplotlib
>>> matplotlib.use('qt5agg')
>>> import matplotlib.pyplot as plt
>>> 

Going from this comment #6559 (comment), I assume this is an error in the matplotlib recipe in the default anaconda channel to fix the default backend to qt4 while installing qt5.

@jorisvandenbossche
Copy link
Author

I more specifically reported this as ContinuumIO/anaconda-issues#1068. Will close here as it is indeed (as expected) not a matplotlib issue

@Kojoley
Copy link
Member

Kojoley commented Sep 17, 2016

I assume this is an error in the matplotlib recipe in the default anaconda channel to fix the default backend to qt4 while installing qt5.

According to the conda's patches (rctmp_pyside.patch, cfg_qt4agg.patch) it is.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants