[MacPorts] #60222: py-astroquery missing dependency
MacPorts
noreply at macports.org
Sat Mar 21 13:36:34 UTC 2020
#60222: py-astroquery missing dependency
---------------------------------------+------------------------
Reporter: odysseus9672 | Owner: reneeotten
Type: defect | Status: accepted
Priority: Normal | Milestone:
Component: ports | Version: 2.6.2
Resolution: | Keywords:
Port: py-astroquery py-keyring |
---------------------------------------+------------------------
Changes (by reneeotten):
* owner: (none) => reneeotten
* status: new => accepted
* port: => py-astroquery py-keyring
Comment:
hi Sean, sorry for the trouble. When trying to reproduce your error I got
the following backtrace:
{{{
>>> from astroquery.irsa import Irsa
Traceback (most recent call last):
File
"/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7
/site-packages/keyring/backend.py", line 11, in <module>
from importlib import metadata
ImportError: cannot import name 'metadata' from 'importlib'
(/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/importlib/__init__.py)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File
"/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7
/site-packages/astroquery/irsa/__init__.py", line 34, in <module>
from .core import Irsa, IrsaClass
File
"/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7
/site-packages/astroquery/irsa/core.py", line 111, in <module>
from ..query import BaseQuery
File
"/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7
/site-packages/astroquery/query.py", line 9, in <module>
import keyring
File
"/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7
/site-packages/keyring/__init__.py", line 1, in <module>
from .core import (
File
"/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7
/site-packages/keyring/core.py", line 10, in <module>
from . import backend
File
"/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7
/site-packages/keyring/backend.py", line 13, in <module>
import importlib_metadata as metadata
ModuleNotFoundError: No module named 'importlib_metadata'
}}}
so even though it manifests itself when doing an import for the
{{{astroquery}}}, it is, in fact, caused by {{{py-keyring}}} and I
checking that I see that I didn't update its dependencies correctly. Will
fix shortly.
Thanks for the report!
--
Ticket URL: <https://trac.macports.org/ticket/60222#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list