[PYTHON MATRIX-SIG] Strange problem importing Numeric

Andy Dustman andy@CCMSD.chem.uga.edu
Thu, 23 Jan 1997 15:54:05 -0500 (EST)


On Thu, 23 Jan 1997, David Ascher wrote:

> > Python 1.4 (Oct 28 1996) [C]
> > Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
> > >>> import sys
> > >>> sys.path
> > ['', '', '/usr/local/lib/python1.4',
> > '/usr/local/lib/python1.4/sharedmodules', '', '/usr/local/lib/python1.4',
> > '/usr/local/lib/python1.4/test', '/usr/local/lib/python1.4/irix5',
> > '/usr/local/lib/python1.4/sharedmodules',
> > '/usr/local/lib/python1.4/NumPy']
> > >>> import Numeric
> > Traceback (innermost last):
> >   File "<stdin>", line 1, in ?
> >   File "/usr/local/lib/python1.4/NumPy/Numeric.py", line 4, in ?
> >     import multiarray
> > ImportError: 26248:python: rld: Fatal Error: cannot map soname
> > 'libnumpymodule.so' using any of the filenames
> > /usr/lib/libnumpymodule.so:/lib/libnumpymodule.so:/lib/cmplrs/cc/libnumpymodule.so:/usr/lib/cmplrs/cc/libnumpymodule.so:
> > -- either the file does not exist or the file is not mappable (with reason
> > indicated in previous msg)
> > >>> ^D
> > % ls -l /usr/local/lib/python1.4/sharedmodules/libnumpymodule.so
> > -r-xr-xr-x    1 root     sys       164700 Jan 23 12:23
> 
> You should add /usr/local/lib/python1.4/sharedmodules to your
> LD_LIBRARY_PATH.

Okay, so this is not so much a problem with Python, but a general shared
library problem. I made a symlink in /usr/lib to real library in
sharedmodules and that has corrected the problem. I'll have to figure out
what exactly needs to be done on SGI to change the path for shared
libraries. Thanx, guys.

--
Andy Dustman / Computational Center for Molecular Structure and Design / UGA
You can have my PGP public key by sending mail with subject "send file key".
You can have my PGP secret key when you pry it out of my cold, dead neurons.
http://charon.chem.uga.edu/~andy    mailto:andy@CCMSD.chem.uga.edu    <}+++<


_______________
MATRIX-SIG  - SIG on Matrix Math for Python

send messages to: matrix-sig@python.org
administrivia to: matrix-sig-request@python.org
_______________