[SciPy-user] No module named _umfpack

Robert Cimrman cimrman3 at ntc.zcu.cz
Tue Apr 18 03:03:32 CDT 2006


Robert Kern wrote:
> Ron Kneusel wrote:
> 
>>Hi-
>>
>>I'm building numpy and scipy according to the directions on the web site 
>>(Steve Baum's doc).  Everything works fine and compiles properly.  When I 
>>load scipy:
>>
>>
>>>>>import scipy
>>
>>I'm told that there is no module named '_umfpack'.
>>
>>Looking through the archives I see a recent post where someone said that 
>>setup.py for linsolve was screwy and was building __umfpack instead of 
>>_umfpack.
>>
>>What the post didn't mention is how to fix this error.  What needs to be 
>>modified?
> 
> 
> If you actually do want to build the UMFPACK bindings, then you can edit
> Lib/linsolve/setup.py to replace "__umfpack" with "_umfpack".

you mean Lib/linsolve/umfpack/setup.py? in Lib/linsolve/setup.py there 
is just config.add_subpackage('umfpack')...

> There are two bugs open and assigned to Robert Cimrman. I hope he can find the
> time to attend to them soon.

Sorry, I missed them...

> http://projects.scipy.org/scipy/scipy/ticket/190

Well, it should work as it is now - the top-level umfpack module is 
'umfpack.py', the swig-generated modules are '_umfpack.py' and 
'__umfpack.so', so please do not change this.

UMFPACK is optional, and it is not included in the scipy SVN, so you 
have to install it yourself from Tim Davis' homepage if you want (the 
version 4.4). Then just add [amd] and [umfpack] sections to your 
site.cfg, as it is described in numpy/site.cfg.example

 > http://projects.scipy.org/scipy/scipy/ticket/191

Done in the SVN.

cheers,
r.



More information about the SciPy-user mailing list