[SciPy-user] no linalg module and failed check_integer test

Jeremy Conlin jeremit0@gmail....
Tue Feb 27 15:17:49 CST 2007


On 2/27/07, Robert Kern <robert.kern@gmail.com> wrote:
> Jeremy Conlin wrote:
> > On 2/27/07, Robert Kern <robert.kern@gmail.com> wrote:
> >>> I didn't notice any errors during the installation.  I know this isn't
> >>> a lot of information to go on, but does anyone know what the problem
> >>> is?
> >> Don't bother with pkgload. Just import scipy.linalg.
> >
> > I tried that:
>
> > ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/scipy/linalg/flapack.so,
> > 2): Symbol not found: ___dso_handle
> >   Referenced from:
> > /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/scipy/linalg/flapack.so
> >   Expected in: dynamic lookup
> >
> > Sorry.  I don't understand what all of those mean or I would try something.
>
> Then I was wrong: the next error is related. The fact that pkgload() hid this
> message is why I suggest not using it.
>
> >>> ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/scipy/special/_cephes.so,
> >>> 2): Symbol not found: ___dso_handle
> >>>   Referenced from:
> >>> /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/scipy/special/_cephes.so
> >>>   Expected in: dynamic lookup
> >> No, it's different. Exactly what versions of OS X (version number and Intel or
> >> PPC), gcc, gfortran (also where you got it from), Xcode do you have installed?
> >> You might need to install the latest version of cctools from here (AFAIK, the
> >> best place to get it):
> >>
> >>   ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-590.36.dmg
> >>
> >> That said, I've never installed it on my MacBook, and I've never had this problem.
> >>
> > I have the latest version of Xcode installed.  I am running on a
> > MacBook Pro with the latest OS X version.  I am running gcc version
> > 4.0.1 and gfortran version 4.3.0.  I got gfortran by following the
> > instructions on the install scipy page for Mac OS X; it links to this
> > package:
> > http://prdownloads.sourceforge.net/hpc/gfortran-intel-bin.tar.gz?download
>
> When did you install gfortran? Gaurav Khanna has the unfortunate habit of
> uploading new builds without changing the filename.

I installed gfortran about a week or two ago.

>
> Try installing the cctools package I gave and rebuilding scipy.

I did just that and it fixed my problem with loading linalg!  Thanks.
However, scipy still fails on some tests, but it did get further this
time.  Can I trust the results from scipy if these tests fail?  I have
copied the failed portions below.
Thanks again,
Jeremy

======================================================================
FAIL: check_expon (scipy.stats.tests.test_morestats.test_anderson)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/scipy/stats/tests/test_morestats.py",
line 57, in check_expon
    assert_array_less(A, crit[-2:])
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/numpy/testing/utils.py",
line 235, in assert_array_less
    header='Arrays are not less-ordered')
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/numpy/testing/utils.py",
line 215, in assert_array_compare
    assert cond, msg
AssertionError:
Arrays are not less-ordered

(mismatch 100.0%)
 x: array(1.9823844122912462)
 y: array([ 1.587,  1.934])

======================================================================
FAIL: check_dot (scipy.lib.tests.test_blas.test_fblas1_simple)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/scipy/lib/blas/tests/test_blas.py",
line 76, in check_dot
    assert_almost_equal(f([3j,-4,3-4j],[2,3,1]),-9+2j)
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/numpy/testing/utils.py",
line 156, in assert_almost_equal
    assert round(abs(desired - actual),decimal) == 0, msg
AssertionError:
Items are not equal:
 ACTUAL: 6.3815410082967491e-37j
 DESIRED: (-9+2j)

======================================================================
FAIL: check_dot (scipy.linalg.tests.test_blas.test_fblas1_simple)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/scipy/linalg/tests/test_blas.py",
line 75, in check_dot
    assert_almost_equal(f([3j,-4,3-4j],[2,3,1]),-9+2j)
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/numpy/testing/utils.py",
line 156, in assert_almost_equal
    assert round(abs(desired - actual),decimal) == 0, msg
AssertionError:
Items are not equal:
 ACTUAL: 6.4704707719591164e-37j
 DESIRED: (-9+2j)

----------------------------------------------------------------------
Ran 1620 tests in 4.936s

FAILED (failures=3)


More information about the SciPy-user mailing list