[Numpy-discussion] f2py links extensions to incorrect python installation on OSX / Anaconda

David Cournapeau cournape at gmail.com
Thu Mar 27 16:50:03 EDT 2014


On Thu, Mar 27, 2014 at 8:30 PM, Alex Goodman <alex.goodman at colostate.edu>wrote:

> Hi all,
>
> I have used f2py in the past on a Linux machine with virtually no issues.
> However on my Mac, I get the following error when importing an f2py
> generated extension:
>
> Fatal Python error: PyThreadState_Get: no current thread
> Abort trap: 6
>
> After doing some research I found out that the extension is linked to the
> wrong python installation:
> otool -L add.so
> add.so:
> ./add.so (compatibility version 0.0.0, current version 0.0.0)
> /System/Library/Frameworks/Python.framework/Versions/2.7/Python
> (compatibility version 2.7.0, current version 2.7.2)
>  /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version
> 169.3.0)
>
> This seems odd because I am using the f2py executable included in Anaconda
> 1.9.1. I can easily fix this problem by manually using install_name_tool
> -change on the extension to link the correct library location, but this is
> really cumbersome. Is there an alternative solution, such as an additional
> command-line argument when invoking f2py?
>

This sounds like an issue specific to Anaconda, and you may get better
support on the Anaconda support ML.

David

>
> For what it is worth, I am also using Version 14.0.2 of the Intel Fortran
> Compiler.
>
> Thanks,
> Alex
> --
> Alex Goodman
> Graduate Research Assistant
> Department of Atmospheric Science
> Colorado State University
>
> _______________________________________________
> NumPy-Discussion mailing list
> NumPy-Discussion at scipy.org
> http://mail.scipy.org/mailman/listinfo/numpy-discussion
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20140327/5b5cd0b2/attachment.html>


More information about the NumPy-Discussion mailing list