[AstroPy] OSX issues with the location of gfortran

Christoph Deil deil.christoph at googlemail.com
Wed Jul 30 10:24:46 EDT 2014


On 30 Jul 2014, at 16:14, Jim Ramberg <ramberg at yahoo.com> wrote:

> Hello:
>     Recent  releases of OSX has gfortran being moved to the gcc package.  So astropy tests that have a preset path for gfortran are failing
> 
> Here is one of the errors I see:
> 
> /Users/ramberg/astropy/docs/convolution/kernels.rst:304: UnexpectedException
> __________________________________________________________________________ [doctest] index.rst __________________________________________________________________________
> 023 Hubble constant at z=0 (i.e., ``H0``), and the number of transverse proper
> 024 kpc corresponding to an arcminute at z=3::
> 025 
> 026   >>> from astropy.cosmology import WMAP9 as cosmo
> 027   >>> cosmo.H(0)  # doctest: +FLOAT_CMP
> 028   <Quantity 69.32 km / (Mpc s)>
> 029 
> 030 .. doctest-requires:: scipy
> 031 
> 032   >>> cosmo.kpc_proper_per_arcmin(3)  # doctest: +FLOAT_CMP
> UNEXPECTED EXCEPTION: ImportError('dlopen(/usr/local/lib/python2.7/site-packages/scipy/special/_ufuncs.so, 2): Library not loaded: /usr/local/Cellar/gfortran/4.8.1/gfortran/lib/libgfortran.3.dylib\n  Referenced from: /usr/local/lib/python2.7/site-packages/scipy/special/_ufuncs.so\n  Reason: image not found',)
> Traceback (most recent call last):
> 
> 
> 
> I was wondering if there is a workaround for this or should I just create a symlink 
> The correct location on my system is: /usr/local/Cellar/gcc/4.8.3_1/lib/gcc/x86_64-apple-darwin13.2.0/4.8.3/i386/libgfortran.3.dylib
> 
> I am running osx mavericks.
> 
> Thanks
> Jim
> 
> _______________________________________________
> AstroPy mailing list
> AstroPy at scipy.org
> http://mail.scipy.org/mailman/listinfo/astropy

Hi Jim,

this looks like an installation issue of your libgfortran or scipy … I guess already `import scipy.special` fails for you?

From your console output I can see you used Homebrew (http://brew.sh/) to install libgfortran.
I’m using Macports (http://www.macports.org/) to install libgfortran and scipy, so I don’t know how to resolve this installation issue.

If you don’t get a useful reply on this Astropy mailing list, you might have more luck asking on the Homebrew or Scipy mailing list.

Cheers,
Christoph


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/astropy/attachments/20140730/ed652bd4/attachment.html>


More information about the AstroPy mailing list