[MacPorts] #53875: py27-astropy @1.3.1 - import fails

MacPorts noreply at macports.org
Tue Mar 28 19:28:15 UTC 2017


#53875: py27-astropy @1.3.1 -  import fails
-------------------------+-----------------
 Reporter:  mfacorcoran  |      Owner:
     Type:  defect       |     Status:  new
 Priority:  Normal       |  Milestone:
Component:  ports        |    Version:
 Keywords:               |       Port:
-------------------------+-----------------
 I just updated astropy to version 1.3.1 and I  get the following
 ImportError:

 {{{
 In [3]: import astropy
 ---------------------------------------------------------------------------
 ImportError                               Traceback (most recent call
 last)
 <ipython-input-3-d192094ef7da> in <module>()
 ----> 1 import astropy

 /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
 /site-packages/astropy/__init__.py in <module>()
     117
     118
 --> 119 from . import config as _config
     120
     121 class Conf(_config.ConfigNamespace):

 ImportError: cannot import name config
 }}}

 apparently the file

 /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
 /site-packages/astropy/astropy.cfg does not have world read access (only
 root read access).  Changing this file to world read access seems to have
 fixed the problem.

 There seems to be a similar problem with the python 3.6 version of astropy
 as well

 Mike

--
Ticket URL: <https://trac.macports.org/ticket/53875>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list