Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImportError with packaging >= 22.0 #126

Closed
finswimmer opened this issue Dec 20, 2022 · 0 comments · Fixed by #127
Closed

ImportError with packaging >= 22.0 #126

finswimmer opened this issue Dec 20, 2022 · 0 comments · Fixed by #127

Comments

@finswimmer
Copy link
Contributor

Hello,

with the latest release of packaging (22.0) I receive an ImportError when trying to import pythonfinder.

Python 3.10.8 (main, Nov  1 2022, 14:18:21) [GCC 12.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import pythonfinder
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/finswimmer/tmp/pt/venvfinder/lib/python3.10/site-packages/pythonfinder/__init__.py", line 10, in <module>
    from .models import SystemPath, WindowsFinder
  File "/home/finswimmer/tmp/pt/venvfinder/lib/python3.10/site-packages/pythonfinder/models/__init__.py", line 8, in <module>
    from ..utils import KNOWN_EXTS, unnest
  File "/home/finswimmer/tmp/pt/venvfinder/lib/python3.10/site-packages/pythonfinder/utils.py", line 12, in <module>
    from packaging.version import LegacyVersion, Version
ImportError: cannot import name 'LegacyVersion' from 'packaging.version' (/home/finswimmer/tmp/pt/venvfinder/lib/python3.10/site-packages/packaging/version.py)

Pinning packing to <22.0 helps as a workaround.

fin swimmer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant