[SciPy-User] Symbol not found: _aswfa_

Ralf Gommers ralf.gommers@googlemail....
Sun Nov 6 15:28:17 CST 2011


On Sun, Nov 6, 2011 at 8:35 PM, Lynn Oliver <raycores@gmail.com> wrote:

> That thread is also at [SciPy-User] cephes library issues: Symbol not
> found: _aswfa_ [SOLVED]<http://mail.scipy.org/pipermail/scipy-user/2010-November/027548.html>,
> and it seems the issue turned out to be the version of the fortran compiler
> that was installed.
>
> According to Installing SciPy/Mac OS X -<http://www.scipy.org/Installing_SciPy/Mac_OS_X>,
> I need to use gfortran-lion-5666-3.pkg at Tools - R for Mac OS X -
> developer's page - GNU Fortan for Xcode <http://r.research.att.com/tools/>,
> which is listed as v4.2.4.  I did the install, but as you can see below, it
> is showing the version as 4.2.1, although the build number (5666) is
> correct.  I'm not sure if this means I am using the correct version or not.
>  I have XCode 4.2 installed, while the package is listed as requiring 4.1.
>

That should be the correct gfortran, the incorrect version number is a
known problem. Newer XCode shouldn't matter.

>
> I'm running the Python version that ships with Lion, which so far has been
> the only way to get the correct versions of tk/tcl, tkinter, numpy, and
> matplotlib all working on Lion without going to a non open-source
> distribution.
>

> I had the environment variable set to select 32-bit mode (export
> VERSIONER_PYTHON_PREFER_32_BIT_=TRUE), but when I remove that I'm still
> getting 32-bit for some reason.  Until I figure that out I can't check to
> see if the 64-bit version has the issue.  It wouldn't matter that much
> anyway, because pyinstaller only works with 32-bit python.
>

That's odd. But anyway you need the 32-bit version of cephes in the
universal binary to work, and it doesn't. This could be a distutils bug or
something in the scipy build. Picking the non-default part of a universal
binary is hardly tested at all. Could you file a bug please?

Ralf


> Lynn
>
> On Nov 6, 2011, at 9:49 AM, Ralf Gommers wrote:
>
>
>
> On Sat, Nov 5, 2011 at 9:19 PM, Lynn Oliver <raycores@gmail.com> wrote:
>
>> I followed these steps to build and install numpy and scipy on OS X
>> 10.7.2 (from Installing SciPy/Mac OS X -<http://www.scipy.org/Installing_SciPy/Mac_OS_X>
>> )
>>
>> $ export CC=gcc-4.2
>> $ export CXX=g++-4.2
>> $ export FFLAGS=-ff2c
>>
>> $ git clone https://github.com/numpy/numpy.git
>> $ git clone https://github.com/scipy/scipy.git
>>
>> $ python setup.py build
>> $ python setup.py install
>>
>> When I try:
>>    from scipy.interpolate import interp1d
>>
>> I get:
>> ImportError:
>> dlopen(/Library/Python/2.7/site-packages/scipy/special/_cephes.so, 2):
>> Symbol not found: _aswfa_
>>
>> Any ideas on how to resolve the problem?
>>
>
> That stackoverflow post that Johann linked to says that the aswfa symbol
> is only missing in the 32-bit version. Are you running 32-bit Python 2.7
> and if so, is that on purpose? If you grab the right installer from
> python.org, you should get 64-bit by default.
>
> Ralf
>
>
>> -Lynn
>>
>> $ gcc --version
>> i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build
>> 5658) (LLVM build 2335.15.00)
>>
>> $ gfortran --version
>> GNU Fortran (GCC) 4.2.1 (Apple Inc. build 5666) (dot 3)
>> Copyright (C) 2007 Free Software Foundation, Inc.
>>
>>
>> _______________________________________________
> SciPy-User mailing list
> SciPy-User@scipy.org
> http://mail.scipy.org/mailman/listinfo/scipy-user
>
>
>
> _______________________________________________
> SciPy-User mailing list
> SciPy-User@scipy.org
> http://mail.scipy.org/mailman/listinfo/scipy-user
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/scipy-user/attachments/20111106/096dbf41/attachment-0001.html 


More information about the SciPy-User mailing list