[Scipy-tickets] [SciPy] #1438: ImportError: No module named c_spec

SciPy Trac scipy-tickets@scipy....
Sun May 8 13:23:25 CDT 2011

#1438: ImportError: No module named c_spec
 Reporter:  alex_lai  |       Owner:  somebody   
     Type:  defect    |      Status:  new        
 Priority:  normal    |   Milestone:  Unscheduled
Component:  Other     |     Version:  0.9.0      
 Keywords:            |  
 Hi gurus,

   I'm new to Python. When I ran the scipy.test(), I got the following
 error. Could someone please help.

 # python3 -c "import scipy; scipy.test()"
 Running unit tests for scipy
 NumPy version 1.5.1
 NumPy is installed in /usr/local/lib/python3.1/site-packages/numpy
 SciPy version 0.9.0rc4
 SciPy is installed in /usr/local/lib/python3.1/site-packages/scipy
 Python version 3.1.2 (r312:79147, Mar 23 2010, 02:42:06) [GCC 3.4.6]
 nose version 1.0.0
 ERROR: Failure: ImportError (No module named c_spec)
 Traceback (most recent call last):
   File "/usr/local/lib/python3.1/site-
 packages/nose-1.0.0-py3.1.egg/nose/failure.py", line 37, in runTest
     raise self.exc_class(self.exc_val).with_traceback(self.tb)
   File "/usr/local/lib/python3.1/site-
 packages/nose-1.0.0-py3.1.egg/nose/loader.py", line 390, in
     addr.filename, addr.module)
   File "/usr/local/lib/python3.1/site-
 packages/nose-1.0.0-py3.1.egg/nose/importer.py", line 39, in
     return self.importFromDir(dir_path, fqname)
   File "/usr/local/lib/python3.1/site-
 packages/nose-1.0.0-py3.1.egg/nose/importer.py", line 86, in importFromDir
     mod = load_module(part_fqname, fh, filename, desc)
   File "/usr/local/lib/python3.1/site-packages/scipy/weave/__init__.py",
 line 13, in <module>
     from .inline_tools import inline
   File "/usr/local/lib/python3.1/site-
 packages/scipy/weave/inline_tools.py", line 5, in <module>
     from . import ext_tools
   File "/usr/local/lib/python3.1/site-packages/scipy/weave/ext_tools.py",
 line 7, in <module>
     from . import converters
   File "/usr/local/lib/python3.1/site-packages/scipy/weave/converters.py",
 line 5, in <module>
     from . import c_spec
   File "/usr/local/lib/python3.1/site-packages/scipy/weave/c_spec.py",
 line 380, in <module>
     import os, c_spec # yes, I import myself to find out my __file__
 ImportError: No module named c_spec

 Ran 1 test in 0.048s

 FAILED (errors=1)

 Thank you in advance,


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

More information about the Scipy-tickets mailing list