The platform is Suse Linux Enterprise Server 12.
Also, I checked and there are no modules loaded:
module list
No Modulefiles Currently Loaded.
I also checked that I was launching the anaconda version of python/ipython.
?To be more explicit about the error, if I use in my matplotlibrc:
?backend : Qt5Agg
backend.qt4 : PyQt4
Then when I start up ipython with the --pylab argument, I get:
[TerminalIPythonApp] WARNING | Eventloop or matplotlib integration failed.
Is matplotlib installed?
···
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
/u/jdslavin/anaconda2/lib/python2.7/site-packages/IPython/core/shellapp.pyc
in <lambda>(key)
196 shell = self.shell
197 if self.pylab:
--> 198 enable = lambda key: shell.enable_pylab(key,
import_all=self.pylab_import_all)
199 key = self.pylab
200 elif self.matplotlib:
...
(snipped)
/u/jdslavin/anaconda2/lib/python2.7/site-packages/matplotlib/backends/qt_compat.py
in <module>()
135 if QT_API == QT_API_PYQT5:
136 try:
--> 137 from PyQt5 import QtCore, QtGui, QtWidgets
138 _getSaveFileName = QtWidgets.QFileDialog.getSaveFileName
139 except ImportError:
ImportError: /lib64/libpthread.so.0: version `GLIBC_2.12' not found
(required by
/u/jdslavin/anaconda2/lib/python2.7/site-packages/PyQt5/../../.././libglib-2.0.so.0)
So I'm guessing that this has to do with the version of glibc installed
rather than the missing gui toolkits as I had previously thought. It could
be that loading some module might fix the problem, though I'm not sure if
that's true or which one I'd need to load.
Any ideas?
Jon
On Sun, Feb 4, 2018 at 10:28 AM, <matplotlib-users-request at python.org> wrote:
Date: Sun, 4 Feb 2018 16:12:20 +0100
From: Jerzy Karczmarczuk <jerzy.karczmarczuk at unicaen.fr>
To: matplotlib-users at python.org
Subject: Re: [Matplotlib-users] backend for matplotlib on NAS Lou
Message-ID: <ac90dd6e-f292-84fa-7e54-e8779a531e6c at unicaen.fr>
Content-Type: text/plain; charset=utf-8; format=flowedPlease, tell what is your platform, under which system. Which Python
version.
You seem not believing me that you may have conflicts between various QT
instances. Perhaps...? Verify *all* the occurrences of your libraries
susceptible of being used by the mpl backend variants. Use 'which',
'where', 'locate', etc., all that goes on your system.
First of all, you must ensure and be certain that you launch what you
think you do, and not some "parasites".
BTW. I didn't use "show()" for a long time, plt.plot(...) plots, and
that's it.All the best
Jerzy
------------------------------
Message: 3
Date: Sun, 04 Feb 2018 15:22:29 +0000
From: Nathan Goldbaum <nathan12343 at gmail.com>
To: Jerzy Karczmarczuk <jerzy.karczmarczuk at unicaen.fr>
Cc: matplotlib-users at python.org
Subject: Re: [Matplotlib-users] backend for matplotlib on NAS Lou
Message-ID:
<CAJXewOkyWqatumYFLLBsuSpOC2OzMx_zHmQ6O0=91T3ewYo+SA at mail.
gmail.com>
Content-Type: text/plain; charset="utf-8"I would also unload all modules you have loaded, if Lou has a module system
installed. In the past I?ve found that the module system used on HPC
systems can defeat the rpath trickery that conda uses to associate an
extension module with a python package.
--
________________________________________________________
Jonathan D. Slavin Harvard-Smithsonian CfA
jslavin at cfa.harvard.edu 60 Garden Street, MS 83
phone: (617) 496-7981 Cambridge, MA 02138-1516
cell: (781) 363-0035 USA
________________________________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/matplotlib-users/attachments/20180205/c282fcdc/attachment.html>