[SciPy-Dev] wig_import_helper error

Vincent Davis vincent@vincentdavis....
Sun Oct 10 12:45:27 CDT 2010


This ticket might be related http://projects.scipy.org/scipy/ticket/1210
This is on a fresh install from source of py2.7, numpy, scipy 64bit on osx 10.6

======================================================================
ERROR: Failure: ImportError (dynamic module does not define init
function (init_csr))
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/nose-0.11.2-py2.7.egg/nose/loader.py",
line 382, in loadTestsFromName
    addr.filename, addr.module)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/nose-0.11.2-py2.7.egg/nose/importer.py",
line 39, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/nose-0.11.2-py2.7.egg/nose/importer.py",
line 86, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/scipy/stats/__init__.py",
line 7, in <module>
    from stats import *
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/scipy/stats/stats.py",
line 207, in <module>
    import distributions
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/scipy/stats/distributions.py",
line 13, in <module>
    from scipy import optimize
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/scipy/optimize/__init__.py",
line 14, in <module>
    from nonlin import *
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/scipy/optimize/nonlin.py",
line 115, in <module>
    import scipy.sparse.linalg
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/scipy/sparse/__init__.py",
line 6, in <module>
    from csr import *
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/scipy/sparse/csr.py",
line 12, in <module>
    from sparsetools import csr_tocsc, csr_tobsr, csr_count_blocks, \
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/scipy/sparse/sparsetools/__init__.py",
line 4, in <module>
    from csr import *
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/scipy/sparse/sparsetools/csr.py",
line 25, in <module>
    _csr = swig_import_helper()
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/scipy/sparse/sparsetools/csr.py",
line 21, in swig_import_helper
    _mod = imp.load_module('_csr', fp, pathname, description)
ImportError: dynamic module does not define init function (init_csr)

----------------------------------------------------------------------
Ran 1801 tests in 7.235s

FAILED (KNOWNFAIL=6, SKIP=29, errors=9)
<nose.result.TextTestResult run=1801 errors=9 failures=0>

-- 
Thanks
Vincent Davis
720-301-3003


More information about the SciPy-Dev mailing list