failure importing real from Numeric in io.array_import
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
On Thu, 25 Sep 2003, eric jones wrote:
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?
We should change the import statement if we want to support Numeric starting from 21.0. In fact, transformation Numeric->numarray would be easier when using scipy_base in scipy modules. The only possible drawback that I can see (and live with) is that running tests in situ would require that scipy_base must be installed. Pearu
participants (2)
-
eric jones -
Pearu Peterson