[PYTHON MATRIX-SIG] Strange problem importing Numeric

David Ascher da@maigret.cog.brown.edu
Thu, 23 Jan 1997 15:30:50 -0500 (EST)


> Then it correctly transfers those files. This is better, but I still get:
> 
> 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.

--david


_______________
MATRIX-SIG  - SIG on Matrix Math for Python

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