[SciPy-dev] failure importing real from Numeric in io.array_import

eric jones eric at enthought.com
Thu Sep 25 02:48:46 CDT 2003


Just got the following on one of our internal tests when using the CVS 
of SciPy:

Traceback (most recent call last):
  File "C:\wrk\proava\trunk\prototype\tests\test_depth_time.py", line 
102, in ch
eck_single_input
    data = read_depth_data()
  File "C:\wrk\proava\trunk\prototype\tests\test_depth_time.py", line 
10, in rea
d_depth_data
    data = io.read_array(os.path.join(d,'z2t_input_z_vp.txt'),
  File "C:\Python23\Lib\site-packages\scipy_base\ppimport.py", line 226, 
in __ge
tattr__
    module = self._ppimport_importer()
  File "C:\Python23\Lib\site-packages\scipy_base\ppimport.py", line 194, 
in _ppi
mport_importer
    raise PPImportError,\
PPImportError: Traceback (most recent call last):
  File "C:\Python23\Lib\site-packages\scipy_base\ppimport.py", line 204, 
in _ppi
mport_importer
    module = __import__(name,None,None,['*'])
  File "C:\Python23\lib\site-packages\scipy\io\__init__.py", line 11, in ?
    from array_import import *
  File "C:\Python23\Lib\site-packages\scipy\io\array_import.py", line 
13, in ?
    from Numeric import array, take, concatenate, Float, asarray, real, imag
ImportError: cannot import name real

Changing this to

from scipy_base import real, imag

fixed the problems.

I'm using Numeric 23.1.  Should I be using the Numeric CVS, or should we 
change the import statement?

thanks,
eric






More information about the Scipy-dev mailing list