Hi everyone, I have finally managed to build scipy on Opteron (red hat linux enterprise 3), so I can import it in python with no problems but when I go to scipy/tests and try to run any of the tests python test_common.py the following error appears, can anyone give me a hint, File "/usr/lib64/python2.2/unittest.py", line 412, in loadTestsFromTestCase self.getTestCaseNames(testCaseClass))) File "test_common.py", line 20, in __init__ self.z = rand(100,10,20) File "/projects/mice/share/arch/linux64/lib64/python2.2/site-packages/scipy_base/ppimport.py", line 115, in __call__ return self._ppimport_attr(*args,**kwds) File "/projects/mice/share/arch/linux64/lib64/python2.2/site-packages/scipy/stats/distributions.py", line 82, in rand return random(args) File "/projects/mice/share/arch/linux64/lib64/python2.2/site-packages/scipy/stats/distributions.py", line 75, in random return _build_random_array(randfile.sample, (), size) File "/projects/mice/share/arch/linux64/lib64/python2.2/site-packages/scipy/stats/distributions.py", line 66, in _build_random_array s.shape = size ValueError: total size of new array must be unchanged Thanks very much Leila
On Sun, 6 Mar 2005, Leila baghdadi wrote:
Hi everyone,
I have finally managed to build scipy on Opteron (red hat linux enterprise 3),
so I can import it in python with no problems
but when I go to scipy/tests and
try to run any of the tests
python test_common.py
A proper way to run scipy tests is the following:
import scipy scipy.test()
the following error appears,
can anyone give me a hint,
File "/usr/lib64/python2.2/unittest.py", line 412, in loadTestsFromTestCase self.getTestCaseNames(testCaseClass))) File "test_common.py", line 20, in __init__ self.z = rand(100,10,20) File "/projects/mice/share/arch/linux64/lib64/python2.2/site-packages/scipy_base/ppimport.py", line 115, in __call__ return self._ppimport_attr(*args,**kwds) File "/projects/mice/share/arch/linux64/lib64/python2.2/site-packages/scipy/stats/distributions.py", line 82, in rand return random(args) File "/projects/mice/share/arch/linux64/lib64/python2.2/site-packages/scipy/stats/distributions.py", line 75, in random return _build_random_array(randfile.sample, (), size) File "/projects/mice/share/arch/linux64/lib64/python2.2/site-packages/scipy/stats/distributions.py", line 66, in _build_random_array s.shape = size ValueError: total size of new array must be unchanged
What Numeric version are you using? Try upgrading Numeric to the latest. Also, using Python 2.3 and up is recommended. Pearu
Hello Pearu, Thanks very much for your consistent help! so I think what happened is I got Numeric 23.7 which was basically creating the problem (not sure why), I was not sure what to do so I just got a previous version of Numeric 23.5 and installed that and BAM the problem is solved, so I am sure not sure what the difference between 23.5 and 23.7 but the reshape and resize functions were giving me problems on Opteron. I think at this point I have everything, a quick question is do you need wxPython for running scipy.test() because it is complaining /projects/mice/share/arch/linux64/lib/python2.2/site-packages/scipy/plt/interface.pyc No module named wxPython Thanks very much Leila On Sun, 2005-03-06 at 16:24, Pearu Peterson wrote:
On Sun, 6 Mar 2005, Leila baghdadi wrote:
Hi everyone,
I have finally managed to build scipy on Opteron (red hat linux enterprise 3),
so I can import it in python with no problems
but when I go to scipy/tests and
try to run any of the tests
python test_common.py
A proper way to run scipy tests is the following:
import scipy scipy.test()
the following error appears,
can anyone give me a hint,
File "/usr/lib64/python2.2/unittest.py", line 412, in loadTestsFromTestCase self.getTestCaseNames(testCaseClass))) File "test_common.py", line 20, in __init__ self.z = rand(100,10,20) File "/projects/mice/share/arch/linux64/lib64/python2.2/site-packages/scipy_base/ppimport.py", line 115, in __call__ return self._ppimport_attr(*args,**kwds) File "/projects/mice/share/arch/linux64/lib64/python2.2/site-packages/scipy/stats/distributions.py", line 82, in rand return random(args) File "/projects/mice/share/arch/linux64/lib64/python2.2/site-packages/scipy/stats/distributions.py", line 75, in random return _build_random_array(randfile.sample, (), size) File "/projects/mice/share/arch/linux64/lib64/python2.2/site-packages/scipy/stats/distributions.py", line 66, in _build_random_array s.shape = size ValueError: total size of new array must be unchanged
What Numeric version are you using? Try upgrading Numeric to the latest. Also, using Python 2.3 and up is recommended.
Pearu
_______________________________________________ SciPy-user mailing list SciPy-user@scipy.net http://www.scipy.net/mailman/listinfo/scipy-user
On Sun, 6 Mar 2005, Leila baghdadi wrote:
so I think what happened is I got Numeric 23.7 which was basically creating the problem (not sure why),
I was not sure what to do so I just got a previous version of Numeric
23.5 and installed that and BAM the problem is solved, so I am sure not sure what the difference between 23.5 and 23.7 but the reshape and resize functions were giving me problems on Opteron.
In my Opteron box I have rather old Numeric, 23.1, and all tests succeed. When I get time to upgrade to 23.7, I'll look into this problem.
a quick question is do you need wxPython for running scipy.test() because it is complaining
/projects/mice/share/arch/linux64/lib/python2.2/site-packages/scipy/plt/interface.pyc No module named wxPython
No, just without wxPython plt will not be functional. Pearu
Hi Pearu, I just thought I share this with the list in case anyone is also using Opteron, 1) when I installed Numeric 23.5 and tried to run the test as you told me import scipy scipy.test() it complained about wxpython and got a segfault (I saw it after I e-mailed you yesterday) 2) after you told me that you have Numeric 23.1 on your opteron I decided to get it just for a testing so now I can run scipy.test() and there are no segmentation faults but there is a few errors which I am hoping to fix, a) it complains about a few test no being there from plt, I guess that is because I have no wxpython b)few tests fail with this message Attribute Error : 'module' object has no attribute 'eig' I have also attached a text file of the error message, can you please give me a hint as in what to do and how to fix this Thanks very much Leila On Sun, 2005-03-06 at 16:43, Pearu Peterson wrote:
On Sun, 6 Mar 2005, Leila baghdadi wrote:
so I think what happened is I got Numeric 23.7 which was basically creating the problem (not sure why),
I was not sure what to do so I just got a previous version of Numeric
23.5 and installed that and BAM the problem is solved, so I am sure not sure what the difference between 23.5 and 23.7 but the reshape and resize functions were giving me problems on Opteron.
In my Opteron box I have rather old Numeric, 23.1, and all tests succeed. When I get time to upgrade to 23.7, I'll look into this problem.
a quick question is do you need wxPython for running scipy.test() because it is complaining
/projects/mice/share/arch/linux64/lib/python2.2/site-packages/scipy/plt/interface.pyc No module named wxPython
No, just without wxPython plt will not be functional.
Pearu
_______________________________________________ SciPy-user mailing list SciPy-user@scipy.net http://www.scipy.net/mailman/listinfo/scipy-user
Leila baghdadi wrote:
Hello Pearu,
Thanks very much for your consistent help!
so I think what happened is I got Numeric 23.7 which was basically creating the problem (not sure why),
I was not sure what to do so I just got a previous version of Numeric
Some fixes are in CVS of Numeric for 64-bit systems. I need to make a new release... -Travis
participants (3)
-
Leila baghdadi
-
Pearu Peterson
-
Travis Oliphant