sarugaku/pythonfinder

ImportError with packaging >= 22.0

finswimmer opened this issue · 0 comments

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