[SciPy-dev] Difficulties on OS X
Tom Loredo
loredo at astro.cornell.edu
Tue Dec 20 12:27:31 EST 2005
Hi folks,
I'm trying to use the current CVS version of scipy with the
latest release of scipy_core on OS 10.3.9 with Python 2.4.
It appears that the installation is not using Apple's
ATLAS equivalent---e.g, it builds lapack_lite, and
scipy.test() says:
****************************************************************
WARNING: cblas module is empty
-----------
See scipy/INSTALL.txt for troubleshooting.
Notes:
* If atlas library is not found by scipy/system_info.py,
then scipy uses fblas instead of cblas.
****************************************************************
****************************************************************
WARNING: clapack module is empty
-----------
See scipy/INSTALL.txt for troubleshooting.
Notes:
* If atlas library is not found by scipy/system_info.py,
then scipy uses flapack instead of clapack.
****************************************************************
There is also this strange behavior, where it complains
that fftpack isn't there, yet one can use it:
>>> import scipy
Failed to import fftpack
No module named fftpack
Failed to import signal
No module named fftpack
>>> scipy.fftpack.fft([0., 1., 0., -1., 0.])
array([ 0. +0.j , 1.11803399-1.53884177j,
-1.11803399+0.36327126j, -1.11803399-0.36327126j,
1.11803399+1.53884177j])
>>> import scipy.fftpack
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/scipy/fftpack/__init__.py",
line 10, in ?
from scipy.basic.fftpack import fftshift, ifftshift, fftfreq
ImportError: No module named fftpack
>>> scipy.fftpack
<module 'scipy.basic.fft' from '/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/scipy/
basic/fft.pyc'>
>>> scipy.signal
Traceback (most recent call last):
File "<stdin>", line 1, in ?
AttributeError: 'module' object has no attribute 'signal'
>>> import scipy.signal
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/scipy/signal/__init__.py", line
12, in ?
from signaltools import *
File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/scipy/signal/signaltools.py",
line 9, in ?
from scipy.fftpack import fft, ifft, ifftshift, fft2, ifft2
File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/scipy/fftpack/__init__.py",
line 10, in ?
from scipy.basic.fftpack import fftshift, ifftshift, fftfreq
ImportError: No module named fftpack
I don't know how this might affect other things. E.g., when
I build matplotlib, it begins by importing scipy so these
complaints appear; I don't know mpl well enough to know if
the build is affected by the "failed" imports.
There is also this failed test:
FAIL: check_round (scipy.special.basic.test_basic.test_round)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/scipy/special/tests/
test_basic.py", line 1793, in check_round
assert_array_equal(rnd,rndrl)
File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/scipy/test/testing.py", line
733, in assert_array_equal
assert cond,\
AssertionError:
Arrays are not equal (mismatch 25.0%):
Array 1: [10 10 10 11]
Array 2: [10 10 11 11]
Any ideas on fixes would be greatly appreciated. I'll be
teaching parts of scipy to a class in January and I need to
have a solid distribution for them to install on their laptops
soon.
-Tom
-------------------------------------------------
This mail sent through IMP: http://horde.org/imp/
More information about the SciPy-Dev
mailing list