[SciPy-user] Installation problems Mac OS X 10.4.7

Helmut Strey streycats at gmail.com
Sun Sep 17 09:26:53 EDT 2006


Yesterday night, I tried to comile scipy myself with mixed results.
The main problem is that the superpack is compiled using gcc 3.3 and
that the install packages from pythonmac.org are all 4.0.1.
So I used numpy, matplotlib from pythonmac.org and compiled everything
according to the scipy website.  I also installed gfortran from
hpc.sourceforge.org
because I read somewhere that this is the only fortran 77 compiler
that works with
gcc 4.01.

There is only one problem. Not all scipy tests pass.

ERROR: check loadmat case cellnest
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/scipy/io/tests/test_mio.py",
line 80, in cc
    self._check_case(name, expected)
  File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/scipy/io/tests/test_mio.py",
line 75, in _check_case
    self._check_level(k_label, expected, matdict[k])
  File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/scipy/io/tests/test_mio.py",
line 33, in _check_level
    self._check_level(level_label, ev, actual[i])
  File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/scipy/io/tests/test_mio.py",
line 30, in _check_level
    assert len(expected) == len(actual), "Different list lengths at %s" % label
TypeError: len() of unsized object

======================================================================
FAIL: check loadmat case vec
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/scipy/io/tests/test_mio.py",
line 80, in cc
    self._check_case(name, expected)
  File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/scipy/io/tests/test_mio.py",
line 74, in _check_case
    assert k in matdict, "Missing key at %s" % k_label
AssertionError: Missing key at Test 'vec',
file:/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/scipy/io/tests/./data/testvec_4_GLNX86.mat,
variable fit_params

----------------------------------------------------------------------
Ran 1583 tests in 125.600s

FAILED (failures=1, errors=1)
<unittest.TextTestRunner object at 0x32e3670>


On 9/17/06, David Andrews <irbdavid at gmail.com> wrote:
> Hi Helmut,
>
> I've been having precisely the same problem.  As far as I can tell
> there is no way to get the stuff in the superpack working together
> properly.  Numpy and Scipy install fine from it, but the matplotlib
> mpkg in it is broken.  I had no real progress using the 'official'
> matplotlib packages from their site, as they expect a different
> version of numpy, despite the fact that its supposed to be fine with
> all 1.0+ versions of numpy.
>
> I'm not sure how to resolve this problem, It has been suggested that
> its best to install packages from
> http://pythonmac.org/packages/py24-fat/index.html though scipy is
> currently not available there.
>
> Let me know if you make any progress :)
>
> Cheers,
>
> Dave
>
> On 17/09/06, Helmut Strey <streycats at gmail.com> wrote:
> > I have been trying to install the SciPy Superpack for Python.  I used
> > MacPython2.4. When I try to import pylab the following error message
> > appears:
> >
> > helmut-streys-imac-g5:~ hstrey$ python
> > Python 2.4.3 (#1, Apr  7 2006, 10:54:33)
> > [GCC 4.0.1 (Apple Computer, Inc. build 5250)] on darwin
> > Type "help", "copyright", "credits" or "license" for more information.
> > >>> from pylab import *
> > Traceback (most recent call last):
> >   File "<stdin>", line 1, in ?
> >   File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/pylab.py",
> > line 1, in ?
> >     from matplotlib.pylab import *
> >   File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/matplotlib/pylab.py",
> > line 200, in ?
> >     from axes import Axes, PolarAxes
> >   File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/matplotlib/axes.py",
> > line 15, in ?
> >     from axis import XAxis, YAxis
> >   File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/matplotlib/axis.py",
> > line 25, in ?
> >     from font_manager import FontProperties
> >   File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/matplotlib/font_manager.py",
> > line 39, in ?
> >     from matplotlib import ft2font
> > ImportError: Failure linking new module:
> > /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/matplotlib/ft2font.so:
> > Library not loaded: /usr/local/lib/libfreetype.6.dylib
> >   Referenced from:
> > /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/matplotlib/ft2font.so
> >   Reason: image not found
> > >>>
> >
> > It seems that the package expects libfreetype6.dylib in
> > /usr/local/lib. I found it in /usr/X11R6/lib.  I tried to create a
> > symbolic link but then it says that the compiler versions dont match.
> > What should I do?
> >
> > Everything else works.
> >
> > Thanks
> >
> > Helmut Strey
> > _______________________________________________
> > SciPy-user mailing list
> > SciPy-user at scipy.org
> > http://projects.scipy.org/mailman/listinfo/scipy-user
> >
> _______________________________________________
> SciPy-user mailing list
> SciPy-user at scipy.org
> http://projects.scipy.org/mailman/listinfo/scipy-user
>



More information about the SciPy-User mailing list