Re: [opensuse] python-matplotlib



On Thu, 2007-05-31 at 07:53 +0000, Hans van der Merwe wrote:
I installed the package from standard repo (openSUSE oss), but when I
try to run any of the examples I get:

-----------------------------------------
xxxxx:/usr/share/doc/packages/python-matplotlib/examples # python
tex_demo.py
Traceback (most recent call last):
File "tex_demo.py", line 14, in <module>
from matplotlib.numerix import arange, cos, pi
File
"/usr/lib/python2.5/site-packages/matplotlib/numerix/__init__.py", line
73, in <module>
import numpy
File "/usr/lib/python2.5/site-packages/numpy/__init__.py", line 43, in
<module>
import linalg
File "/usr/lib/python2.5/site-packages/numpy/linalg/__init__.py", line
4, in <module>
from linalg import *
File "/usr/lib/python2.5/site-packages/numpy/linalg/linalg.py", line
25, in <module>
from numpy.linalg import lapack_lite
ImportError: /usr/lib/libblas.so.3: undefined symbol:
_gfortran_st_write_done
-----------------------------------------

I reinstalled numpy, but still the same.

This is typical of python not finding the correct library to import.
It should have installed into the directory(s) that contain Python's
libraries. On my 10.0 system these are located in /usr/lib/python. I'm
wondering what version of python that you are using, it might be
possible that you have have the file correctly installed, but are
invoking the wrong version of python. Another thing is that you are one
directory up from your import directory when you are invoking this, try
copying the file down one level, or copying the library files up one
level, or better yet, copy the example files to a directory in
your /home/<you> and then you can blow it all away when you are done
without having to worry about any kind of corruption of the original
files. I have a /home/Mike/Projects/Python directory where I am working
through a "learn to program python" book, from here I can find all of
python's normal library files, and the new library files that came on
disk with the book, as I localed them there,
i.e. /home/Mike/Projects/Python/<libraries>/

HTH,

Mike

--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx



Relevant Pages

  • Re: Reading Fortran Data
    ... am currently getting acquainted with Python and, in particular SciPy, ... NumPy, and Matplotlib. ... Fortran. ... this in Python is to use string formating with a given width. ...
    (comp.lang.python)
  • Re: Re: maximum value in a column of file
    ... I was trying to do this by using python, that the reason why i tried to use numpy. ... extract value from line ... ...
    (comp.lang.python)
  • Re: switching to numpy and failing, a user story
    ... switch a large codebase (python and C++) to using numpy. ... numpy/scipy mailing lists (else you used a different name or email, ...
    (comp.lang.python)
  • Re: memory leak problem with arrays
    ... I'm new to programming in python and I hope that this is the problem. ... I've created a cellular automata program in python with the numpy array ... Python keeps track of number of references to every object if the ... Sent message to the NumPy forum as per Roberts suggestion. ...
    (comp.lang.python)
  • Re: Atlas and NumPy Problems
    ... Robert Kern wrote: ... In installing NumPy, I ... It worked fine on my machine because I had modified my Python config to ...
    (comp.lang.python)