SciQLop / speasy

Space Physics made EASY! A simple Python package to deal with main Space Physics WebServices (CDA,SSC,AMDA,..)
Other
24 stars 7 forks source link

ImportError: cannot import name 'LegacyVersion' from 'packaging.version' #78

Closed brenard-irap closed 1 year ago

brenard-irap commented 1 year ago

As you can see at https://packaging.pypa.io/en/stable/changelog.html, "LegacyVersion" has been removed from the last version (22.0) of packaging.

Unfortunately, Speasy uses it in speasy/core/cache/version.py

So, we have an exception during the import:

ImportError: cannot import name 'LegacyVersion' from 'packaging.version' (C:\Users\benjamin.renard\Documents\AMDA\cu2022_3_10_venv\lib\site-packages\packaging\version.py)

I have downgrade packaging to version 21.3 to fix the issue

jeandet commented 1 year ago

I'll look into this ASAP.