J
Julien Fiore
Hi,
I have problems trying to install the scipy.weave package. I run Python
2.4 on windows XP and my C compiler is MinGW.
Below is the output of scipy.weave.test(). I read that the tests should
last several minutes, but in my case it only lasts a few seconds.
Thanks in advance for any help.
Julien Fiore
Found 16 tests for scipy.weave.slice_handler
Found 0 tests for scipy.weave.c_spec
Found 2 tests for scipy.weave.blitz_tools
building extensions here:
c:\docume~1\julien~1\locals~1\temp\Julien\python24_compiled\m10
Found 1 tests for scipy.weave.ext_tools
Found 74 tests for scipy.weave.size_check
Found 9 tests for scipy.weave.build_tools
Found 0 tests for scipy.weave.inline_tools
Found 1 tests for scipy.weave.ast_tools
Found 0 tests for scipy.weave.wx_spec
Found 3 tests for scipy.weave.standard_array_spec
Found 26 tests for scipy.weave.catalog
Found 0 tests for __main__
................................EE..............E..E........E................EE...............warning:
specified build_dir '_bad_path_' does not exist or is not writable.
Trying default locations
......warning: specified build_dir '_bad_path_' does not exist or is not
writable. Trying default locations
.................................removing
'c:\docume~1\julien~1\locals~1\temp\tmpsavufxcat_test' (and everything
under it)
error removing c:\docume~1\julien~1\locals~1\temp\tmpsavufxcat_test:
c:\docume~1\julien~1\locals~1\temp\tmpsavufxcat_test\win3224compiled_catalog:
Permission denied
error removing c:\docume~1\julien~1\locals~1\temp\tmpsavufxcat_test:
c:\docume~1\julien~1\locals~1\temp\tmpsavufxcat_test: Directory not
empty
..removing 'c:\docume~1\julien~1\locals~1\temp\tmpt-_vddcat_test' (and
everything under it)
..
======================================================================
ERROR: check_error1
(scipy.weave.size_check.test_size_check.test_dummy_array)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"C:\Python24\lib\site-packages\scipy\weave\tests\test_size_check.py",
line 99, in check_error1
self.generic_error_test(x,y)
File
"C:\Python24\lib\site-packages\scipy\weave\tests\test_size_check.py",
line 134, in generic_error_test
self.generic_test('',x,y)
File
"C:\Python24\lib\site-packages\scipy\weave\tests\test_size_check.py",
line 131, in generic_test
self.assert_array_equal('',actual,desired)
File
"C:\Python24\lib\site-packages\scipy\weave\tests\test_size_check.py",
line 110, in assert_array_equal
assert(actual == desired)
File "C:\Python24\lib\site-packages\scipy\weave\size_check.py", line
122, in __cmp__
if len(self.shape) == len(other.shape) == 0:
AttributeError: 'tuple' object has no attribute 'shape'
======================================================================
ERROR: check_error2
(scipy.weave.size_check.test_size_check.test_dummy_array)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"C:\Python24\lib\site-packages\scipy\weave\tests\test_size_check.py",
line 102, in check_error2
self.generic_error_test(x,y)
File
"C:\Python24\lib\site-packages\scipy\weave\tests\test_size_check.py",
line 134, in generic_error_test
self.generic_test('',x,y)
File
"C:\Python24\lib\site-packages\scipy\weave\tests\test_size_check.py",
line 131, in generic_test
self.assert_array_equal('',actual,desired)
File
"C:\Python24\lib\site-packages\scipy\weave\tests\test_size_check.py",
line 110, in assert_array_equal
assert(actual == desired)
File "C:\Python24\lib\site-packages\scipy\weave\size_check.py", line
122, in __cmp__
if len(self.shape) == len(other.shape) == 0:
AttributeError: 'tuple' object has no attribute 'shape'
======================================================================
ERROR: check_1d_3
(scipy.weave.size_check.test_size_check.test_dummy_array_indexing)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"C:\Python24\lib\site-packages\scipy\weave\tests\test_size_check.py",
line 207, in check_1d_3
if nx.which[0] != "numarray":
AttributeError: 'module' object has no attribute 'which'
======================================================================
ERROR: check_1d_6
(scipy.weave.size_check.test_size_check.test_dummy_array_indexing)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"C:\Python24\lib\site-packages\scipy\weave\tests\test_size_check.py",
line 214, in check_1d_6
if nx.which[0] != "numarray":
AttributeError: 'module' object has no attribute 'which'
======================================================================
ERROR: through a bunch of different indexes at it for good measure.
----------------------------------------------------------------------
Traceback (most recent call last):
File
"C:\Python24\lib\site-packages\scipy\weave\tests\test_size_check.py",
line 265, in check_1d_random
self.generic_1d('a[%s:%s:%s]' %(beg,end,step))
File
"C:\Python24\lib\site-packages\scipy\weave\tests\test_size_check.py",
line 174, in generic_1d
self.generic_wrap(a,expr)
File
"C:\Python24\lib\site-packages\scipy\weave\tests\test_size_check.py",
line 164, in generic_wrap
desired = array(eval(expr).shape)
File "<string>", line 0, in ?
ValueError: slice step cannot be zero
======================================================================
ERROR: through a bunch of different indexes at it for good measure.
----------------------------------------------------------------------
Traceback (most recent call last):
File
"C:\Python24\lib\site-packages\scipy\weave\tests\test_size_check.py",
line 289, in check_2d_random
self.generic_2d(expr)
File
"C:\Python24\lib\site-packages\scipy\weave\tests\test_size_check.py",
line 177, in generic_2d
self.generic_wrap(a,expr)
File
"C:\Python24\lib\site-packages\scipy\weave\tests\test_size_check.py",
line 164, in generic_wrap
desired = array(eval(expr).shape)
File "<string>", line 0, in ?
ValueError: slice step cannot be zero
======================================================================
ERROR: through a bunch of different indexes at it for good measure.
----------------------------------------------------------------------
Traceback (most recent call last):
File
"C:\Python24\lib\site-packages\scipy\weave\tests\test_size_check.py",
line 303, in check_3d_random
self.generic_3d(expr)
File
"C:\Python24\lib\site-packages\scipy\weave\tests\test_size_check.py",
line 180, in generic_3d
self.generic_wrap(a,expr)
File
"C:\Python24\lib\site-packages\scipy\weave\tests\test_size_check.py",
line 164, in generic_wrap
desired = array(eval(expr).shape)
File "<string>", line 0, in ?
ValueError: slice step cannot be zero
----------------------------------------------------------------------
Ran 132 tests in 2.656s
FAILED (errors=7)
I have problems trying to install the scipy.weave package. I run Python
2.4 on windows XP and my C compiler is MinGW.
Below is the output of scipy.weave.test(). I read that the tests should
last several minutes, but in my case it only lasts a few seconds.
Thanks in advance for any help.
Julien Fiore
Found 16 tests for scipy.weave.slice_handler
Found 0 tests for scipy.weave.c_spec
Found 2 tests for scipy.weave.blitz_tools
building extensions here:
c:\docume~1\julien~1\locals~1\temp\Julien\python24_compiled\m10
Found 1 tests for scipy.weave.ext_tools
Found 74 tests for scipy.weave.size_check
Found 9 tests for scipy.weave.build_tools
Found 0 tests for scipy.weave.inline_tools
Found 1 tests for scipy.weave.ast_tools
Found 0 tests for scipy.weave.wx_spec
Found 3 tests for scipy.weave.standard_array_spec
Found 26 tests for scipy.weave.catalog
Found 0 tests for __main__
................................EE..............E..E........E................EE...............warning:
specified build_dir '_bad_path_' does not exist or is not writable.
Trying default locations
......warning: specified build_dir '_bad_path_' does not exist or is not
writable. Trying default locations
.................................removing
'c:\docume~1\julien~1\locals~1\temp\tmpsavufxcat_test' (and everything
under it)
error removing c:\docume~1\julien~1\locals~1\temp\tmpsavufxcat_test:
c:\docume~1\julien~1\locals~1\temp\tmpsavufxcat_test\win3224compiled_catalog:
Permission denied
error removing c:\docume~1\julien~1\locals~1\temp\tmpsavufxcat_test:
c:\docume~1\julien~1\locals~1\temp\tmpsavufxcat_test: Directory not
empty
..removing 'c:\docume~1\julien~1\locals~1\temp\tmpt-_vddcat_test' (and
everything under it)
..
======================================================================
ERROR: check_error1
(scipy.weave.size_check.test_size_check.test_dummy_array)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"C:\Python24\lib\site-packages\scipy\weave\tests\test_size_check.py",
line 99, in check_error1
self.generic_error_test(x,y)
File
"C:\Python24\lib\site-packages\scipy\weave\tests\test_size_check.py",
line 134, in generic_error_test
self.generic_test('',x,y)
File
"C:\Python24\lib\site-packages\scipy\weave\tests\test_size_check.py",
line 131, in generic_test
self.assert_array_equal('',actual,desired)
File
"C:\Python24\lib\site-packages\scipy\weave\tests\test_size_check.py",
line 110, in assert_array_equal
assert(actual == desired)
File "C:\Python24\lib\site-packages\scipy\weave\size_check.py", line
122, in __cmp__
if len(self.shape) == len(other.shape) == 0:
AttributeError: 'tuple' object has no attribute 'shape'
======================================================================
ERROR: check_error2
(scipy.weave.size_check.test_size_check.test_dummy_array)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"C:\Python24\lib\site-packages\scipy\weave\tests\test_size_check.py",
line 102, in check_error2
self.generic_error_test(x,y)
File
"C:\Python24\lib\site-packages\scipy\weave\tests\test_size_check.py",
line 134, in generic_error_test
self.generic_test('',x,y)
File
"C:\Python24\lib\site-packages\scipy\weave\tests\test_size_check.py",
line 131, in generic_test
self.assert_array_equal('',actual,desired)
File
"C:\Python24\lib\site-packages\scipy\weave\tests\test_size_check.py",
line 110, in assert_array_equal
assert(actual == desired)
File "C:\Python24\lib\site-packages\scipy\weave\size_check.py", line
122, in __cmp__
if len(self.shape) == len(other.shape) == 0:
AttributeError: 'tuple' object has no attribute 'shape'
======================================================================
ERROR: check_1d_3
(scipy.weave.size_check.test_size_check.test_dummy_array_indexing)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"C:\Python24\lib\site-packages\scipy\weave\tests\test_size_check.py",
line 207, in check_1d_3
if nx.which[0] != "numarray":
AttributeError: 'module' object has no attribute 'which'
======================================================================
ERROR: check_1d_6
(scipy.weave.size_check.test_size_check.test_dummy_array_indexing)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"C:\Python24\lib\site-packages\scipy\weave\tests\test_size_check.py",
line 214, in check_1d_6
if nx.which[0] != "numarray":
AttributeError: 'module' object has no attribute 'which'
======================================================================
ERROR: through a bunch of different indexes at it for good measure.
----------------------------------------------------------------------
Traceback (most recent call last):
File
"C:\Python24\lib\site-packages\scipy\weave\tests\test_size_check.py",
line 265, in check_1d_random
self.generic_1d('a[%s:%s:%s]' %(beg,end,step))
File
"C:\Python24\lib\site-packages\scipy\weave\tests\test_size_check.py",
line 174, in generic_1d
self.generic_wrap(a,expr)
File
"C:\Python24\lib\site-packages\scipy\weave\tests\test_size_check.py",
line 164, in generic_wrap
desired = array(eval(expr).shape)
File "<string>", line 0, in ?
ValueError: slice step cannot be zero
======================================================================
ERROR: through a bunch of different indexes at it for good measure.
----------------------------------------------------------------------
Traceback (most recent call last):
File
"C:\Python24\lib\site-packages\scipy\weave\tests\test_size_check.py",
line 289, in check_2d_random
self.generic_2d(expr)
File
"C:\Python24\lib\site-packages\scipy\weave\tests\test_size_check.py",
line 177, in generic_2d
self.generic_wrap(a,expr)
File
"C:\Python24\lib\site-packages\scipy\weave\tests\test_size_check.py",
line 164, in generic_wrap
desired = array(eval(expr).shape)
File "<string>", line 0, in ?
ValueError: slice step cannot be zero
======================================================================
ERROR: through a bunch of different indexes at it for good measure.
----------------------------------------------------------------------
Traceback (most recent call last):
File
"C:\Python24\lib\site-packages\scipy\weave\tests\test_size_check.py",
line 303, in check_3d_random
self.generic_3d(expr)
File
"C:\Python24\lib\site-packages\scipy\weave\tests\test_size_check.py",
line 180, in generic_3d
self.generic_wrap(a,expr)
File
"C:\Python24\lib\site-packages\scipy\weave\tests\test_size_check.py",
line 164, in generic_wrap
desired = array(eval(expr).shape)
File "<string>", line 0, in ?
ValueError: slice step cannot be zero
----------------------------------------------------------------------
Ran 132 tests in 2.656s
FAILED (errors=7)