[Scipy-tickets] [SciPy] #1746: scipy.optimize -> ImportError: No module named _components

SciPy Trac scipy-tickets@scipy....
Sun Oct 14 07:57:59 CDT 2012


#1746: scipy.optimize -> ImportError: No module named _components
------------------------------------------------------------+---------------
 Reporter:  goneasync                                       |       Owner:  somebody   
     Type:  defect                                          |      Status:  new        
 Priority:  normal                                          |   Milestone:  Unscheduled
Component:  scipy.optimize                                  |     Version:  0.10.1     
 Keywords:  _components cs_graph_components csgraph sparse  |  
------------------------------------------------------------+---------------
 I have installed/tried scipy 0.9.0 and 0.10.1, and tried 0.11.0 (but
 failed on 0.11.0), into python3.2 on Mac OS X (10.7.5) I haven't
 straightened out nose yet on this system, so the scipy tests haven't
 worked. Nevertheless, I have used fft out of scipy.fftpack, so I know at
 least some parts of scipy are working. I have now tried to use
 scipy.optimise, and through a chain of imports it evidently fails in its
 attempt to load the _components module using 0.9.0 and 0.10.1 (copied
 below). I have confirmed that _components.py exists in the
 /Library/.../sparse/csgraph/ directory, but I can't work out why it won't
 load it -- all syntax appears to be in order. I admit to being new to
 python, and so I'm only going on intuition and what I can try to put
 together by referring to the Dusty Philips book. Any help would be
 appreciated!

  from scipy.optimize import minimize
   File "/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2
 /site-packages/scipy/optimize/__init__.py", line 135, in <module>
     from .nonlin import *
   File "/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2
 /site-packages/scipy/optimize/nonlin.py", line 118, in <module>
     import scipy.sparse.linalg
   File "/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2
 /site-packages/scipy/sparse/__init__.py", line 182, in <module>
     from .csgraph import *
   File "/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2
 /site-packages/scipy/sparse/csgraph/__init__.py", line 144, in <module>
     from _components import cs_graph_components
 ImportError: No module named _components

-- 
Ticket URL: <http://projects.scipy.org/scipy/ticket/1746>
SciPy <http://www.scipy.org>
SciPy is open-source software for mathematics, science, and engineering.


More information about the Scipy-tickets mailing list