On Sun, Jul 20, 2008 at 8:16 PM, rpmu...@gmail.com rpmu...@gmail.com wrote:
When you were installing scipy, do you have umfpack installed? SciPy needs to be compiled with it.
E.g. do you have
/usr/lib/python2.5/site-packages/scipy/linsolve/umfpack/__umfpack.so
? (It should be in some similar path on mac)
I have experience with Debian/Ubuntu and Robert with gentoo. We don't use Mac OS X, but a lot of people on scipy-users do, so they may help as well.
Just installed UMFPack, and rebuild scipy from scratch, but something is going wrong in the build, and, although I have the directory:
$ ls /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/ site-packages/scipy/linsolve/umfpack/ __init__.py _umfpack.py info.pyc tests/ __init__.pyc _umfpack.pyc setup.py umfpack.py __umfpack.so info.py setup.pyc umfpack.pyc
For some reason I can't import it:
s886301{rmuller}[1]: import scipy.linsolve.umfpack as um
AttributeError Traceback (most recent call last)
/Users/rmuller/<ipython console> in <module>()
AttributeError: 'module' object has no attribute 'umfpack'
However, I'll pursue this on scipy-users. Thanks for your help.
Hm, could you try:
In [1]: import scipy.linsolve
In [2]: dir(scipy.linsolve) Out[2]: ['NumpyTest', '__all__', '__builtins__', '__doc__', '__file__', '__name__', '__path__', '_csuperlu', '_dsuperlu', '_ssuperlu', '_superlu', '_zsuperlu', 'asarray', 'factorized', 'isUmfpack', 'isspmatrix', 'isspmatrix_csc', 'isspmatrix_csr', 'linsolve', 'spdiags', 'splu', 'spsolve', 'test', 'umfpack', 'useUmfpack', 'use_solver']
In [3]: scipy.linsolve.isUmfpack Out[3]: True
The umfpack doesn't seem to be imported. See also scipy/linsolve/__init__.py and scipy/linsolve/umfpack/__init__.py
Ondrej