Fresh matplotlib install broken: installs qt5, but matplotlib rc patched to require qt4 #1068

Open
jorisvandenbossche opened this Issue Sep 17, 2016 · 125 comments

Comments

Projects
None yet
@jorisvandenbossche

jorisvandenbossche commented Sep 17, 2016

Related to #1065 (but opening a new issue as this is not a Qt problem but how the matplotlib rc is patched AFAIU). Also reported it at matplotlib: matplotlib/matplotlib#7124 (comment)

When you do a fresh conda install matplotlib, this now installs qt/pyqt 5.x instead of 4.x.
But as far as I understand, anaconda patches matplotlib to default to qt4 backend. With the consequence that you get a ImportError: No module named 'PyQt4' error if you do not specify the backend to qt5agg manually.

Possible workarounds for now (either one of the two):

  • pin pyqt to 4.11
  • set the backend manually before importing pyplot (matplotlib.use('qt5agg'))

@dwhswenson dwhswenson referenced this issue in openpathsampling/openpathsampling Sep 17, 2016

Closed

Undo pinning of pyqt to version 4 #585

@ccordoba12

This comment has been minimized.

Show comment
Hide comment
@ccordoba12

ccordoba12 Sep 17, 2016

Thanks @jorisvandenbossche, this means that we need to remove or update that patch so that Matplotlib can work with Qt5.

Thanks @jorisvandenbossche, this means that we need to remove or update that patch so that Matplotlib can work with Qt5.

@MSeifert04 MSeifert04 referenced this issue in astropy/astroquery Sep 18, 2016

Closed

Build failure: qt4? #748

jorisvandenbossche added a commit to pandas-dev/pandas that referenced this issue Sep 18, 2016

