Hi SWAN Team!
If this is in the wrong section, please redirect as you see fit.
I’ve been using the ‘Bleeding Edge Python3’ Software Stack in order to have access to pandas 0.24, but since Monday evening I cannot run on ‘Bleeding Edge Python3’ without running into an issue when importing matplotlib.pyplot.
Here’s the error message:
AttributeError Traceback (most recent call last)
<ipython-input-2-6f4421f52ee3> in <module>
2 #%matplotlib notebook
3
----> 4 import matplotlib.pyplot
5
6 # Do all the imports
/cvmfs/sft-nightlies.cern.ch/lcg/views/dev3python3/Wed/x86_64-centos7-gcc62-opt/lib/python3.6/site-packages/matplotlib/pyplot.py in <module>
2347 dict.__setitem__(rcParams, "backend", rcsetup._auto_backend_sentinel)
2348 # Set up the backend.
-> 2349 switch_backend(rcParams["backend"])
2350
2351 # Just to be safe. Interactive mode can be turned on without
/cvmfs/sft-nightlies.cern.ch/lcg/views/dev3python3/Wed/x86_64-centos7-gcc62-opt/lib/python3.6/site-packages/matplotlib/__init__.py in __getitem__(self, key)
818 if val is rcsetup._auto_backend_sentinel:
819 from matplotlib import pyplot as plt
--> 820 plt.switch_backend(rcsetup._auto_backend_sentinel)
821
822 return dict.__getitem__(self, key)
/cvmfs/sft-nightlies.cern.ch/lcg/views/dev3python3/Wed/x86_64-centos7-gcc62-opt/lib/python3.6/site-packages/matplotlib/pyplot.py in switch_backend(newbackend)
202 "wxagg", "agg"]:
203 try:
--> 204 switch_backend(candidate)
205 except ImportError:
206 continue
/cvmfs/sft-nightlies.cern.ch/lcg/views/dev3python3/Wed/x86_64-centos7-gcc62-opt/lib/python3.6/site-packages/matplotlib/pyplot.py in switch_backend(newbackend)
213 else "matplotlib.backends.backend_{}".format(newbackend.lower()))
214
--> 215 backend_mod = importlib.import_module(backend_name)
216 Backend = type(
217 "Backend", (matplotlib.backends._Backend,), vars(backend_mod))
/cvmfs/sft.cern.ch/lcg/releases/Python/3.6.5-f74f0/x86_64-centos7-gcc62-opt/lib/python3.6/importlib/__init__.py in import_module(name, package)
124 break
125 level += 1
--> 126 return _bootstrap._gcd_import(name[level:], package, level)
127
128
/cvmfs/sft-nightlies.cern.ch/lcg/views/dev3python3/Wed/x86_64-centos7-gcc62-opt/lib/python3.6/site-packages/matplotlib/backends/backend_gtk3agg.py in <module>
2
3 from .. import cbook
----> 4 from . import backend_agg, backend_cairo, backend_gtk3
5 from .backend_cairo import cairo
6 from .backend_gtk3 import Gtk, _BackendGTK3
/cvmfs/sft-nightlies.cern.ch/lcg/views/dev3python3/Wed/x86_64-centos7-gcc62-opt/lib/python3.6/site-packages/matplotlib/backends/backend_cairo.py in <module>
13 try:
14 import cairo
---> 15 if cairo.version_info < (1, 11, 0):
16 # Introduced create_for_data for Py3.
17 raise ImportError
AttributeError: module 'cairo' has no attribute 'version_info'
If this is not fixable for the time being, I respect that considering the Software Stack is labelled as ‘unstable’, but I nevertheless ask if this can be fixed because I have code necessitating pandas 0.24.
Thank you for the time and service,
Joel