Hey there. I'm new to Linux, and must install Scipy (Scientific Python) on my Suse 9.2 .
I have the Numeric model installed already. I've used the RPM and I can import the scipy module, but when I try to run xplt then I get this horrible error lines, can somebody please give any clue how to solve that? I've looked in these directories and these mentioned files do exist. Thanks a lot.

>>> import scipy
>>> from scipy import xplt
>>> xplt.window
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "/usr/lib/python2.3/site-packages/scipy_base/ppimport.py", line 303, in __getattr__
module = self._ppimport_importer()
File "/usr/lib/python2.3/site-packages/scipy_base/ppimport.py", line 262, in _ppimport_importer
raise PPImportError,\
scipy_base.ppimport.PPImportError: Traceback (most recent call last):
File "/usr/lib/python2.3/site-packages/scipy_base/ppimport.py", line 273, in _ppimport_importer
module = __import__(name,None,None,)
File "/usr/lib/python2.3/site-packages/scipy/xplt/__init__.py", line 12, in ?
from Mplot import *
File "/usr/lib/python2.3/site-packages/scipy/xplt/Mplot.py", line 117, in ?
from scipy.stats import histogram2 as hist
File "/usr/lib/python2.3/site-packages/scipy_base/ppimport.py", line 303, in __getattr__
module = self._ppimport_importer()
File "/usr/lib/python2.3/site-packages/scipy_base/ppimport.py", line 262, in _ppimport_importer
raise PPImportError,\
PPImportError: Traceback (most recent call last):
File "/usr/lib/python2.3/site-packages/scipy_base/ppimport.py", line 273, in _ppimport_importer
module = __import__(name,None,None,)
File "/usr/lib/python2.3/site-packages/scipy/stats/__init__.py", line 8, in ?
from stats import *
File "/usr/lib/python2.3/site-packages/scipy/stats/stats.py", line 1502, in ?
import distributions
File "/usr/lib/python2.3/site-packages/scipy/stats/distributions.py", line 21, in ?
errp = special.errprint
File "/usr/lib/python2.3/site-packages/scipy_base/ppimport.py", line 303, in __getattr__
module = self._ppimport_importer()
File "/usr/lib/python2.3/site-packages/scipy_base/ppimport.py", line 273, in _ppimport_importer
module = __import__(name,None,None,)
File "/usr/lib/python2.3/site-packages/scipy/special/__init__.py", line 8, in ?
from basic import *
File "/usr/lib/python2.3/site-packages/scipy/special/basic.py", line 5, in ?
from cephes import *
ImportError: libg2c.so.0: cannot open shared object file: No such file or directory

1) find the directory that contains file libg2c.so.0
2) Run this little program:

import sys
print sys.path

It should show you PYTHONPATH, see if it contains the directory for file libg2c.so.0
Normally your installation should take care of it!
3) if not, then you have to tell Python by adding this to the beginning of your code:

import sys
dir_of_libg2c = "/usr/lib/python2.3/site-packages/scipy/whatever_it_is"
sys.path.append(dir_of_libg2c)

I don't have a Linux machine, I am guessing here!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.