TST/TEMP: fix pyqt to 4.x for plotting tests (#14240)
Matplotlib build currently broken (wrongly patched rc file) with pyqt 5, see ContinuumIO/anaconda-issues#1068

jobovy added a commit to jobovy/galpy that referenced this issue Sep 18, 2016

@tacaswell tacaswell referenced this issue in conda-forge/matplotlib-feedstock Sep 19, 2016

Closed

sort out qt4 v qt5 #59

@tacaswell

This comment has been minimized.

Show comment
Hide comment
@tacaswell

tacaswell Sep 19, 2016

You can also fix this by setting the backend in any of the ways documented at http://matplotlib.org/faq/usage_faq.html#what-is-a-backend to 'Qt5Agg'

You can also fix this by setting the backend in any of the ways documented at http://matplotlib.org/faq/usage_faq.html#what-is-a-backend to 'Qt5Agg'

@cbrnr

This comment has been minimized.

Show comment
Hide comment
@cbrnr

cbrnr Sep 20, 2016

@ccordoba12 is there a PR that fixes this issue?

cbrnr commented Sep 20, 2016

@ccordoba12 is there a PR that fixes this issue?

@ccordoba12

This comment has been minimized.

Show comment
Hide comment
@ccordoba12

ccordoba12 Sep 20, 2016

Not yet, sorry.

Not yet, sorry.

@Kojoley Kojoley referenced this issue in matplotlib/matplotlib Sep 20, 2016

Closed

Qt Version Validation Failure #3940

@dr-rodriguez dr-rodriguez referenced this issue in BDNYC/astrodbkit Sep 20, 2016

Merged

Bringing build_db closer to master #70

@craig-warren craig-warren referenced this issue in gprMax/gprMax Sep 21, 2016

Closed

matplotlib and QT5 on Windows/Linux #75

@saimn saimn referenced this issue in astropy/astropy Sep 21, 2016

Merged

Pin Qt=4 in travis-ci and appveyor #5348

@astrofrog

This comment has been minimized.

Show comment
Hide comment
@astrofrog

astrofrog Sep 21, 2016

Just to give a heads-up, this is causing builds to fail for Astropy and also for Glue - so we are pinning qt=4 for now.

astrofrog commented Sep 21, 2016

Just to give a heads-up, this is causing builds to fail for Astropy and also for Glue - so we are pinning qt=4 for now.

@ccordoba12

This comment has been minimized.

Show comment
Hide comment
@ccordoba12

ccordoba12 Sep 21, 2016

Thanks @astrofrog, we're still fighting with this ;-)

Thanks @astrofrog, we're still fighting with this ;-)

@tacaswell tacaswell referenced this issue in matplotlib/matplotlib Sep 23, 2016

Closed

sip/pyqt4 issues during travisCI testing #7165

@MSeifert04 MSeifert04 referenced this issue in astropy/astropy Sep 23, 2016

Merged

Remove pinned QT version in CI files #5361

@CJ-Wright CJ-Wright referenced this issue in scikit-beam/scikit-beam Sep 23, 2016

Merged

Fix 1d #473

@tacaswell tacaswell referenced this issue in soft-matter/trackpy Sep 24, 2016

Closed

Travis is failing on Py3.5 #403

@betatim betatim referenced this issue in scikit-optimize/scikit-optimize Sep 25, 2016

Closed

Yet more pinning of QT versions #235

@michaelaye

This comment has been minimized.

Show comment
Hide comment
@michaelaye

michaelaye Sep 28, 2016

Just as an addition, this is not only happening for anaconda, but a simple update in my conda environment created this issue as well.

Just as an addition, this is not only happening for anaconda, but a simple update in my conda environment created this issue as well.

@ccordoba12

This comment has been minimized.

Show comment
Hide comment
@ccordoba12

ccordoba12 Sep 28, 2016

This should be fixed now. @astrofrog, could you confirm it?

This should be fixed now. @astrofrog, could you confirm it?

@michaelaye

This comment has been minimized.

Show comment
Hide comment
@michaelaye

michaelaye Sep 28, 2016

by what version of files? I did the update today and got this issue.

by what version of files? I did the update today and got this issue.

@ccordoba12

This comment has been minimized.

Show comment
Hide comment
@ccordoba12

ccordoba12 Apr 3, 2017

@mihirskulkarni, what Python version are you using?

@mihirskulkarni, what Python version are you using?

@mihirskulkarni

This comment has been minimized.

Show comment
Hide comment
@mihirskulkarni

mihirskulkarni Apr 3, 2017

Python 2.7.13 installed using Miniconda2-latest-Linux-x86_64.sh.

Python 2.7.13 installed using Miniconda2-latest-Linux-x86_64.sh.

@ccordoba12

This comment has been minimized.

Show comment
Hide comment
@ccordoba12

ccordoba12 Apr 3, 2017

So why are not you able to use pyqt 4?

So why are not you able to use pyqt 4?

@mihirskulkarni

This comment has been minimized.

Show comment
Hide comment
@mihirskulkarni

mihirskulkarni Apr 3, 2017

For the default installation, I got ImportError: No module named PyQt4. I then installed PyQt4 with conda install pyqt=4.11. When I do from matplotlib import pyplot after that from IPython, I get ImportError: /usr/lib64/libxcb-xlib.so.0: undefined symbol: _xcb_unlock_io.

For the default installation, I got ImportError: No module named PyQt4. I then installed PyQt4 with conda install pyqt=4.11. When I do from matplotlib import pyplot after that from IPython, I get ImportError: /usr/lib64/libxcb-xlib.so.0: undefined symbol: _xcb_unlock_io.

@ccordoba12

This comment has been minimized.

Show comment
Hide comment
@ccordoba12

ccordoba12 Apr 4, 2017

Ok, so it seems the problem affects Qt4 packages too. Sorry for not being able to give you more help.

Ok, so it seems the problem affects Qt4 packages too. Sorry for not being able to give you more help.

@simonm3

This comment has been minimized.

Show comment
Hide comment
@simonm3

simonm3 Apr 22, 2017

I had this issue using ubuntu 14.04 docker image. Installing libgl1-mesa-glx solved it thanks.

I guess docker images normally don't have any need for installing GUI packages. However data scientists often run jupyter notebooks using matplotlib on a server using docker. If anaconda is aimed at data scientists it would be useful for it to add this package if it is required to get matplotlib to work.

simonm3 commented Apr 22, 2017

I had this issue using ubuntu 14.04 docker image. Installing libgl1-mesa-glx solved it thanks.

I guess docker images normally don't have any need for installing GUI packages. However data scientists often run jupyter notebooks using matplotlib on a server using docker. If anaconda is aimed at data scientists it would be useful for it to add this package if it is required to get matplotlib to work.

@mingwandroid

This comment has been minimized.

Show comment
Hide comment
@mingwandroid

mingwandroid Apr 23, 2017

Member

We cannot add system libraries like this for if we did, our software would not run the best libgl for the hardware on a given end-user's computer.

Member

mingwandroid commented Apr 23, 2017

We cannot add system libraries like this for if we did, our software would not run the best libgl for the hardware on a given end-user's computer.

@simonm3

This comment has been minimized.

Show comment
Hide comment
@simonm3

simonm3 Apr 23, 2017

simonm3 commented Apr 23, 2017

@mingwandroid

This comment has been minimized.

Show comment
Hide comment
@mingwandroid

mingwandroid Apr 23, 2017

Member

Conda has no support for conditionally installing things. It would be nice if a post install script was provided to warn and advise though I think.

Member

mingwandroid commented Apr 23, 2017

Conda has no support for conditionally installing things. It would be nice if a post install script was provided to warn and advise though I think.

@simonm3

This comment has been minimized.

Show comment
Hide comment
@simonm3

simonm3 Apr 23, 2017

A warning would be useful. I tried all the other solutions listed for this and none of them worked until I installed libgl.

simonm3 commented Apr 23, 2017

A warning would be useful. I tried all the other solutions listed for this and none of them worked until I installed libgl.

@mingwandroid

This comment has been minimized.

Show comment
Hide comment
@mingwandroid

mingwandroid Apr 24, 2017

Member

OK, I will raise this with my team.

Member

mingwandroid commented Apr 24, 2017

OK, I will raise this with my team.

@bbengfort bbengfort referenced this issue in DistrictDataLabs/yellowbrick Apr 24, 2017

Closed

Make an Anaconda Package #191

@ccordoba12

This comment has been minimized.

Show comment
Hide comment
@ccordoba12

ccordoba12 Apr 24, 2017

@mingwandroid, I have a simple idea on how to solve this. I'll create a PR in our internal repo to start the discussion about it.

@mingwandroid, I have a simple idea on how to solve this. I'll create a PR in our internal repo to start the discussion about it.

@simonm3

This comment has been minimized.

Show comment
Hide comment
@simonm3

simonm3 Apr 24, 2017

Actually I am not sure how the error arose. It happened on an ubuntu docker container running on AWS centos host. However I have the same container running on windows fine. It is possible I upgraded something which caused the failure but I cannot be certain.

simonm3 commented Apr 24, 2017

Actually I am not sure how the error arose. It happened on an ubuntu docker container running on AWS centos host. However I have the same container running on windows fine. It is possible I upgraded something which caused the failure but I cannot be certain.

@jrderuiter jrderuiter referenced this issue in bioconda/bioconda-recipes May 1, 2017

Merged

Adds recipe for imfusion python package. #4565

2 of 4 tasks complete
@madhavij

This comment has been minimized.

Show comment
Hide comment
@madhavij

madhavij May 3, 2017

I was getting the following issue:


$ python
Python 3.5.2 |Anaconda custom (64-bit)| (default, Jul  2 2016, 17:53:06) 
[GCC 4.4.7 20120313 (Red Hat 4.4.7-1)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> 
>>> import matplotlib.pyplot as plt
/data/anaconda3/lib/python3.5/site-packages/matplotlib/font_manager.py:273: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  warnings.warn('Matplotlib is building the font cache using fc-list. This may take a moment.')
/data/anaconda3/lib/python3.5/site-packages/matplotlib/font_manager.py:273: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  warnings.warn('Matplotlib is building the font cache using fc-list. This may take a moment.')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/data/anaconda3/lib/python3.5/site-packages/matplotlib/pyplot.py", line 114, in <module>
    _backend_mod, new_figure_manager, draw_if_interactive, _show = pylab_setup()
  File "/data/anaconda3/lib/python3.5/site-packages/matplotlib/backends/__init__.py", line 32, in pylab_setup
    globals(),locals(),[backend_name],0)
  File "/data/anaconda3/lib/python3.5/site-packages/matplotlib/backends/backend_qt4agg.py", line 18, in <module>
    from .backend_qt5agg import FigureCanvasQTAggBase as _FigureCanvasQTAggBase
  File "/data/anaconda3/lib/python3.5/site-packages/matplotlib/backends/backend_qt5agg.py", line 15, in <module>
    from .backend_qt5 import QtCore
  File "/data/anaconda3/lib/python3.5/site-packages/matplotlib/backends/backend_qt5.py", line 31, in <module>
    from .qt_compat import QtCore, QtGui, QtWidgets, _getSaveFileName, __version__
  File "/data/anaconda3/lib/python3.5/site-packages/matplotlib/backends/qt_compat.py", line 124, in <module>
    from PyQt4 import QtCore, QtGui
ImportError: libXdmcp.so.6: cannot open shared object file: No such file or directory

I did a yum install for the libXdmcp package and that helped.

madhavij commented May 3, 2017

I was getting the following issue:


$ python
Python 3.5.2 |Anaconda custom (64-bit)| (default, Jul  2 2016, 17:53:06) 
[GCC 4.4.7 20120313 (Red Hat 4.4.7-1)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> 
>>> import matplotlib.pyplot as plt
/data/anaconda3/lib/python3.5/site-packages/matplotlib/font_manager.py:273: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  warnings.warn('Matplotlib is building the font cache using fc-list. This may take a moment.')
/data/anaconda3/lib/python3.5/site-packages/matplotlib/font_manager.py:273: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  warnings.warn('Matplotlib is building the font cache using fc-list. This may take a moment.')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/data/anaconda3/lib/python3.5/site-packages/matplotlib/pyplot.py", line 114, in <module>
    _backend_mod, new_figure_manager, draw_if_interactive, _show = pylab_setup()
  File "/data/anaconda3/lib/python3.5/site-packages/matplotlib/backends/__init__.py", line 32, in pylab_setup
    globals(),locals(),[backend_name],0)
  File "/data/anaconda3/lib/python3.5/site-packages/matplotlib/backends/backend_qt4agg.py", line 18, in <module>
    from .backend_qt5agg import FigureCanvasQTAggBase as _FigureCanvasQTAggBase
  File "/data/anaconda3/lib/python3.5/site-packages/matplotlib/backends/backend_qt5agg.py", line 15, in <module>
    from .backend_qt5 import QtCore
  File "/data/anaconda3/lib/python3.5/site-packages/matplotlib/backends/backend_qt5.py", line 31, in <module>
    from .qt_compat import QtCore, QtGui, QtWidgets, _getSaveFileName, __version__
  File "/data/anaconda3/lib/python3.5/site-packages/matplotlib/backends/qt_compat.py", line 124, in <module>
    from PyQt4 import QtCore, QtGui
ImportError: libXdmcp.so.6: cannot open shared object file: No such file or directory

I did a yum install for the libXdmcp package and that helped.

@ccordoba12

This comment has been minimized.

Show comment
Hide comment
@ccordoba12

ccordoba12 May 3, 2017

@madhavij, that issue was solved in a new build of our Qt5 package. A simple

conda update qt

should solve it too.

@madhavij, that issue was solved in a new build of our Qt5 package. A simple

conda update qt

should solve it too.

@schekroud

This comment has been minimized.

Show comment
Hide comment
@schekroud

schekroud May 10, 2017

For the default installation, I got ImportError: No module named PyQt4. I then installed PyQt4 with conda install pyqt=4.11. When I do from matplotlib import pyplot after that from IPython, I get ImportError: /usr/lib64/libxcb-xlib.so.0: undefined symbol: _xcb_unlock_io. <

has this been sorted? I just updated anaconda because having problems with it, but now can't open spyder at all, giving me the following error:

Traceback (most recent call last):
File "/home/sammirc/anaconda2/bin/spyder", line 6, in
sys.exit(spyder.app.start.main())
File "/home/sammirc/anaconda2/lib/python2.7/site-packages/spyder/app/start.py", line 103, in main
from spyder.app import mainwindow
File "/home/sammirc/anaconda2/lib/python2.7/site-packages/spyder/app/mainwindow.py", line 78, in
from qtpy.compat import from_qvariant
File "/home/sammirc/anaconda2/lib/python2.7/site-packages/qtpy/compat.py", line 15, in
from .QtWidgets import QFileDialog
File "/home/sammirc/anaconda2/lib/python2.7/site-packages/qtpy/QtWidgets.py", line 24, in
from PyQt4.QtGui import *
ImportError: /usr/lib64/libxcb-xlib.so.0: undefined symbol: _xcb_unlock_io <

For the default installation, I got ImportError: No module named PyQt4. I then installed PyQt4 with conda install pyqt=4.11. When I do from matplotlib import pyplot after that from IPython, I get ImportError: /usr/lib64/libxcb-xlib.so.0: undefined symbol: _xcb_unlock_io. <

has this been sorted? I just updated anaconda because having problems with it, but now can't open spyder at all, giving me the following error:

Traceback (most recent call last):
File "/home/sammirc/anaconda2/bin/spyder", line 6, in
sys.exit(spyder.app.start.main())
File "/home/sammirc/anaconda2/lib/python2.7/site-packages/spyder/app/start.py", line 103, in main
from spyder.app import mainwindow
File "/home/sammirc/anaconda2/lib/python2.7/site-packages/spyder/app/mainwindow.py", line 78, in
from qtpy.compat import from_qvariant
File "/home/sammirc/anaconda2/lib/python2.7/site-packages/qtpy/compat.py", line 15, in
from .QtWidgets import QFileDialog
File "/home/sammirc/anaconda2/lib/python2.7/site-packages/qtpy/QtWidgets.py", line 24, in
from PyQt4.QtGui import *
ImportError: /usr/lib64/libxcb-xlib.so.0: undefined symbol: _xcb_unlock_io <

@ccordoba12

This comment has been minimized.

Show comment
Hide comment
@ccordoba12

ccordoba12 May 10, 2017

@schekroud, it seems you're using very old distro. What distro are you using?

@schekroud, it seems you're using very old distro. What distro are you using?

@braaannigan

This comment has been minimized.

Show comment
Hide comment
@braaannigan

braaannigan May 23, 2017

Hi all
This problem has persisted for me for weeks now. I had a working version with pyqt4.11 and matplotlib1.5 and updated to matplotlib2.0.1. Since then the only workaround that has worked has been to use the Agg backend, which limits me from some necessary interactive operations.
I've tried without success:
downloading a new version of anaconda (Anaconda2-4.3.1-Linux-x86_64)
modifying the .matplotlibrc file to qt4 and qt5 backends
pinning pyqt back to version 4.1.1.

Does anyone have additional suggestions?

Hi all
This problem has persisted for me for weeks now. I had a working version with pyqt4.11 and matplotlib1.5 and updated to matplotlib2.0.1. Since then the only workaround that has worked has been to use the Agg backend, which limits me from some necessary interactive operations.
I've tried without success:
downloading a new version of anaconda (Anaconda2-4.3.1-Linux-x86_64)
modifying the .matplotlibrc file to qt4 and qt5 backends
pinning pyqt back to version 4.1.1.

Does anyone have additional suggestions?

@schekroud

This comment has been minimized.

Show comment
Hide comment
@schekroud

schekroud May 23, 2017

The distro wasn't too old (a year old, maybe). Something seemed to have gone wrong with anaconda.

@braaannigan I sorted this by completely stripping anaconda from my computer, including the hidden files folders that you'd see if you went to your terminal and tried ls -a. I deleted all remnants of anaconda, including backed up config files, and then reinstalled anaconda and all the packages I used. Now, not an issue, and i'm back to work. Not sure why it happened in the first place given the correct modules were installed..

The distro wasn't too old (a year old, maybe). Something seemed to have gone wrong with anaconda.

@braaannigan I sorted this by completely stripping anaconda from my computer, including the hidden files folders that you'd see if you went to your terminal and tried ls -a. I deleted all remnants of anaconda, including backed up config files, and then reinstalled anaconda and all the packages I used. Now, not an issue, and i'm back to work. Not sure why it happened in the first place given the correct modules were installed..

@kokalz

This comment has been minimized.

Show comment
Hide comment
@kokalz

kokalz May 23, 2017

braaannigan, have you tried:
conda update qt?
this one worked for me

kokalz commented May 23, 2017

braaannigan, have you tried:
conda update qt?
this one worked for me

@braaannigan

This comment has been minimized.

Show comment
Hide comment
@braaannigan

braaannigan May 23, 2017

Thanks @schekroud, I've given that a go, but it hasn't worked. What version of anaconda did you reinstall?

Hi @kokalz , I've tried updating it to 5.6 and putting it back to 4.11 numerous times. What do you get from conda list?

Thanks @schekroud, I've given that a go, but it hasn't worked. What version of anaconda did you reinstall?

Hi @kokalz , I've tried updating it to 5.6 and putting it back to 4.11 numerous times. What do you get from conda list?

@kokalz

This comment has been minimized.

Show comment
Hide comment
@kokalz

kokalz May 23, 2017

@braaannigan just checked and while this solved an issue for python3 I seem to still be getting this issue in python2. Which python are you using?

kokalz commented May 23, 2017

@braaannigan just checked and while this solved an issue for python3 I seem to still be getting this issue in python2. Which python are you using?

@reMAJ

This comment has been minimized.

Show comment
Hide comment
@reMAJ

reMAJ Jun 10, 2017

@kokalz
I am using python 2.7.13. Updated all conda packages qt as well. I still get the issue. Any solution please?
thanks

reMAJ commented Jun 10, 2017

@kokalz
I am using python 2.7.13. Updated all conda packages qt as well. I still get the issue. Any solution please?
thanks

@braaannigan

This comment has been minimized.

Show comment
Hide comment
@braaannigan

braaannigan Jun 15, 2017

@reMAJ
Hi - I've given up trying to solve this. On the system where it happens, I'm able to work with everything as it should be apart from ipython, where I'm stuck using version 3.0.0. If I try to update ipython then everything stops working. I'm just trying to pretend that I'm a hipster for using out-of-date software and hoping that a clean build in a couple of months will solve it. Sorry I can't be of more use.

@reMAJ
Hi - I've given up trying to solve this. On the system where it happens, I'm able to work with everything as it should be apart from ipython, where I'm stuck using version 3.0.0. If I try to update ipython then everything stops working. I'm just trying to pretend that I'm a hipster for using out-of-date software and hoping that a clean build in a couple of months will solve it. Sorry I can't be of more use.

@florian-wagner florian-wagner referenced this issue in gimli-org/gimli Jul 7, 2017

Closed

Polite request: Anaconda and pyGimli #67

@ankeshkhemani

This comment has been minimized.

Show comment
Hide comment
@ankeshkhemani

ankeshkhemani Jul 17, 2017

sudo apt-get install libsm6 libxrender1 gcc g++ libqt4-dev
This is what fixed the issue for me

sudo apt-get install libsm6 libxrender1 gcc g++ libqt4-dev
This is what fixed the issue for me

@eflanigan00 eflanigan00 referenced this issue in matplotlib/matplotlib Jul 26, 2017

Closed

qt5 from jupyter qtconsole #8942

@santiagocasas

This comment has been minimized.

Show comment
Hide comment
@santiagocasas

santiagocasas Sep 15, 2017

None of these solutions have worked for me! I am on Linux and conda 4.3.25.

None of these solutions have worked for me! I am on Linux and conda 4.3.25.

@eflanigan00

This comment has been minimized.

Show comment
Hide comment
@eflanigan00

eflanigan00 Sep 16, 2017

@santiagocasas try removing all your ~/.matplotlib, ~/.ipython and other configuration directories. My problem was resolved by resetting all of these. Of course save any custom config files to another location before deleting them.

@santiagocasas try removing all your ~/.matplotlib, ~/.ipython and other configuration directories. My problem was resolved by resetting all of these. Of course save any custom config files to another location before deleting them.

@bennywij

This comment has been minimized.

Show comment
Hide comment
@bennywij

bennywij Sep 20, 2017

Hi — we have a conda installation on a headless Centos 7 box and ran into the same problem. We solved it (thanks in part to this thread and the standard Google/StackOverflow searching) by:

yum install mesa-libGL

and, by turning interactive mode off for matplotlib per #1215

bennywij commented Sep 20, 2017

Hi — we have a conda installation on a headless Centos 7 box and ran into the same problem. We solved it (thanks in part to this thread and the standard Google/StackOverflow searching) by:

yum install mesa-libGL

and, by turning interactive mode off for matplotlib per #1215

@zblz zblz referenced this issue in zblz/naima Sep 20, 2017

Closed

error with matplotlib #159

@esvhd

This comment has been minimized.

Show comment
Hide comment
@esvhd

esvhd Sep 21, 2017

I encountered this on my MacBook Pro, running Anaconda with Python 3.6.1, matplotlib 2.0.2, qt version 5.6.2

My matplotlibrc was using qt4agg as the backend, after changing that to qt5agg, the issue was resovled.

esvhd commented Sep 21, 2017

I encountered this on my MacBook Pro, running Anaconda with Python 3.6.1, matplotlib 2.0.2, qt version 5.6.2

My matplotlibrc was using qt4agg as the backend, after changing that to qt5agg, the issue was resovled.

@hzhu6666

This comment has been minimized.

Show comment
Hide comment
@hzhu6666

hzhu6666 Oct 6, 2017

python 2.7 on Linux...this has been bothering me for quite a while.....yum install mesa-libGL is the way to go

hzhu6666 commented Oct 6, 2017

python 2.7 on Linux...this has been bothering me for quite a while.....yum install mesa-libGL is the way to go

@kelhallaoui

This comment has been minimized.

Show comment
Hide comment
@kelhallaoui

kelhallaoui Nov 21, 2017

I am having the same error. I have uninstalled and reinstalled Anaconda twice with no lock. I do not have non-ASCII characters in my path.

If i try to change the backend same problem occurs

In [1]: import matplotlib

In [2]: matplotlib.get_backend()
Out[2]: 'Qt5Agg'
In [3]: import matplotlib.pyplot as plt

In [4]: This application failed to start because it could not find or load the Qt platform plugin "windows"
in "".

Available platform plugins are: minimal, offscreen, windows.

Reinstalling the application may fix this problem.

My packages are listed below:

Python 3.6.3 |Anaconda custom (64-bit)| (default, Nov 8 2017, 15:10:56) [MSC v.1900 64 bit (AMD64)] on win32

# packages in environment at C:\Users\eee\Anaconda3:
#
_ipyw_jlab_nb_ext_conf    0.1.0            py36he6757f0_0
alabaster                 0.7.10           py36hcd07829_0
anaconda                  custom           py36h363777c_0
anaconda-client           1.6.5            py36hd36550c_0
anaconda-navigator        1.6.9            py36hc720852_0
anaconda-project          0.8.0            py36h8b3bf89_0
asn1crypto                0.22.0           py36h8e79faa_1
astroid                   1.5.3            py36h9d85297_0
astropy                   2.0.2            py36h06391c4_4
babel                     2.5.0            py36h35444c1_0
backports                 1.0              py36h81696a8_1
backports.functools_lru_cache 1.4                      py36_1    conda-forge
backports.shutil_get_terminal_size 1.0.0            py36h79ab834_2
beautifulsoup4            4.6.0            py36hd4cc5e8_1
bitarray                  0.8.1            py36h6af124b_0
bkcharts                  0.2              py36h7e685f7_0
blaze                     0.11.3           py36h8a29ca5_0
bleach                    2.0.0            py36h0a7e3d6_0
bokeh                     0.12.10          py36h0be3b39_0
boto                      2.48.0           py36h1a776d2_1
bottleneck                1.2.1            py36hd119dfa_0
bzip2                     1.0.6                haa5b126_2
ca-certificates           2017.08.26           h94faf87_0
cachecontrol              0.12.3           py36hfe50d7b_0
certifi                   2017.7.27.1      py36h043bc9e_0
cffi                      1.10.0           py36hae3d1b5_1
chardet                   3.0.4            py36h420ce6e_1
click                     6.7              py36hec8c647_0
cloudpickle               0.4.0            py36h639d8dc_0
clyent                    1.2.2            py36hb10d595_1
colorama                  0.3.9            py36h029ae33_0
comtypes                  1.1.2            py36heb9b3d1_0
conda                     4.3.30           py36h7e176b0_0
conda-build               3.0.30           py36he296fd2_0
conda-env                 2.6.0                h36134e3_1
conda-verify              2.0.0            py36h065de53_0
console_shortcut          0.1.1                h6bb2dd7_3
contextlib2               0.5.5            py36he5d52c0_0
cryptography              2.0.3            py36h123decb_1
curl                      7.55.1               h3b839b5_4
cycler                    0.10.0           py36h009560c_0
cython                    0.26.1           py36h18049ac_0
cytoolz                   0.8.2            py36h547e66e_0
dask                      0.16.0           py36hea4f2f0_0
dask-core                 0.16.0           py36h5683b08_0
datashape                 0.5.4            py36h5770b85_0
decorator                 4.1.2            py36he63a57b_0
distlib                   0.2.5            py36h51371be_0
distributed               1.20.0           py36h2fcf393_0
docutils                  0.14             py36h6012d8f_0
entrypoints               0.2.3            py36hfd66bb0_2
et_xmlfile                1.0.1            py36h3d2d736_0
fastcache                 1.0.2            py36hffdae1b_0
filelock                  2.0.12           py36hd7ddd41_0
flask                     0.12.2           py36h98b5e8f_0
flask-cors                3.0.3            py36h8a3855d_0
freetype                  2.8                  h51f8f2c_1
get_terminal_size         1.0.0                h38e98db_0
gevent                    1.2.2            py36h342a76c_0
glob2                     0.5              py36h11cc1bd_1
greenlet                  0.4.12           py36ha00ad21_0
h5py                      2.7.0            py36hfbe0a52_1
hdf5                      1.10.1               h98b8871_1
heapdict                  1.0.0            py36h21fa5f4_0
html5lib                  0.999999999      py36ha09b1f3_0
icc_rt                    2017.0.4             h97af966_0
icu                       58.2                 ha66f8fd_1
idna                      2.6              py36h148d497_1
imageio                   2.2.0            py36had6c2d2_0
imagesize                 0.7.1            py36he29f638_0
intel-openmp              2018.0.0             hcd89f80_7
ipykernel                 4.6.1            py36hbb77b34_0
ipython                   6.1.0            py36h236ecc8_1
ipython_genutils          0.2.0            py36h3c5d0ee_0
ipywidgets                7.0.0            py36h2e74ada_0
isort                     4.2.15           py36h6198cc5_0
itsdangerous              0.24             py36hb6c5a24_1
jdcal                     1.3              py36h64a5255_0
jedi                      0.10.2           py36hed927a0_0
jinja2                    2.9.6            py36h10aa3a0_1
jpeg                      9b                   hb83a4c4_2
jsonschema                2.6.0            py36h7636477_0
jupyter                   1.0.0            py36h422fd7e_2
jupyter_client            5.1.0            py36h9902a9a_0
jupyter_console           5.2.0            py36h6d89b47_1
jupyter_core              4.3.0            py36h511e818_0
jupyterlab                0.27.0           py36h34cc53b_2
jupyterlab_launcher       0.4.0            py36h22c3ccf_0
krb5                      1.14.2               h9d72080_5
lazy-object-proxy         1.3.1            py36hd1c21d2_0
libiconv                  1.15                 h1df5818_7
libpng                    1.6.32           vc14h5163883_3  [vc14]
libssh2                   1.8.0            vc14hcf584a9_2  [vc14]
libtiff                   4.0.8           vc14h04e2a1e_10  [vc14]
libxml2                   2.9.4            vc14h8fd0f11_5  [vc14]
libxslt                   1.1.29           vc14hf85b8d4_5  [vc14]
llvmlite                  0.20.0                   py36_0
locket                    0.2.0            py36hfed976d_1
lockfile                  0.12.2           py36h0468280_0
lxml                      4.1.0            py36h0dcd83c_0
lzo                       2.10             vc14h0a64fa6_1  [vc14]
markupsafe                1.0              py36h0e26971_1
matplotlib                2.1.0            py36h11b4b9c_0
mccabe                    0.6.1            py36hb41005a_1
menuinst                  1.4.10           py36h42196fb_0
mistune                   0.8.1            py36h007b88b_0
mkl                       2018.0.0             h36b65af_4
mkl-service               1.1.2            py36h57e144c_4
mpmath                    0.19             py36he326802_2
msgpack-python            0.4.8            py36h58b1e9d_0
multipledispatch          0.4.9            py36he44c36e_0
navigator-updater         0.1.0            py36h8a7b86b_0
nbconvert                 5.3.1            py36h8dc0fde_0
nbformat                  4.4.0            py36h3a5bc1b_0
networkx                  2.0              py36hff991e3_0
nibabel                   2.2.0                    py36_0    conda-forge
nltk                      3.2.4            py36hd0e0a39_0
nose                      1.3.7            py36h1c3779e_2
notebook                  5.2.1            py36h4fb2ca6_0
numba                     0.35.0             np113py36_10
numexpr                   2.6.2            py36h514de0f_2
numpy                     1.13.3           py36ha320f96_0
numpydoc                  0.7.0            py36ha25429e_0
odo                       0.5.1            py36h7560279_0
olefile                   0.44             py36h0a7bdd2_0
openpyxl                  2.4.8            py36hf3b77f6_1
openssl                   1.0.2m               h093b818_1
packaging                 16.8             py36ha0986f6_1
pandas                    0.21.0           py36he09d4dd_1
pandoc                    1.19.2.1             hb2460c7_1
pandocfilters             1.4.2            py36h3ef6317_1
partd                     0.3.8            py36hc8e763b_0
path.py                   10.3.1           py36h3dd8b46_0
pathlib2                  2.3.0            py36h7bfb78b_0
patsy                     0.4.1            py36h42cefec_0
pep8                      1.7.0            py36h0f3d67a_0
pickleshare               0.7.4            py36h9de030f_0
pillow                    4.2.1            py36hdb25ab2_0
pip                       9.0.1            py36h226ae91_4
pkginfo                   1.4.1            py36hb0f9cfa_1
ply                       3.10             py36h1211beb_0
progress                  1.3              py36hbeca8d3_0
prompt_toolkit            1.0.15           py36h60b8f86_0
psutil                    5.4.0            py36h4e662fb_0
py                        1.4.34           py36ha4aca3a_1
pycodestyle               2.3.1            py36h7cc55cd_0
pycosat                   0.6.3            py36h413d8a4_0
pycparser                 2.18             py36hd053e01_1
pycrypto                  2.6.1            py36he68e6e2_1
pycurl                    7.43.0           py36h086bf4c_3
pydicom                   0.9.9                    py36_0    conda-forge
pyflakes                  1.6.0            py36h0b975d6_0
pygments                  2.2.0            py36hb010967_0
pylint                    1.7.4            py36ha4e6ded_0
pyodbc                    4.0.17           py36h0006bc2_0
pyopenssl                 17.2.0           py36h15ca2fc_0
pyparsing                 2.2.0            py36h785a196_1
pyqt                      5.6.0            py36hb5ed885_5
pysocks                   1.6.7            py36h698d350_1
pytables                  3.4.2            py36h71138e3_2
pytest                    3.2.1            py36h753b05e_1
python                    3.6.3                h3b118a2_4
python-dateutil           2.6.1            py36h509ddcb_1
pytz                      2017.2           py36h05d413f_1
pywavelets                0.5.2            py36hc649158_0
pywin32                   221              py36h9c10281_0
pyyaml                    3.12             py36h1d1928f_1
pyzmq                     16.0.2           py36h38c27d9_2
qt                        5.6.2           vc14h6f8c307_12  [vc14]
qtawesome                 0.4.4            py36h5aa48f6_0
qtconsole                 4.3.1            py36h99a29a9_0
qtpy                      1.3.1            py36hb8717c5_0
requests                  2.18.4           py36h4371aae_1
rope                      0.10.5           py36hcaf5641_0
ruamel_yaml               0.11.14          py36h9b16331_2
scikit-image              0.13.0           py36h6dffa3f_1
scikit-learn              0.19.1           py36h53aea1b_0
scipy                     1.0.0            py36h1260518_0
seaborn                   0.8.0            py36h62cb67c_0
setuptools                36.5.0           py36h65f9e6e_0
simplegeneric             0.8.1            py36heab741f_0
singledispatch            3.4.0.3          py36h17d0c80_0
sip                       4.18.1           py36h9c25514_2
six                       1.11.0           py36h4db2310_1
snowballstemmer           1.2.1            py36h763602f_0
sortedcollections         0.5.3            py36hbefa0ab_0
sortedcontainers          1.5.7            py36ha90ac20_0
sphinx                    1.6.3            py36h9bb690b_0
sphinxcontrib             1.0              py36hbbac3d2_1
sphinxcontrib-websupport  1.0.1            py36hb5e5916_1
spyder                    3.2.4            py36h8845eaa_0
sqlalchemy                1.1.13           py36h5948d12_0
sqlite                    3.20.1               h9eeafa9_2
statsmodels               0.8.0            py36h6189b4c_0
sympy                     1.1.1            py36h96708e0_0
tblib                     1.3.2            py36h30f5020_0
testpath                  0.3.1            py36h2698cfe_0
tk                        8.6.7                hcb92d03_3
toolz                     0.8.2            py36he152a52_0
tornado                   4.5.2            py36h57f6048_0
traitlets                 4.3.2            py36h096827d_0
typing                    3.6.2            py36hb035bda_0
unicodecsv                0.14.1           py36h6450c06_0
urllib3                   1.22             py36h276f60a_0
vc                        14                   h2379b0c_2
vs2015_runtime            14.0.25123           hd4c4e62_2
wcwidth                   0.1.7            py36h3d5aa90_0
webencodings              0.5.1            py36h67c50ae_1
werkzeug                  0.12.2           py36h866a736_0
wheel                     0.29.0           py36h6ce6cde_1
widgetsnbextension        3.0.2            py36h364476f_1
win_inet_pton             1.0.1            py36he67d7fd_1
win_unicode_console       0.5              py36hcdbd4b5_0
wincertstore              0.2              py36h7fe50ca_0
wrapt                     1.10.11          py36he5f5981_0
xlrd                      1.1.0            py36h1cb58dc_1
xlsxwriter                1.0.2            py36hf723b7d_0
xlwings                   0.11.4           py36hd3cf94d_0
xlwt                      1.3.0            py36h1a4751e_0
yaml                      0.1.7                hc54c509_2
zict                      0.1.3            py36h2d8e73e_0
zlib                      1.2.11               h8395fce_2

kelhallaoui commented Nov 21, 2017

I am having the same error. I have uninstalled and reinstalled Anaconda twice with no lock. I do not have non-ASCII characters in my path.

If i try to change the backend same problem occurs

In [1]: import matplotlib

In [2]: matplotlib.get_backend()
Out[2]: 'Qt5Agg'
In [3]: import matplotlib.pyplot as plt

In [4]: This application failed to start because it could not find or load the Qt platform plugin "windows"
in "".

Available platform plugins are: minimal, offscreen, windows.

Reinstalling the application may fix this problem.

My packages are listed below:

Python 3.6.3 |Anaconda custom (64-bit)| (default, Nov 8 2017, 15:10:56) [MSC v.1900 64 bit (AMD64)] on win32

# packages in environment at C:\Users\eee\Anaconda3:
#
_ipyw_jlab_nb_ext_conf    0.1.0            py36he6757f0_0
alabaster                 0.7.10           py36hcd07829_0
anaconda                  custom           py36h363777c_0
anaconda-client           1.6.5            py36hd36550c_0
anaconda-navigator        1.6.9            py36hc720852_0
anaconda-project          0.8.0            py36h8b3bf89_0
asn1crypto                0.22.0           py36h8e79faa_1
astroid                   1.5.3            py36h9d85297_0
astropy                   2.0.2            py36h06391c4_4
babel                     2.5.0            py36h35444c1_0
backports                 1.0              py36h81696a8_1
backports.functools_lru_cache 1.4                      py36_1    conda-forge
backports.shutil_get_terminal_size 1.0.0            py36h79ab834_2
beautifulsoup4            4.6.0            py36hd4cc5e8_1
bitarray                  0.8.1            py36h6af124b_0
bkcharts                  0.2              py36h7e685f7_0
blaze                     0.11.3           py36h8a29ca5_0
bleach                    2.0.0            py36h0a7e3d6_0
bokeh                     0.12.10          py36h0be3b39_0
boto                      2.48.0           py36h1a776d2_1
bottleneck                1.2.1            py36hd119dfa_0
bzip2                     1.0.6                haa5b126_2
ca-certificates           2017.08.26           h94faf87_0
cachecontrol              0.12.3           py36hfe50d7b_0
certifi                   2017.7.27.1      py36h043bc9e_0
cffi                      1.10.0           py36hae3d1b5_1
chardet                   3.0.4            py36h420ce6e_1
click                     6.7              py36hec8c647_0
cloudpickle               0.4.0            py36h639d8dc_0
clyent                    1.2.2            py36hb10d595_1
colorama                  0.3.9            py36h029ae33_0
comtypes                  1.1.2            py36heb9b3d1_0
conda                     4.3.30           py36h7e176b0_0
conda-build               3.0.30           py36he296fd2_0
conda-env                 2.6.0                h36134e3_1
conda-verify              2.0.0            py36h065de53_0
console_shortcut          0.1.1                h6bb2dd7_3
contextlib2               0.5.5            py36he5d52c0_0
cryptography              2.0.3            py36h123decb_1
curl                      7.55.1               h3b839b5_4
cycler                    0.10.0           py36h009560c_0
cython                    0.26.1           py36h18049ac_0
cytoolz                   0.8.2            py36h547e66e_0
dask                      0.16.0           py36hea4f2f0_0
dask-core                 0.16.0           py36h5683b08_0
datashape                 0.5.4            py36h5770b85_0
decorator                 4.1.2            py36he63a57b_0
distlib                   0.2.5            py36h51371be_0
distributed               1.20.0           py36h2fcf393_0
docutils                  0.14             py36h6012d8f_0
entrypoints               0.2.3            py36hfd66bb0_2
et_xmlfile                1.0.1            py36h3d2d736_0
fastcache                 1.0.2            py36hffdae1b_0
filelock                  2.0.12           py36hd7ddd41_0
flask                     0.12.2           py36h98b5e8f_0
flask-cors                3.0.3            py36h8a3855d_0
freetype                  2.8                  h51f8f2c_1
get_terminal_size         1.0.0                h38e98db_0
gevent                    1.2.2            py36h342a76c_0
glob2                     0.5              py36h11cc1bd_1
greenlet                  0.4.12           py36ha00ad21_0
h5py                      2.7.0            py36hfbe0a52_1
hdf5                      1.10.1               h98b8871_1
heapdict                  1.0.0            py36h21fa5f4_0
html5lib                  0.999999999      py36ha09b1f3_0
icc_rt                    2017.0.4             h97af966_0
icu                       58.2                 ha66f8fd_1
idna                      2.6              py36h148d497_1
imageio                   2.2.0            py36had6c2d2_0
imagesize                 0.7.1            py36he29f638_0
intel-openmp              2018.0.0             hcd89f80_7
ipykernel                 4.6.1            py36hbb77b34_0
ipython                   6.1.0            py36h236ecc8_1
ipython_genutils          0.2.0            py36h3c5d0ee_0
ipywidgets                7.0.0            py36h2e74ada_0
isort                     4.2.15           py36h6198cc5_0
itsdangerous              0.24             py36hb6c5a24_1
jdcal                     1.3              py36h64a5255_0
jedi                      0.10.2           py36hed927a0_0
jinja2                    2.9.6            py36h10aa3a0_1
jpeg                      9b                   hb83a4c4_2
jsonschema                2.6.0            py36h7636477_0
jupyter                   1.0.0            py36h422fd7e_2
jupyter_client            5.1.0            py36h9902a9a_0
jupyter_console           5.2.0            py36h6d89b47_1
jupyter_core              4.3.0            py36h511e818_0
jupyterlab                0.27.0           py36h34cc53b_2
jupyterlab_launcher       0.4.0            py36h22c3ccf_0
krb5                      1.14.2               h9d72080_5
lazy-object-proxy         1.3.1            py36hd1c21d2_0
libiconv                  1.15                 h1df5818_7
libpng                    1.6.32           vc14h5163883_3  [vc14]
libssh2                   1.8.0            vc14hcf584a9_2  [vc14]
libtiff                   4.0.8           vc14h04e2a1e_10  [vc14]
libxml2                   2.9.4            vc14h8fd0f11_5  [vc14]
libxslt                   1.1.29           vc14hf85b8d4_5  [vc14]
llvmlite                  0.20.0                   py36_0
locket                    0.2.0            py36hfed976d_1
lockfile                  0.12.2           py36h0468280_0
lxml                      4.1.0            py36h0dcd83c_0
lzo                       2.10             vc14h0a64fa6_1  [vc14]
markupsafe                1.0              py36h0e26971_1
matplotlib                2.1.0            py36h11b4b9c_0
mccabe                    0.6.1            py36hb41005a_1
menuinst                  1.4.10           py36h42196fb_0
mistune                   0.8.1            py36h007b88b_0
mkl                       2018.0.0             h36b65af_4
mkl-service               1.1.2            py36h57e144c_4
mpmath                    0.19             py36he326802_2
msgpack-python            0.4.8            py36h58b1e9d_0
multipledispatch          0.4.9            py36he44c36e_0
navigator-updater         0.1.0            py36h8a7b86b_0
nbconvert                 5.3.1            py36h8dc0fde_0
nbformat                  4.4.0            py36h3a5bc1b_0
networkx                  2.0              py36hff991e3_0
nibabel                   2.2.0                    py36_0    conda-forge
nltk                      3.2.4            py36hd0e0a39_0
nose                      1.3.7            py36h1c3779e_2
notebook                  5.2.1            py36h4fb2ca6_0
numba                     0.35.0             np113py36_10
numexpr                   2.6.2            py36h514de0f_2
numpy                     1.13.3           py36ha320f96_0
numpydoc                  0.7.0            py36ha25429e_0
odo                       0.5.1            py36h7560279_0
olefile                   0.44             py36h0a7bdd2_0
openpyxl                  2.4.8            py36hf3b77f6_1
openssl                   1.0.2m               h093b818_1
packaging                 16.8             py36ha0986f6_1
pandas                    0.21.0           py36he09d4dd_1
pandoc                    1.19.2.1             hb2460c7_1
pandocfilters             1.4.2            py36h3ef6317_1
partd                     0.3.8            py36hc8e763b_0
path.py                   10.3.1           py36h3dd8b46_0
pathlib2                  2.3.0            py36h7bfb78b_0
patsy                     0.4.1            py36h42cefec_0
pep8                      1.7.0            py36h0f3d67a_0
pickleshare               0.7.4            py36h9de030f_0
pillow                    4.2.1            py36hdb25ab2_0
pip                       9.0.1            py36h226ae91_4
pkginfo                   1.4.1            py36hb0f9cfa_1
ply                       3.10             py36h1211beb_0
progress                  1.3              py36hbeca8d3_0
prompt_toolkit            1.0.15           py36h60b8f86_0
psutil                    5.4.0            py36h4e662fb_0
py                        1.4.34           py36ha4aca3a_1
pycodestyle               2.3.1            py36h7cc55cd_0
pycosat                   0.6.3            py36h413d8a4_0
pycparser                 2.18             py36hd053e01_1
pycrypto                  2.6.1            py36he68e6e2_1
pycurl                    7.43.0           py36h086bf4c_3
pydicom                   0.9.9                    py36_0    conda-forge
pyflakes                  1.6.0            py36h0b975d6_0
pygments                  2.2.0            py36hb010967_0
pylint                    1.7.4            py36ha4e6ded_0
pyodbc                    4.0.17           py36h0006bc2_0
pyopenssl                 17.2.0           py36h15ca2fc_0
pyparsing                 2.2.0            py36h785a196_1
pyqt                      5.6.0            py36hb5ed885_5
pysocks                   1.6.7            py36h698d350_1
pytables                  3.4.2            py36h71138e3_2
pytest                    3.2.1            py36h753b05e_1
python                    3.6.3                h3b118a2_4
python-dateutil           2.6.1            py36h509ddcb_1
pytz                      2017.2           py36h05d413f_1
pywavelets                0.5.2            py36hc649158_0
pywin32                   221              py36h9c10281_0
pyyaml                    3.12             py36h1d1928f_1
pyzmq                     16.0.2           py36h38c27d9_2
qt                        5.6.2           vc14h6f8c307_12  [vc14]
qtawesome                 0.4.4            py36h5aa48f6_0
qtconsole                 4.3.1            py36h99a29a9_0
qtpy                      1.3.1            py36hb8717c5_0
requests                  2.18.4           py36h4371aae_1
rope                      0.10.5           py36hcaf5641_0
ruamel_yaml               0.11.14          py36h9b16331_2
scikit-image              0.13.0           py36h6dffa3f_1
scikit-learn              0.19.1           py36h53aea1b_0
scipy                     1.0.0            py36h1260518_0
seaborn                   0.8.0            py36h62cb67c_0
setuptools                36.5.0           py36h65f9e6e_0
simplegeneric             0.8.1            py36heab741f_0
singledispatch            3.4.0.3          py36h17d0c80_0
sip                       4.18.1           py36h9c25514_2
six                       1.11.0           py36h4db2310_1
snowballstemmer           1.2.1            py36h763602f_0
sortedcollections         0.5.3            py36hbefa0ab_0
sortedcontainers          1.5.7            py36ha90ac20_0
sphinx                    1.6.3            py36h9bb690b_0
sphinxcontrib             1.0              py36hbbac3d2_1
sphinxcontrib-websupport  1.0.1            py36hb5e5916_1
spyder                    3.2.4            py36h8845eaa_0
sqlalchemy                1.1.13           py36h5948d12_0
sqlite                    3.20.1               h9eeafa9_2
statsmodels               0.8.0            py36h6189b4c_0
sympy                     1.1.1            py36h96708e0_0
tblib                     1.3.2            py36h30f5020_0
testpath                  0.3.1            py36h2698cfe_0
tk                        8.6.7                hcb92d03_3
toolz                     0.8.2            py36he152a52_0
tornado                   4.5.2            py36h57f6048_0
traitlets                 4.3.2            py36h096827d_0
typing                    3.6.2            py36hb035bda_0
unicodecsv                0.14.1           py36h6450c06_0
urllib3                   1.22             py36h276f60a_0
vc                        14                   h2379b0c_2
vs2015_runtime            14.0.25123           hd4c4e62_2
wcwidth                   0.1.7            py36h3d5aa90_0
webencodings              0.5.1            py36h67c50ae_1
werkzeug                  0.12.2           py36h866a736_0
wheel                     0.29.0           py36h6ce6cde_1
widgetsnbextension        3.0.2            py36h364476f_1
win_inet_pton             1.0.1            py36he67d7fd_1
win_unicode_console       0.5              py36hcdbd4b5_0
wincertstore              0.2              py36h7fe50ca_0
wrapt                     1.10.11          py36he5f5981_0
xlrd                      1.1.0            py36h1cb58dc_1
xlsxwriter                1.0.2            py36hf723b7d_0
xlwings                   0.11.4           py36hd3cf94d_0
xlwt                      1.3.0            py36h1a4751e_0
yaml                      0.1.7                hc54c509_2
zict                      0.1.3            py36h2d8e73e_0
zlib                      1.2.11               h8395fce_2

@nothing2wang

This comment has been minimized.

Show comment
Hide comment
@nothing2wang

nothing2wang Jan 4, 2018

@ccordoba12 Hi, I have the same problem use spyder by Anaconda

import matplotlib.pyplot as plt

import matplotlib.pyplot as plt
Traceback (most recent call last):

File "", line 1, in
import matplotlib.pyplot as plt

File "/home/qingsong/anaconda3/lib/python3.6/site-packages/matplotlib/pyplot.py", line 116, in
_backend_mod, new_figure_manager, draw_if_interactive, _show = pylab_setup()

File "/home/qingsong/anaconda3/lib/python3.6/site-packages/matplotlib/backends/init.py", line 60, in pylab_setup
[backend_name], 0)

