![](https://secure.gravatar.com/avatar/40806367c7a54366376a04344b5a4c5c.jpg?s=120&d=mm&r=g)
from scipy import * Traceback (most recent call last): File "<stdin>", line 1, in ? File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/scipy/linsolve/__init__.py",
Hi all, new to the ML, here. :) I have some troubles with SciPy on Tiger. I have complied scipy (and numpy) on my laptop (ibook g4) using all the hints on the "Installing SciPy on MacOSX" page, but i still have some problems. If i do something list "import scipy", on python 2.4.3 (ActiveState), it all runs well, and i have scipy to use. If, instead, i use "from scipy import *" then i obtain, as an answer from python: line 5, in ? import umfpack File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/scipy/linsolve/umfpack/__init__.py", line 3, in ? from umfpack import * File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/scipy/linsolve/umfpack/umfpack.py", line 11, in ? import scipy.sparse as sp File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/scipy/sparse/__init__.py", line 5, in ? from sparse import * File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/scipy/sparse/sparse.py", line 12, in ? import sparsetools ImportError: Failure linking new module: /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/scipy/sparse/sparsetools.so: Symbol not found: _sprintf$LDBLStub Referenced from: /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/scipy/sparse/sparsetools.so Expected in: dynamic lookup Now, i could modify the codebase to use the "import scipy" and not "from scipy import *" (that's code i've been writing on linux and then moved to mac), but it would take time, maybe too much. I have been lookin on list archives, and found something but i've not really understood what to do... So, any good soul? :) TIA, marco PS RTFM welcomed only if with links on what to read :)
![](https://secure.gravatar.com/avatar/dbe739fd37d6a87f64408b1e045f0167.jpg?s=120&d=mm&r=g)
Hi, I installed numpy and scipy on tiger with darminports (py-numpy and py-scipy) everything works well. On 11/3/06, Marco <gaedol@gmail.com> wrote:
Hi all, new to the ML, here. :)
I have some troubles with SciPy on Tiger.
I have complied scipy (and numpy) on my laptop (ibook g4) using all the hints on the "Installing SciPy on MacOSX" page, but i still have some problems. If i do something list "import scipy", on python 2.4.3 (ActiveState), it all runs well, and i have scipy to use. If, instead, i use "from scipy import *" then i obtain, as an answer from python:
from scipy import * Traceback (most recent call last): File "<stdin>", line 1, in ? File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/scipy/linsolve/__init__.py", line 5, in ? import umfpack File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/scipy/linsolve/umfpack/__init__.py", line 3, in ? from umfpack import * File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/scipy/linsolve/umfpack/umfpack.py", line 11, in ? import scipy.sparse as sp File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/scipy/sparse/__init__.py", line 5, in ? from sparse import * File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/scipy/sparse/sparse.py", line 12, in ? import sparsetools ImportError: Failure linking new module: /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/scipy/sparse/sparsetools.so: Symbol not found: _sprintf$LDBLStub Referenced from: /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/scipy/sparse/sparsetools.so Expected in: dynamic lookup
Now, i could modify the codebase to use the "import scipy" and not "from scipy import *" (that's code i've been writing on linux and then moved to mac), but it would take time, maybe too much.
I have been lookin on list archives, and found something but i've not really understood what to do... So, any good soul? :)
TIA,
marco
PS RTFM welcomed only if with links on what to read :) _______________________________________________ SciPy-user mailing list SciPy-user@scipy.org http://projects.scipy.org/mailman/listinfo/scipy-user
-- On obtient beaucoup plus avec un mot gentil et une arme qu'avec seulement un mot gentil - "Al Capone".
![](https://secure.gravatar.com/avatar/40806367c7a54366376a04344b5a4c5c.jpg?s=120&d=mm&r=g)
Hi, i will try, asap. Thanks, marco On 11/3/06, Sam frizou <excellent.frizou@gmail.com> wrote:
Hi,
I installed numpy and scipy on tiger with darminports (py-numpy and py-scipy)
everything works well.
On 11/3/06, Marco <gaedol@gmail.com> wrote:
Hi all, new to the ML, here. :)
I have some troubles with SciPy on Tiger.
I have complied scipy (and numpy) on my laptop (ibook g4) using all the hints on the "Installing SciPy on MacOSX" page, but i still have some problems. If i do something list "import scipy", on python 2.4.3 (ActiveState), it all runs well, and i have scipy to use. If, instead, i use "from scipy import *" then i obtain, as an answer from python:
from scipy import * Traceback (most recent call last): File "<stdin>", line 1, in ? File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/scipy/linsolve/__init__.py", line 5, in ? import umfpack File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/scipy/linsolve/umfpack/__init__.py", line 3, in ? from umfpack import * File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/scipy/linsolve/umfpack/umfpack.py", line 11, in ? import scipy.sparse as sp File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/scipy/sparse/__init__.py", line 5, in ? from sparse import * File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/scipy/sparse/sparse.py", line 12, in ? import sparsetools ImportError: Failure linking new module: /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/scipy/sparse/sparsetools.so: Symbol not found: _sprintf$LDBLStub Referenced from: /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/scipy/sparse/sparsetools.so Expected in: dynamic lookup
Now, i could modify the codebase to use the "import scipy" and not "from scipy import *" (that's code i've been writing on linux and then moved to mac), but it would take time, maybe too much.
I have been lookin on list archives, and found something but i've not really understood what to do... So, any good soul? :)
TIA,
marco
PS RTFM welcomed only if with links on what to read :) _______________________________________________ SciPy-user mailing list SciPy-user@scipy.org http://projects.scipy.org/mailman/listinfo/scipy-user
-- On obtient beaucoup plus avec un mot gentil et une arme qu'avec seulement un mot gentil - "Al Capone". _______________________________________________ SciPy-user mailing list SciPy-user@scipy.org http://projects.scipy.org/mailman/listinfo/scipy-user
![](https://secure.gravatar.com/avatar/c64841ad5de0190b19b32bbad93d9249.jpg?s=120&d=mm&r=g)
Hi Marco - I also had success with MacPorts (formerly darwinports). It seems to be a very stable solution. For me it required compiling gcc 4.1, however, so it may require patience. I was pleased enough to create at how-to on this wiki page: http://howdy.physics.nyu.edu/index.php/Numpy_For_Mac_Using_Macports Erin On 11/3/06, Sam frizou <excellent.frizou@gmail.com> wrote:
Hi,
I installed numpy and scipy on tiger with darminports (py-numpy and py-scipy)
everything works well.
On 11/3/06, Marco <gaedol@gmail.com> wrote:
Hi all, new to the ML, here. :)
I have some troubles with SciPy on Tiger.
I have complied scipy (and numpy) on my laptop (ibook g4) using all the hints on the "Installing SciPy on MacOSX" page, but i still have some problems. If i do something list "import scipy", on python 2.4.3 (ActiveState), it all runs well, and i have scipy to use. If, instead, i use "from scipy import *" then i obtain, as an answer from python:
from scipy import * Traceback (most recent call last): File "<stdin>", line 1, in ? File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/scipy/linsolve/__init__.py", line 5, in ? import umfpack File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/scipy/linsolve/umfpack/__init__.py", line 3, in ? from umfpack import * File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/scipy/linsolve/umfpack/umfpack.py", line 11, in ? import scipy.sparse as sp File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/scipy/sparse/__init__.py", line 5, in ? from sparse import * File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/scipy/sparse/sparse.py", line 12, in ? import sparsetools ImportError: Failure linking new module: /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/scipy/sparse/sparsetools.so: Symbol not found: _sprintf$LDBLStub Referenced from: /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/scipy/sparse/sparsetools.so Expected in: dynamic lookup
Now, i could modify the codebase to use the "import scipy" and not "from scipy import *" (that's code i've been writing on linux and then moved to mac), but it would take time, maybe too much.
I have been lookin on list archives, and found something but i've not really understood what to do... So, any good soul? :)
TIA,
marco
PS RTFM welcomed only if with links on what to read :) _______________________________________________ SciPy-user mailing list SciPy-user@scipy.org http://projects.scipy.org/mailman/listinfo/scipy-user
-- On obtient beaucoup plus avec un mot gentil et une arme qu'avec seulement un mot gentil - "Al Capone". _______________________________________________ SciPy-user mailing list SciPy-user@scipy.org http://projects.scipy.org/mailman/listinfo/scipy-user
![](https://secure.gravatar.com/avatar/61988dec55409581ece7ad633fb41543.jpg?s=120&d=mm&r=g)
Just thought I'd chime in with another possible solution. I seem to remember seeing similar errors after compiling SciPy on my MBP. If I recall correctly, updating my cctools fixed the problem. -Aaron Erin Sheldon wrote:
Hi Marco -
I also had success with MacPorts (formerly darwinports). It seems to be a very stable solution. For me it required compiling gcc 4.1, however, so it may require patience.
I was pleased enough to create at how-to on this wiki page: http://howdy.physics.nyu.edu/index.php/Numpy_For_Mac_Using_Macports
Erin
On 11/3/06, Sam frizou <excellent.frizou@gmail.com> wrote:
Hi,
I installed numpy and scipy on tiger with darminports (py-numpy and py-scipy)
everything works well.
On 11/3/06, Marco <gaedol@gmail.com> wrote:
Hi all, new to the ML, here. :)
I have some troubles with SciPy on Tiger.
I have complied scipy (and numpy) on my laptop (ibook g4) using all the hints on the "Installing SciPy on MacOSX" page, but i still have some problems. If i do something list "import scipy", on python 2.4.3 (ActiveState), it all runs well, and i have scipy to use. If, instead, i use "from scipy import *" then i obtain, as an answer from python:
from scipy import *
Traceback (most recent call last): File "<stdin>", line 1, in ? File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/scipy/linsolve/__init__.py", line 5, in ? import umfpack File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/scipy/linsolve/umfpack/__init__.py", line 3, in ? from umfpack import * File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/scipy/linsolve/umfpack/umfpack.py", line 11, in ? import scipy.sparse as sp File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/scipy/sparse/__init__.py", line 5, in ? from sparse import * File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/scipy/sparse/sparse.py", line 12, in ? import sparsetools ImportError: Failure linking new module: /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/scipy/sparse/sparsetools.so: Symbol not found: _sprintf$LDBLStub Referenced from: /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/scipy/sparse/sparsetools.so Expected in: dynamic lookup
Now, i could modify the codebase to use the "import scipy" and not "from scipy import *" (that's code i've been writing on linux and then moved to mac), but it would take time, maybe too much.
I have been lookin on list archives, and found something but i've not really understood what to do... So, any good soul? :)
TIA,
marco
PS RTFM welcomed only if with links on what to read :) _______________________________________________ SciPy-user mailing list SciPy-user@scipy.org http://projects.scipy.org/mailman/listinfo/scipy-user
-- On obtient beaucoup plus avec un mot gentil et une arme qu'avec seulement un mot gentil - "Al Capone". _______________________________________________ SciPy-user mailing list SciPy-user@scipy.org http://projects.scipy.org/mailman/listinfo/scipy-user
_______________________________________________ SciPy-user mailing list SciPy-user@scipy.org http://projects.scipy.org/mailman/listinfo/scipy-user
![](https://secure.gravatar.com/avatar/40806367c7a54366376a04344b5a4c5c.jpg?s=120&d=mm&r=g)
On 11/3/06, Erin Sheldon <erin.sheldon@gmail.com> wrote:
I also had success with MacPorts (formerly darwinports). It seems to be a very stable solution. For me it required compiling gcc 4.1, however, so it may require patience.
Hi, i have tried to follow the way of macports. After a few hours of compiling (gcc takes some), i installed py-numpy and then py-scipy. This is the result of the latter (sudo port install py-scipy): ---> Building py-scipy with target build Error: Target com.apple.build returned: shell command "cd "/opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dports_python_py-scipy/work/scipy-0.5.1" && CCFLAGS="-I/opt/local/include -L/opt/local/lib" /opt/local/bin/python2.4 setup.py build" returned error 1 Command output: Lib/cluster/src/vq_wrap.cpp:315: warning: 'int SWIG_ConvertPtr(PyObject*, void**, swig_type_info*, int)' defined but not used Lib/cluster/src/vq_wrap.cpp:516: warning: 'PyObject* l_output_helper(PyObject*, PyObject*)' defined but not used /usr/bin/g++-4.0 -bundle -undefined dynamic_lookup build/temp.darwin-8.8.0-Power_Macintosh-2.4/Lib/cluster/src/vq_wrap.o -Lbuild/temp.darwin-8.8.0-Power_Macintosh-2.4 -o build/lib.darwin-8.8.0-Power_Macintosh-2.4/scipy/cluster/_vq.so /usr/bin/ld: warning -prebind has no effect with -bundle building 'scipy.fftpack._fftpack' extension compiling C sources C compiler: /usr/bin/gcc-4.0 -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd -fno-common -fno-common -dynamic -DNDEBUG -g -O3 -Wall creating build/temp.darwin-8.8.0-Power_Macintosh-2.4/build creating build/temp.darwin-8.8.0-Power_Macintosh-2.4/build/src.darwin-8.8.0-Power_Macintosh-2.4 creating build/temp.darwin-8.8.0-Power_Macintosh-2.4/build/src.darwin-8.8.0-Power_Macintosh-2.4/Lib creating build/temp.darwin-8.8.0-Power_Macintosh-2.4/build/src.darwin-8.8.0-Power_Macintosh-2.4/Lib/fftpack creating build/temp.darwin-8.8.0-Power_Macintosh-2.4/Lib/fftpack/src compile options: '-DSCIPY_FFTW3_H -I/opt/local/include -Ibuild/src.darwin-8.8.0-Power_Macintosh-2.4 -I/opt/local/lib/python2.4/site-packages/numpy/core/include -I/opt/local/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4 -I/opt/local/include/python2.4 -c' gcc-4.0: build/src.darwin-8.8.0-Power_Macintosh-2.4/fortranobject.c gcc-4.0: Lib/fftpack/src/zfft.c Lib/fftpack/src/zfft.c: In function 'zfft': Lib/fftpack/src/zfft.c:89: warning: unused variable 'ptrm' gcc-4.0: Lib/fftpack/src/drfft.c gcc-4.0: build/src.darwin-8.8.0-Power_Macintosh-2.4/Lib/fftpack/_fftpackmodule.c gcc-4.0: Lib/fftpack/src/zfftnd.c gcc-4.0: Lib/fftpack/src/zrfft.c /usr/bin/g77 -g -Wall -undefined dynamic_lookup -bundle build/temp.darwin-8.8.0-Power_Macintosh-2.4/build/src.darwin-8.8.0-Power_Macintosh-2.4/Lib/fftpack/_fftpackmodule.o build/temp.darwin-8.8.0-Power_Macintosh-2.4/Lib/fftpack/src/zfft.o build/temp.darwin-8.8.0-Power_Macintosh-2.4/Lib/fftpack/src/drfft.o build/temp.darwin-8.8.0-Power_Macintosh-2.4/Lib/fftpack/src/zrfft.o build/temp.darwin-8.8.0-Power_Macintosh-2.4/Lib/fftpack/src/zfftnd.o build/temp.darwin-8.8.0-Power_Macintosh-2.4/build/src.darwin-8.8.0-Power_Macintosh-2.4/fortranobject.o -L/opt/local/lib -L/usr/local/lib/gcc/powerpc-apple-darwin7.9.0/3.4.4 -Lbuild/temp.darwin-8.8.0-Power_Macintosh-2.4 -ldfftpack -lfftw3 -lg2c -lcc_dynamic -o build/lib.darwin-8.8.0-Power_Macintosh-2.4/scipy/fftpack/_fftpack.so /usr/bin/ld: warning -prebind has no effect with -bundle /usr/bin/ld: can't locate file for: -lcc_dynamic collect2: ld returned 1 exit status /usr/bin/ld: warning -prebind has no effect with -bundle /usr/bin/ld: can't locate file for: -lcc_dynamic collect2: ld returned 1 exit status error: Command "/usr/bin/g77 -g -Wall -undefined dynamic_lookup -bundle build/temp.darwin-8.8.0-Power_Macintosh-2.4/build/src.darwin-8.8.0-Power_Macintosh-2.4/Lib/fftpack/_fftpackmodule.o build/temp.darwin-8.8.0-Power_Macintosh-2.4/Lib/fftpack/src/zfft.o build/temp.darwin-8.8.0-Power_Macintosh-2.4/Lib/fftpack/src/drfft.o build/temp.darwin-8.8.0-Power_Macintosh-2.4/Lib/fftpack/src/zrfft.o build/temp.darwin-8.8.0-Power_Macintosh-2.4/Lib/fftpack/src/zfftnd.o build/temp.darwin-8.8.0-Power_Macintosh-2.4/build/src.darwin-8.8.0-Power_Macintosh-2.4/fortranobject.o -L/opt/local/lib -L/usr/local/lib/gcc/powerpc-apple-darwin7.9.0/3.4.4 -Lbuild/temp.darwin-8.8.0-Power_Macintosh-2.4 -ldfftpack -lfftw3 -lg2c -lcc_dynamic -o build/lib.darwin-8.8.0-Power_Macintosh-2.4/scipy/fftpack/_fftpack.so" failed with exit status 1 Error: Status 1 encountered during processing. Dunno if that's a problem of macports (formerly darwinports), or scipy, but that's it. I think the problem is somwhere in fftw, but not really sure... Any ideas? Thanks, marco
![](https://secure.gravatar.com/avatar/c64841ad5de0190b19b32bbad93d9249.jpg?s=120&d=mm&r=g)
I'm not sure, but I find it odd that it is using /usr/bin/gcc after compiling gcc4. But because it worked for me I never bothered to look at the compilation. I'm not sure how this differs from my install. Erin On 11/5/06, Marco <gaedol@gmail.com> wrote:
On 11/3/06, Erin Sheldon <erin.sheldon@gmail.com> wrote:
I also had success with MacPorts (formerly darwinports). It seems to be a very stable solution. For me it required compiling gcc 4.1, however, so it may require patience.
Hi, i have tried to follow the way of macports.
After a few hours of compiling (gcc takes some), i installed py-numpy and then py-scipy. This is the result of the latter (sudo port install py-scipy):
---> Building py-scipy with target build Error: Target com.apple.build returned: shell command "cd "/opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dports_python_py-scipy/work/scipy-0.5.1" && CCFLAGS="-I/opt/local/include -L/opt/local/lib" /opt/local/bin/python2.4 setup.py build" returned error 1 Command output: Lib/cluster/src/vq_wrap.cpp:315: warning: 'int SWIG_ConvertPtr(PyObject*, void**, swig_type_info*, int)' defined but not used Lib/cluster/src/vq_wrap.cpp:516: warning: 'PyObject* l_output_helper(PyObject*, PyObject*)' defined but not used /usr/bin/g++-4.0 -bundle -undefined dynamic_lookup build/temp.darwin-8.8.0-Power_Macintosh-2.4/Lib/cluster/src/vq_wrap.o -Lbuild/temp.darwin-8.8.0-Power_Macintosh-2.4 -o build/lib.darwin-8.8.0-Power_Macintosh-2.4/scipy/cluster/_vq.so /usr/bin/ld: warning -prebind has no effect with -bundle building 'scipy.fftpack._fftpack' extension compiling C sources C compiler: /usr/bin/gcc-4.0 -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd -fno-common -fno-common -dynamic -DNDEBUG -g -O3 -Wall
creating build/temp.darwin-8.8.0-Power_Macintosh-2.4/build creating build/temp.darwin-8.8.0-Power_Macintosh-2.4/build/src.darwin-8.8.0-Power_Macintosh-2.4 creating build/temp.darwin-8.8.0-Power_Macintosh-2.4/build/src.darwin-8.8.0-Power_Macintosh-2.4/Lib creating build/temp.darwin-8.8.0-Power_Macintosh-2.4/build/src.darwin-8.8.0-Power_Macintosh-2.4/Lib/fftpack creating build/temp.darwin-8.8.0-Power_Macintosh-2.4/Lib/fftpack/src compile options: '-DSCIPY_FFTW3_H -I/opt/local/include -Ibuild/src.darwin-8.8.0-Power_Macintosh-2.4 -I/opt/local/lib/python2.4/site-packages/numpy/core/include -I/opt/local/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4 -I/opt/local/include/python2.4 -c' gcc-4.0: build/src.darwin-8.8.0-Power_Macintosh-2.4/fortranobject.c gcc-4.0: Lib/fftpack/src/zfft.c Lib/fftpack/src/zfft.c: In function 'zfft': Lib/fftpack/src/zfft.c:89: warning: unused variable 'ptrm' gcc-4.0: Lib/fftpack/src/drfft.c gcc-4.0: build/src.darwin-8.8.0-Power_Macintosh-2.4/Lib/fftpack/_fftpackmodule.c gcc-4.0: Lib/fftpack/src/zfftnd.c gcc-4.0: Lib/fftpack/src/zrfft.c /usr/bin/g77 -g -Wall -undefined dynamic_lookup -bundle build/temp.darwin-8.8.0-Power_Macintosh-2.4/build/src.darwin-8.8.0-Power_Macintosh-2.4/Lib/fftpack/_fftpackmodule.o build/temp.darwin-8.8.0-Power_Macintosh-2.4/Lib/fftpack/src/zfft.o build/temp.darwin-8.8.0-Power_Macintosh-2.4/Lib/fftpack/src/drfft.o build/temp.darwin-8.8.0-Power_Macintosh-2.4/Lib/fftpack/src/zrfft.o build/temp.darwin-8.8.0-Power_Macintosh-2.4/Lib/fftpack/src/zfftnd.o build/temp.darwin-8.8.0-Power_Macintosh-2.4/build/src.darwin-8.8.0-Power_Macintosh-2.4/fortranobject.o -L/opt/local/lib -L/usr/local/lib/gcc/powerpc-apple-darwin7.9.0/3.4.4 -Lbuild/temp.darwin-8.8.0-Power_Macintosh-2.4 -ldfftpack -lfftw3 -lg2c -lcc_dynamic -o build/lib.darwin-8.8.0-Power_Macintosh-2.4/scipy/fftpack/_fftpack.so /usr/bin/ld: warning -prebind has no effect with -bundle /usr/bin/ld: can't locate file for: -lcc_dynamic collect2: ld returned 1 exit status /usr/bin/ld: warning -prebind has no effect with -bundle /usr/bin/ld: can't locate file for: -lcc_dynamic collect2: ld returned 1 exit status error: Command "/usr/bin/g77 -g -Wall -undefined dynamic_lookup -bundle build/temp.darwin-8.8.0-Power_Macintosh-2.4/build/src.darwin-8.8.0-Power_Macintosh-2.4/Lib/fftpack/_fftpackmodule.o build/temp.darwin-8.8.0-Power_Macintosh-2.4/Lib/fftpack/src/zfft.o build/temp.darwin-8.8.0-Power_Macintosh-2.4/Lib/fftpack/src/drfft.o build/temp.darwin-8.8.0-Power_Macintosh-2.4/Lib/fftpack/src/zrfft.o build/temp.darwin-8.8.0-Power_Macintosh-2.4/Lib/fftpack/src/zfftnd.o build/temp.darwin-8.8.0-Power_Macintosh-2.4/build/src.darwin-8.8.0-Power_Macintosh-2.4/fortranobject.o -L/opt/local/lib -L/usr/local/lib/gcc/powerpc-apple-darwin7.9.0/3.4.4 -Lbuild/temp.darwin-8.8.0-Power_Macintosh-2.4 -ldfftpack -lfftw3 -lg2c -lcc_dynamic -o build/lib.darwin-8.8.0-Power_Macintosh-2.4/scipy/fftpack/_fftpack.so" failed with exit status 1
Error: Status 1 encountered during processing.
Dunno if that's a problem of macports (formerly darwinports), or scipy, but that's it. I think the problem is somwhere in fftw, but not really sure...
Any ideas?
Thanks,
marco _______________________________________________ SciPy-user mailing list SciPy-user@scipy.org http://projects.scipy.org/mailman/listinfo/scipy-user
![](https://secure.gravatar.com/avatar/764323a14e554c97ab74177e0bce51d4.jpg?s=120&d=mm&r=g)
Erin Sheldon wrote:
I'm not sure, but I find it odd that it is using /usr/bin/gcc after compiling gcc4. But because it worked for me I never bothered to look at the compilation. I'm not sure how this differs from my install.
The cc_dynamic library only comes with gcc 3.3. If you are using g77, you need to use gcc 3.3. If you are using gfortran, you need to use gcc 4. GnuFCompiler (for g77) adds -lcc_dynamic; Gnu95FCompiler (for gfortran) does not. -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth." -- Umberto Eco
![](https://secure.gravatar.com/avatar/c64841ad5de0190b19b32bbad93d9249.jpg?s=120&d=mm&r=g)
On 11/5/06, Robert Kern <robert.kern@gmail.com> wrote:
Erin Sheldon wrote:
I'm not sure, but I find it odd that it is using /usr/bin/gcc after compiling gcc4. But because it worked for me I never bothered to look at the compilation. I'm not sure how this differs from my install.
The cc_dynamic library only comes with gcc 3.3. If you are using g77, you need to use gcc 3.3. If you are using gfortran, you need to use gcc 4. GnuFCompiler (for g77) adds -lcc_dynamic; Gnu95FCompiler (for gfortran) does not.
Exactly. MacPorts compiled gcc4.1 and gfortran. But now it's trying to use gcc4.0, gcc3.3, and g77 in /usr/bin rather than gcc4.1 and gfortran in /opt/local/bin. Some kind of path issue? Erin
![](https://secure.gravatar.com/avatar/40806367c7a54366376a04344b5a4c5c.jpg?s=120&d=mm&r=g)
Hey, i noticed that too this morning, after some sleep. I had previiously installed the g77 compiler from hpc.sf.net. Simply removing that solved the problem: now scipy installed smoothly. I still have to check if it all works right, tho. Thanks all! marco
![](https://secure.gravatar.com/avatar/40806367c7a54366376a04344b5a4c5c.jpg?s=120&d=mm&r=g)
from scipy import * Traceback (most recent call last): File "<stdin>", line 1, in ? File "/opt/local/lib/python2.4/site-packages/scipy/interpolate/__init__.py",
I am able now to import scipy without any problems. This, tho, has problems: Python 2.4.3 (#1, Nov 5 2006, 01:11:36) [GCC 4.0.0 20041026 (Apple Computer, Inc. build 4061)] on darwin Type "help", "copyright", "credits" or "license" for more information. line 7, in ? from interpolate import * File "/opt/local/lib/python2.4/site-packages/scipy/interpolate/interpolate.py", line 13, in ? import fitpack File "/opt/local/lib/python2.4/site-packages/scipy/interpolate/fitpack.py", line 34, in ? import _fitpack ImportError: Failure linking new module: /opt/local/lib/python2.4/site-packages/scipy/interpolate/_fitpack.so: Symbol not found: _e_wsle Referenced from: /opt/local/lib/python2.4/site-packages/scipy/interpolate/_fitpack.so Expected in: dynamic lookup I am puzzled. marco
![](https://secure.gravatar.com/avatar/c64841ad5de0190b19b32bbad93d9249.jpg?s=120&d=mm&r=g)
On 11/6/06, Marco <gaedol@gmail.com> wrote:
I am able now to import scipy without any problems. This, tho, has problems:
Python 2.4.3 (#1, Nov 5 2006, 01:11:36) [GCC 4.0.0 20041026 (Apple Computer, Inc. build 4061)] on darwin
Odd. I'm guessing here, but the problem may now be that, due to path issues, some of your modules were compiled with the MacPorts gcc,etc and some were not. From your previous posts, some may have actually used 3.3 which could be a problem. If both are version 4.* it would not usually be a big problem, but in my experience the apple gcc4 behaves differently. Others may have more info on this. If this were the case, it is a pain to fix because you have to trace back all the dependencies compiled in order to install the packages you wanted. Before cleaning everything out, maybe others have better ideas. But if you do brave that route, either start the whole MacPorts tree over from scratch or remove each package: sudo port uninstall package sudo port clean --all package Then follow the instructions again on my MacPorts webpage. In general you might want to add shortcut links to gcc,g++,and gfortran to gaurantee you use those versions. sudo ln -s /opt/local/bin/gcc-dp-4.1 /opt/local/bin/gcc sudo ln -s /opt/local/bin/g++-dp-4.1 /opt/local/bin/g++ sudo ln -s /opt/local/bin/gfortran-dp-4.1 /opt/local/bin/gfortran Erin
from scipy import * Traceback (most recent call last): File "<stdin>", line 1, in ? File "/opt/local/lib/python2.4/site-packages/scipy/interpolate/__init__.py",
Type "help", "copyright", "credits" or "license" for more information. line 7, in ? from interpolate import * File "/opt/local/lib/python2.4/site-packages/scipy/interpolate/interpolate.py", line 13, in ? import fitpack File "/opt/local/lib/python2.4/site-packages/scipy/interpolate/fitpack.py", line 34, in ? import _fitpack ImportError: Failure linking new module: /opt/local/lib/python2.4/site-packages/scipy/interpolate/_fitpack.so: Symbol not found: _e_wsle Referenced from: /opt/local/lib/python2.4/site-packages/scipy/interpolate/_fitpack.so Expected in: dynamic lookup
I am puzzled.
marco _______________________________________________ SciPy-user mailing list SciPy-user@scipy.org http://projects.scipy.org/mailman/listinfo/scipy-user
participants (5)
-
Aaron Hoover
-
Erin Sheldon
-
Marco
-
Robert Kern
-
Sam frizou