Hi,
I’m having a problem when I try to use pylab / matplotlib.pylab from command-line (willow) as well as from a cgi script (wolfsbane). This exception is raised:
import pylab
Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/opt/ts/python/2.6/lib/python2.6/site-packages/pylab.py", line 1, in <module> from matplotlib.pylab import * File "/opt/ts/python/2.6/lib/python2.6/site-packages/matplotlib/pylab.py", line 216, in <module> from matplotlib import mpl # pulls in most modules File "/opt/ts/python/2.6/lib/python2.6/site-packages/matplotlib/mpl.py", line 1, in <module> from matplotlib import artist File "/opt/ts/python/2.6/lib/python2.6/site-packages/matplotlib/artist.py", line 6, in <module> from transforms import Bbox, IdentityTransform, TransformedBbox, TransformedPath File "/opt/ts/python/2.6/lib/python2.6/site-packages/matplotlib/transforms.py", line 34, in <module> from matplotlib._path import affine_transform ImportError: ld.so.1: python: fatal: relocation error: file /opt/ts/python/2.6/lib/python2.6/site-packages/matplotlib/_path.so: symbol __1cDstdMbasic_string4Ccn0ALchar_traits4Cc__n0AJallocator4Cc___J__nullref_: referenced symbol not found
Does anyone know how to solve this problem? I guess its a configuration or installation error, isn’t it?
Thanks for your help!
Best regards, Robin
Robin Krahl wrote:
I¹m having a problem when I try to use pylab / matplotlib.pylab from command-line (willow) as well as from a cgi script (wolfsbane). [...] Does anyone know how to solve this problem? I guess its a configuration or installation error, isn¹t it?
It looks like matplotlib and numpy are being installed globally: * https://jira.toolserver.org/browse/TS-776 * https://jira.toolserver.org/browse/MNT-833
MZMcBride
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Robin Krahl:
ImportError: ld.so.1: python: fatal: relocation error: file /opt/ts/python/2.6/lib/python2.6/site-packages/matplotlib/_path.so: symbol __1cDstdMbasic_string4Ccn0ALchar_traits4Cc__n0AJallocator4Cc___J__nullref_: referenced symbol not found
This should be fixed now.
- river.
toolserver-l@lists.wikimedia.org