[SciPy-user] PPC 10.4 scipy installation problems

Gideon Simpson simpson@math.toronto....
Wed Nov 19 21:32:23 CST 2008


Make sure you executed the command

python setup.py --fcompiler=gnu95

otherwise it might snag the g77 compiler instead.

-gideon

On Nov 19, 2008, at 3:17 PM, Sean McDaniel wrote:

> HI y'all,
>
> I am having difficulty installing scipy on my PPC powerbook on os x  
> 10.4. I have followed the instructions on the web page, and have  
> checked the forums for possible fixes, but without sucess.
>
> I am installing scipy for the convolution tools and need the signal  
> submodule to work correctly.
>
> Installation notes:
>   * I installed the latest fortran compiler from the att web site. I  
> also have g77 installed on the system.
>   * gfortran version 4.2.3
>   * GCC version - 4.0.1
>   * I downloaded and installed the fftw package.
>   * Installed numpy
>   * Installed python:  python setup.py build_src build_clib -- 
> fcompiler=gnu95 build_ext --fcompiler=gnu95 build
>   * The first time I tried to run the import tests, it said I needed  
> "nose." This was installed.
>
> Numpy and scipy import without problems, but for scipy, the the test  
> fails with a segmentation fault...
> scipy.test('1','10')
> ---snip---
> Test generator for parametric tests ... SKIP: Need to import PIL for  
> this test
> /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/ 
> unittest.py:507: DeprecationWarning: NumpyTestCase will be removed  
> in the next release; please update your code to use nose or unittest
>   return self.suiteClass(map(testCaseClass, testCaseNames))
> test1 (test_segment.TestSegment) ... ok
> test2 (test_segment.TestSegment) ... Segmentation fault
> ---snip
>
> ...and importation of the signal submodule fails.
> from scipy import signal
> --snip---
> ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/ 
> 2.5/lib/python2.5/site-packages/scipy/integrate/_odepack.so, 2):  
> Symbol not found: _s_stop
>   Referenced from: /Library/Frameworks/Python.framework/Versions/2.5/ 
> lib/python2.5/site-packages/scipy/integrate/_odepack.so
>   Expected in: dynamic lookup
> --snip---
> Other installation attepts have generated similar dynamic lookup  
> errors.
>
> The numpy test generates a few errors. They are listed below...
> numpy.test('1', '10')
> ---snip---
> ======================================================================
> ERROR: test_ma.testta
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/Library/Frameworks/Python.framework/Versions/2.5/lib/ 
> python2.5/site-packages/nose/case.py", line 182, in runTest
>     self.test(*self.arg)
> TypeError: testta() takes exactly 2 arguments (0 given)
>
> ======================================================================
> ERROR: test_ma.testtb
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/Library/Frameworks/Python.framework/Versions/2.5/lib/ 
> python2.5/site-packages/nose/case.py", line 182, in runTest
>     self.test(*self.arg)
> TypeError: testtb() takes exactly 2 arguments (0 given)
>
> ======================================================================
> ERROR: test_ma.testtc
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/Library/Frameworks/Python.framework/Versions/2.5/lib/ 
> python2.5/site-packages/nose/case.py", line 182, in runTest
>     self.test(*self.arg)
> TypeError: testtc() takes exactly 2 arguments (0 given)
>
> ======================================================================
> ERROR: test_ma.testf
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/Library/Frameworks/Python.framework/Versions/2.5/lib/ 
> python2.5/site-packages/nose/case.py", line 182, in runTest
>     self.test(*self.arg)
> TypeError: testf() takes exactly 1 argument (0 given)
>
> ======================================================================
> ERROR: test_ma.testinplace
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/Library/Frameworks/Python.framework/Versions/2.5/lib/ 
> python2.5/site-packages/nose/case.py", line 182, in runTest
>     self.test(*self.arg)
> TypeError: testinplace() takes exactly 1 argument (0 given)
>
> ======================================================================
> ERROR: Ticket #396
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/Library/Frameworks/Python.framework/Versions/2.5/lib/ 
> python2.5/site-packages/numpy/core/tests/test_regression.py", line  
> 598, in test_poly1d_nan_roots
>     self.failUnlessRaises(np.linalg.LinAlgError,getattr,p,"r")
>   File "/Library/Frameworks/Python.framework/Versions/2.5/lib/ 
> python2.5/unittest.py", line 320, in failUnlessRaises
>     callableObj(*args, **kwargs)
>   File "/Library/Frameworks/Python.framework/Versions/2.5/lib/ 
> python2.5/site-packages/numpy/lib/polynomial.py", line 1027, in  
> __getattr__
>     return roots(self.coeffs)
>   File "/Library/Frameworks/Python.framework/Versions/2.5/lib/ 
> python2.5/site-packages/numpy/lib/polynomial.py", line 180, in roots
>     roots = _eigvals(A)
>   File "/Library/Frameworks/Python.framework/Versions/2.5/lib/ 
> python2.5/site-packages/numpy/lib/polynomial.py", line 38, in _eigvals
>     return eigvals(arg)
>   File "/Library/Frameworks/Python.framework/Versions/2.5/lib/ 
> python2.5/site-packages/scipy/linalg/decomp.py", line 478, in eigvals
>     return eig(a,b=b,left=0,right=0,overwrite_a=overwrite_a)
>   File "/Library/Frameworks/Python.framework/Versions/2.5/lib/ 
> python2.5/site-packages/scipy/linalg/decomp.py", line 150, in eig
>     a1 = asarray_chkfinite(a)
>   File "/Library/Frameworks/Python.framework/Versions/2.5/lib/ 
> python2.5/site-packages/numpy/lib/function_base.py", line 706, in  
> asarray_chkfinite
>     raise ValueError, "array must not contain infs or NaNs"
> ValueError: array must not contain infs or NaNs
>
> ======================================================================
> FAIL: check_testUfuncRegression (test_ma.TestUfuncs)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/Library/Frameworks/Python.framework/Versions/2.5/lib/ 
> python2.5/site-packages/numpy/core/tests/test_ma.py", line 692, in  
> check_testUfuncRegression
>     self.failUnless(eqmask(ur.mask, mr.mask))
> AssertionError
>
> ----------------------------------------------------------------------
> ---snip---
>
> Suggestions?
>
> Thank you,
>
> Sean
>
>
>
>
> -- 
> ----------------------------------------------------
> Sean McDaniel
> Graduate Assistant - NSCL
> work: mcdaniel@nscl.msu.edu
> personal: sean.m.mcdaniel@gmail.com
> -----------------------------------------------------
> _______________________________________________
> SciPy-user mailing list
> SciPy-user@scipy.org
> http://projects.scipy.org/mailman/listinfo/scipy-user

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://projects.scipy.org/pipermail/scipy-user/attachments/20081119/9ef7e841/attachment-0001.html 


More information about the SciPy-user mailing list