[SciPy-Dev] scipy-0.8.0 install feedback: python-2.7.1 numpy-1.5.1 MacOSX-10.5.8

Sidney Elmer paulymer@gmail....
Wed Dec 8 14:44:54 CST 2010


Hi,

I'm not sure if this is the proper place to report bugs; if not, I apologize
and hope that it will get passed along to the appropriate list.  I am using
a Mac Pro Dual Quad Core Intel Xeon, 2.26 GHz (Nehalem) with Mac OS X
10.5.8.  I installed python2.7.1 with architecture flags -arch i386 -arch
x86_64.  I also installed numpy1.5.1.  I used the standard command to
install scipy-0.8.0:  $ sudo python setup.py install (this is the 64 bit
python executable).  While building scipy.sparse.linalg I got the following
errors:

building 'scipy.sparse.linalg.isolve._iterative' extension
compiling C sources
C compiler: gcc -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch
x86_64 -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes

creating
build/temp.macosx-10.5-intel-2.7/build/src.macosx-10.5-intel-2.7/build/src.macosx-10.5-intel-2.7/scipy/sparse
creating
build/temp.macosx-10.5-intel-2.7/build/src.macosx-10.5-intel-2.7/build/src.macosx-10.5-intel-2.7/scipy/sparse/linalg
creating
build/temp.macosx-10.5-intel-2.7/build/src.macosx-10.5-intel-2.7/build/src.macosx-10.5-intel-2.7/scipy/sparse/linalg/isolve
creating
build/temp.macosx-10.5-intel-2.7/build/src.macosx-10.5-intel-2.7/build/src.macosx-10.5-intel-2.7/scipy/sparse/linalg/isolve/iterative
compile options: '-DNO_ATLAS_INFO=3 -Ibuild/src.macosx-10.5-intel-2.7
-I/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy
/core/include
-I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c'
extra options: '-faltivec'
gcc: build/src.macosx-10.5-intel-2.7/fortranobject.c
gcc:
build/src.macosx-10.5-intel-2.7/build/src.macosx-10.5-intel-2.7/scipy/sparse/linalg/isolve/iterative/_iterativemodule.c
compiling Fortran sources
Fortran f77 compiler: /usr/local/bin/g77 -g -Wall -fno-second-underscore
-fPIC -O3 -funroll-loops
creating
build/temp.macosx-10.5-intel-2.7/build/src.macosx-10.5-intel-2.7/scipy/sparse
creating
build/temp.macosx-10.5-intel-2.7/build/src.macosx-10.5-intel-2.7/scipy/sparse/linalg
creating
build/temp.macosx-10.5-intel-2.7/build/src.macosx-10.5-intel-2.7/scipy/sparse/linalg/isolve
creating
build/temp.macosx-10.5-intel-2.7/build/src.macosx-10.5-intel-2.7/scipy/sparse/linalg/isolve/iterative
compile options: '-DNO_ATLAS_INFO=3 -Ibuild/src.macosx-10.5-intel-2.7
-I/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy
/core/include
-I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c'
g77:f77:
build/src.macosx-10.5-intel-2.7/scipy/sparse/linalg/isolve/iterative/STOPTEST2.f
g77:f77:
build/src.macosx-10.5-intel-2.7/scipy/sparse/linalg/isolve/iterative/getbreak.f
g77:f77:
build/src.macosx-10.5-intel-2.7/scipy/sparse/linalg/isolve/iterative/BiCGREVCOM.f
g77:f77:
build/src.macosx-10.5-intel-2.7/scipy/sparse/linalg/isolve/iterative/BiCGSTABREVCOM.f
build/src.macosx-10.5-intel-2.7/scipy/sparse/linalg/isolve/iterative/BiCGSTABREVCOM.f:
In subroutine `sbicgstabrevcom':
build/src.macosx-10.5-intel-2.7/scipy/sparse/linalg/isolve/iterative/BiCGSTABREVCOM.f:275:
warning:
            CALL sAXPY( N, -OMEGA, WORK(1,V), 1, WORK(1,P), 1 )
                 1
build/src.macosx-10.5-intel-2.7/scipy/sparse/linalg/isolve/iterative/BiCGSTABREVCOM.f:277:
(continued):
            CALL sAXPY( N, ONE, WORK(1,R), 1, WORK(1,P), 1 )
                 2
Argument #2 of `saxpy' is one precision at (2) but is some other precision
at (1) [info -f g77 M GLOBALS]
build/src.macosx-10.5-intel-2.7/scipy/sparse/linalg/isolve/iterative/BiCGSTABREVCOM.f:
In subroutine `cbicgstabrevcom':
build/src.macosx-10.5-intel-2.7/scipy/sparse/linalg/isolve/iterative/BiCGSTABREVCOM.f:1131:
warning:
            CALL cAXPY( N, -OMEGA, WORK(1,V), 1, WORK(1,P), 1 )
                 1
build/src.macosx-10.5-intel-2.7/scipy/sparse/linalg/isolve/iterative/BiCGSTABREVCOM.f:1133:
(continued):
            CALL cAXPY( N, ONE, WORK(1,R), 1, WORK(1,P), 1 )
                 2
Argument #2 of `caxpy' is one precision at (2) but is some other precision
at (1) [info -f g77 M GLOBALS]
g77:f77:
build/src.macosx-10.5-intel-2.7/scipy/sparse/linalg/isolve/iterative/CGREVCOM.f
g77:f77:
build/src.macosx-10.5-intel-2.7/scipy/sparse/linalg/isolve/iterative/CGSREVCOM.f
g77:f77:
build/src.macosx-10.5-intel-2.7/scipy/sparse/linalg/isolve/iterative/GMRESREVCOM.f
g77:f77:
build/src.macosx-10.5-intel-2.7/scipy/sparse/linalg/isolve/iterative/QMRREVCOM.f
build/src.macosx-10.5-intel-2.7/scipy/sparse/linalg/isolve/iterative/QMRREVCOM.f:
In subroutine `dqmrrevcom':
In file included from
build/src.macosx-10.5-intel-2.7/scipy/sparse/linalg/isolve/iterative/QMRREVCOM.f:0:
build/src.macosx-10.5-intel-2.7/scipy/sparse/linalg/isolve/iterative/QMRREVCOM.f:685:
warning: unused variable 'deltatolepstol'
build/src.macosx-10.5-intel-2.7/scipy/sparse/linalg/isolve/iterative/QMRREVCOM.f:
In subroutine `zqmrrevcom':
build/src.macosx-10.5-intel-2.7/scipy/sparse/linalg/isolve/iterative/QMRREVCOM.f:1809:
warning: unused variable 'deltatolepstol'
/usr/local/bin/g77 -g -Wall -g -Wall -undefined dynamic_lookup -bundle
build/temp.macosx-10.5-intel-2.7/build/src.macosx-10.5-intel-2.7/build/src.macosx-10
.5-intel-2.7/scipy/sparse/linalg/isolve/iterative/_iterativemodule.o
build/temp.macosx-10.5-intel-2.7/build/src.macosx-10.5-intel-2.7/fortranobject.o
build
/temp.macosx-10.5-intel-2.7/build/src.macosx-10.5-intel-2.7/scipy/sparse/linalg/isolve/iterative/STOPTEST2.o
build/temp.macosx-10.5-intel-2.7/build/src.mac
osx-10.5-intel-2.7/scipy/sparse/linalg/isolve/iterative/getbreak.o
build/temp.macosx-10.5-intel-2.7/build/src.macosx-10.5-intel-2.7/scipy/sparse/linalg/iso
lve/iterative/BiCGREVCOM.o
build/temp.macosx-10.5-intel-2.7/build/src.macosx-10.5-intel-2.7/scipy/sparse/linalg/isolve/iterative/BiCGSTABREVCOM.o
build/tem
p.macosx-10.5-intel-2.7/build/src.macosx-10.5-intel-2.7/scipy/sparse/linalg/isolve/iterative/CGREVCOM.o
build/temp.macosx-10.5-intel-2.7/build/src.macosx-1
0.5-intel-2.7/scipy/sparse/linalg/isolve/iterative/CGSREVCOM.o
build/temp.macosx-10.5-intel-2.7/build/src.macosx-10.5-intel-2.7/scipy/sparse/linalg/isolve/
iterative/GMRESREVCOM.o
build/temp.macosx-10.5-intel-2.7/build/src.macosx-10.5-intel-2.7/scipy/sparse/linalg/isolve/iterative/QMRREVCOM.o
-L/usr/local/lib/
gcc/i686-apple-darwin8.8.1/3.4.0 -Lbuild/temp.macosx-10.5-intel-2.7 -lg2c -o
build/lib.macosx-10.5-intel-2.7/scipy/sparse/linalg/isolve/_iterative.so
-Wl,-
framework -Wl,Accelerate


Now, when I try to use the scipy.sparse.linalg module in the 64 bit python
executable, the module cannot be loaded:

$ python
Python 2.7.1 (r271:86832, Dec  3 2010, 14:46:24)
[GCC 4.0.1 (Apple Inc. build 5490)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import scipy.sparse.linalg
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/scipy/sparse/linalg/__init__.py",
line 5, in <module>
    from isolve import *
  File
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/scipy/sparse/linalg/isolve/__init__.py",
line 4, in <module>
    from iterative import *
  File
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/scipy/sparse/linalg/isolve/iterative.py",
line 5, in <module>
    import _iterative
ImportError:
dlopen(/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/scipy/sparse/linalg/isolve/_iterative.so,
2): no suitable image found.  Did find:
 /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/scipy/sparse/linalg/isolve/_iterative.so:
mach-o, but wrong architecture


But when I use the 32 bit python executable, it loads fine:

$ python-32
Python 2.7.1 (r271:86832, Dec  3 2010, 14:46:24)
[GCC 4.0.1 (Apple Inc. build 5490)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import scipy.sparse.linalg


I hope this information is helpful to fix this problem.  Let me know if you
need any more information.

Sid
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/scipy-dev/attachments/20101208/3b4b5fb9/attachment.html 


More information about the SciPy-Dev mailing list