You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Solution to issue cannot be found in the documentation.
I checked the documentation.
Issue
ESMPy 8.4 changed from specifying authors in both setup.py and the package __init__.py to only in setup.py, using importlib_metadata to grab the metadata from the package dist-info, then moved the whole system to pyproject.toml with no setup.py, during which the list of authors got dropped but the code to get them from dist-info did not. (esmf-org/esmf#58)
At the time, this was not an issue, as importlib_metadata produced a result of None when asked for metadata not provided by the package. This changed to DeprecationWarnings, which prompted a fix before ESMPy 8.5 (esmf-org/esmf#140), and eventually to KeyError, which caused an ImportError.
Would it be possible to change the requirements from ESMPy>=8.0 to ESMPy>=8.0, !=8.4.0, !=8.4.1, !=8.4.2? I'm not sure where that gets set, or I'd make the PR myself.
Installed packages
ESMPy==8.4.1
python==3.11
xesmf
pynio
Environment info
Linux server
The text was updated successfully, but these errors were encountered:
Would it be possible to change the requirements from ESMPy>=8.0 to ESMPy>=8.0, !=8.4.0, !=8.4.1, !=8.4.2? I'm not sure where that gets set, or I'd make the PR myself.
It would exactly what you posted there ,without the spaces after the commas:
ESMPy 8.4.* imports only with old versions of importlib_metadata.
With current versions of importlib_metadata, ESMPy fails to import.
Closesconda-forge#43
Solution to issue cannot be found in the documentation.
Issue
ESMPy 8.4 changed from specifying authors in both
setup.py
and the package__init__.py
to only insetup.py
, usingimportlib_metadata
to grab the metadata from the packagedist-info
, then moved the whole system topyproject.toml
with nosetup.py
, during which the list of authors got dropped but the code to get them fromdist-info
did not. (esmf-org/esmf#58)At the time, this was not an issue, as
importlib_metadata
produced a result ofNone
when asked for metadata not provided by the package. This changed toDeprecationWarning
s, which prompted a fix before ESMPy 8.5 (esmf-org/esmf#140), and eventually toKeyError
, which caused anImportError
.This is already on the xESMF repo as pangeo-data/xESMF#374
Would it be possible to change the requirements from
ESMPy>=8.0
toESMPy>=8.0, !=8.4.0, !=8.4.1, !=8.4.2
? I'm not sure where that gets set, or I'd make the PR myself.Installed packages
Environment info
The text was updated successfully, but these errors were encountered: