467,076 Members | 905 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,076 developers. It's quick & easy.

problems installling scipy.weave on windows

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

import scipy.weave
scipy.weave.test() 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...............warnin g:
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_t est' (and everything
under it)
error removing c:\docume~1\julien~1\locals~1\temp\tmpsavufxcat_te st:
c:\docume~1\julien~1\locals~1\temp\tmpsavufxcat_te st\win3224compiled_catalog:
Permission denied
error removing c:\docume~1\julien~1\locals~1\temp\tmpsavufxcat_te st:
c:\docume~1\julien~1\locals~1\temp\tmpsavufxcat_te st: 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)
<unittest.TextTestRunner object at 0x01575D30>


Apr 19 '06 #1
  • viewed: 1228
Share:

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Jean-Baptiste Richet | last post: by
reply views Thread by Jacek Generowicz | last post: by
3 posts views Thread by Michael Foord | last post: by
3 posts views Thread by hawkesed | last post: by
3 posts views Thread by venkat | last post: by
2 posts views Thread by Z.L. | last post: by
2 posts views Thread by I. Myself | last post: by
1 post views Thread by dug | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.