Opened 8 years ago
Closed 8 years ago
#53875 closed defect (duplicate)
py27-astropy @1.3.1 - import fails
Reported by: | mfacorcoran | Owned by: | robitaille@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | |
Keywords: | Cc: | cdeil (Christoph Deil) | |
Port: | py-astropy |
Description
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
Change History (4)
comment:1 Changed 8 years ago by mf2k (Frank Schima)
Cc: | cdeil added |
---|---|
Owner: | set to robitaille@… |
Port: | py-astropy added |
Status: | new → assigned |
comment:2 Changed 8 years ago by mf2k (Frank Schima)
The py35 version looks good.
$ ls -l /opt/local/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/astropy/astropy.cfg -rw-r--r-- 1 root wheel 4694 Mar 17 22:08 /opt/local/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/astropy/astropy.cfg
comment:3 Changed 8 years ago by cdeil (Christoph Deil)
This was a bug in the upstream Astropy 1.3.1 release, and it was fixed in the Astropy 1.3.2 release.
See:
So Mike, please update to the latest Astropy version 1.3.2 which is in Macports.
Suggest to close this issue now.
comment:4 Changed 8 years ago by mf2k (Frank Schima)
Resolution: | → duplicate |
---|---|
Status: | assigned → closed |
Note: See
TracTickets for help on using
tickets.
In the future, please fill in the Port field and Cc the port maintainers (
port info --maintainers py27-astropy
), if any.