Skip to content
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

Importing matplotlib gives an error #67

Closed
drdwitte opened this issue Nov 20, 2015 · 4 comments
Closed

Importing matplotlib gives an error #67

drdwitte opened this issue Nov 20, 2015 · 4 comments

Comments

@drdwitte
Copy link

I basically just have a number of import statements, with matplotlib.pyplot causing problems. I have it in the scipy notebook but not in the all-spark notebook

import matplotlib.pyplot as plt
%matplotlib inline

ImportError: libXrender.so.1: cannot open shared object file: No such file or directory

Full error trace:
----> 1 import matplotlib.pyplot

/opt/conda/lib/python3.4/site-packages/matplotlib/pyplot.py in ()
107
108 from matplotlib.backends import pylab_setup
--> 109 _backend_mod, new_figure_manager, draw_if_interactive, _show = pylab_setup()
110
111

/opt/conda/lib/python3.4/site-packages/matplotlib/backends/init.py in pylab_setup()
30 # imports. 0 means only perform absolute imports.
31 backend_mod = import(backend_name,
---> 32 globals(),locals(),[backend_name],0)
33
34 # Things we pull in from all backends

/opt/conda/lib/python3.4/site-packages/matplotlib/backends/backend_qt4agg.py in ()
15 from matplotlib.figure import Figure
16
---> 17 from .backend_qt5agg import NavigationToolbar2QTAgg
18 from .backend_qt5agg import FigureCanvasQTAggBase
19

/opt/conda/lib/python3.4/site-packages/matplotlib/backends/backend_qt5agg.py in ()
16
17 from .backend_agg import FigureCanvasAgg
---> 18 from .backend_qt5 import QtCore
19 from .backend_qt5 import QtGui
20 from .backend_qt5 import FigureManagerQT

/opt/conda/lib/python3.4/site-packages/matplotlib/backends/backend_qt5.py in ()
29 figureoptions = None
30
---> 31 from .qt_compat import QtCore, QtGui, QtWidgets, _getSaveFileName, version
32 from matplotlib.backends.qt_editor.formsubplottool import UiSubplotTool
33

/opt/conda/lib/python3.4/site-packages/matplotlib/backends/qt_compat.py in ()
89 if QT_API in [QT_API_PYQT, QT_API_PYQTv2]: # PyQt4 API
90
---> 91 from PyQt4 import QtCore, QtGui
92
93 try:

ImportError: libXrender.so.1: cannot open shared object file: No such file or directory

@parente
Copy link
Member

parente commented Nov 20, 2015

As a quick workaround, put the %matplotlib inline first. There was another issue open about this and I thought we had it fixed, but apparently not in all cases.

@parente
Copy link
Member

parente commented Dec 29, 2015

Ref: #51, #58

@parente
Copy link
Member

parente commented Jan 2, 2016

Merged. Will report tag when rebuilt and pushed to dockerhub.

@parente
Copy link
Member

parente commented Jan 2, 2016

Tagged 092fe70190dc on Docker Hub.

@parente parente closed this as completed Jan 2, 2016
rochaporto pushed a commit to rochaporto/docker-stacks that referenced this issue Jan 23, 2019
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