File "/home/qingsong/anaconda3/lib/python3.6/site-packages/matplotlib/backends/backend_qt4agg.py", line 10, in
from .backend_qt4 import (

File "/home/qingsong/anaconda3/lib/python3.6/site-packages/matplotlib/backends/backend_qt4.py", line 18, in
from .qt_compat import QtCore, QtWidgets, _getSaveFileName, version

File "/home/qingsong/anaconda3/lib/python3.6/site-packages/matplotlib/backends/qt_compat.py", line 150, in
from PyQt4 import QtCore, QtGui

ModuleNotFoundError: No module named 'PyQt4'

$python --version
Python 3.6.3 :: Anaconda custom (64-bit)

But I use python by the terminal

$python

import matplotlib.pyplot as plt

That works fine! why ?
how to fix this problem on spyder ?

thanks a lot !

@ccordoba12 Hi, I have the same problem use spyder by Anaconda

import matplotlib.pyplot as plt

import matplotlib.pyplot as plt
Traceback (most recent call last):

File "", line 1, in
import matplotlib.pyplot as plt

File "/home/qingsong/anaconda3/lib/python3.6/site-packages/matplotlib/pyplot.py", line 116, in
_backend_mod, new_figure_manager, draw_if_interactive, _show = pylab_setup()

File "/home/qingsong/anaconda3/lib/python3.6/site-packages/matplotlib/backends/init.py", line 60, in pylab_setup
[backend_name], 0)

File "/home/qingsong/anaconda3/lib/python3.6/site-packages/matplotlib/backends/backend_qt4agg.py", line 10, in
from .backend_qt4 import (

File "/home/qingsong/anaconda3/lib/python3.6/site-packages/matplotlib/backends/backend_qt4.py", line 18, in
from .qt_compat import QtCore, QtWidgets, _getSaveFileName, version

File "/home/qingsong/anaconda3/lib/python3.6/site-packages/matplotlib/backends/qt_compat.py", line 150, in
from PyQt4 import QtCore, QtGui

ModuleNotFoundError: No module named 'PyQt4'

$python --version
Python 3.6.3 :: Anaconda custom (64-bit)

But I use python by the terminal

$python

import matplotlib.pyplot as plt

That works fine! why ?
how to fix this problem on spyder ?

thanks a lot !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment