FS#11986 - Matplotlib cant run with current python version

Attached to Project: Community Packages
Opened by Christoffer Hirth (toffyrn) - Tuesday, 04 November 2008, 10:17 GMT
Last edited by Ronald van Haren (pressh) - Monday, 10 November 2008, 15:01 GMT
Task Type Bug Report
Category
Status Closed
Assigned To Douglas Soares de Andrade (dsa)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:
Tried to install "python-matplotlib" from community. When trying to use it it looks like it requires python 2.5 (see output).

Additional info:
* package versions:
python-matplotlib 0.98.3-2
python 2.6-2

* config and/or log files etc.
using following test file::
###########
from pylab import plot, show, ylim, yticks
from matplotlib.numerix import sin, cos, exp, pi, arange

t = arange(0.0, 2.0, 0.01)
s1 = sin(2*pi*t)
s2 = exp(-t)
s3 = sin(2*pi*t)*exp(-t)
s4 = sin(2*pi*t)*cos(4*pi*t)

t = arange(0.0, 2.0, 0.01)
plot(t, s1, t, s2+1, t, s3+2, t, s4+3, color='k')
ylim(-1,4)
yticks(arange(4), ['S1', 'S2', 'S3', 'S4'])

show()
###########


Out put:
###########
[10:48:47 toffyrn oblig2]$python test.py
/usr/lib/python2.5/site-packages/matplotlib/__init__.py:240: SyntaxWarning: assertion is always true, perhaps remove parentheses?
assert(callable, func)
/usr/lib/python2.5/site-packages/matplotlib/__init__.py:96: DeprecationWarning: the md5 module is deprecated; use hashlib instead
import md5, os, re, shutil, sys, warnings
Traceback (most recent call last):
File "test.py", line 1, in <module>
from pylab import plot, show, ylim, yticks
File "/usr/lib/python2.5/site-packages/pylab.py", line 1, in <module>
from matplotlib.pylab import *
File "/usr/lib/python2.5/site-packages/matplotlib/__init__.py", line 128, in <module>
from rcsetup import defaultParams, validate_backend, validate_toolbar
File "/usr/lib/python2.5/site-packages/matplotlib/rcsetup.py", line 19, in <module>
from matplotlib.colors import is_color_like
File "/usr/lib/python2.5/site-packages/matplotlib/colors.py", line 37, in <module>
import numpy as np
File "/usr/lib/python2.5/site-packages/numpy/__init__.py", line 125, in <module>
import add_newdocs
File "/usr/lib/python2.5/site-packages/numpy/add_newdocs.py", line 9, in <module>
from lib import add_newdoc
File "/usr/lib/python2.5/site-packages/numpy/lib/__init__.py", line 4, in <module>
from type_check import *
File "/usr/lib/python2.5/site-packages/numpy/lib/type_check.py", line 8, in <module>
import numpy.core.numeric as _nx
File "/usr/lib/python2.5/site-packages/numpy/core/__init__.py", line 5, in <module>
import multiarray
ImportError: libpython2.5.so.1.0: cannot open shared object file: No such file or directory
##############


Steps to reproduce:

Make a file called test.py with the above described contents,
open a terminal and type: "python test.py"
The above output is produced.

(My guess matplotlib requires libpython2.5 wich is in python2.5???)
This task depends upon

Closed by  Ronald van Haren (pressh)
Monday, 10 November 2008, 15:01 GMT
Reason for closing:  Fixed
Additional comments about closing:  fixed in 0.98.3-3
Comment by Christoffer Hirth (toffyrn) - Tuesday, 04 November 2008, 15:36 GMT
After todays update it gives a different output when running the above stated script.

#####
[16:30:39 toffyrn oblig2]$python test.py
/usr/lib/python2.5/site-packages/matplotlib/__init__.py:240: SyntaxWarning: assertion is always true, perhaps remove parentheses?
assert(callable, func)
/usr/lib/python2.5/site-packages/matplotlib/__init__.py:96: DeprecationWarning: the md5 module is deprecated; use hashlib instead
import md5, os, re, shutil, sys, warnings
/usr/lib/python2.6/site-packages/pytz/tzinfo.py:5: DeprecationWarning: the sets module is deprecated
from sets import Set
Traceback (most recent call last):
File "test.py", line 1, in <module>
from pylab import plot, show, ylim, yticks
File "/usr/lib/python2.5/site-packages/pylab.py", line 1, in <module>
from matplotlib.pylab import *
File "/usr/lib/python2.5/site-packages/matplotlib/pylab.py", line 206, in <module>
from matplotlib import mpl # pulls in most modules
File "/usr/lib/python2.5/site-packages/matplotlib/mpl.py", line 1, in <module>
from matplotlib import artist
File "/usr/lib/python2.5/site-packages/matplotlib/artist.py", line 4, in <module>
from transforms import Bbox, IdentityTransform, TransformedBbox, TransformedPath
File "/usr/lib/python2.5/site-packages/matplotlib/transforms.py", line 34, in <module>
from matplotlib._path import affine_transform
ImportError: libpython2.5.so.1.0: cannot open shared object file: No such file or directory
[16:34:03 toffyrn oblig2]$
##################
Comment by Christoffer Hirth (toffyrn) - Wednesday, 05 November 2008, 21:26 GMT
With the last updates problems are gone. Thx :)

Loading...