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

Error about "python.packaging" missing despite it being installed #83

Closed
KucharczykL opened this issue Jan 4, 2023 · 0 comments
Closed

Comments

@KucharczykL
Copy link

Hello,
on Tumbleweed I get the following error:

Compressed release-notes-sled-15.5.20230104.tar to release-notes-sled-15.5.20230104.tar.bz2
/usr/lib/obs/service/set_version:33: RuntimeWarning: install 'packaging' to improve python package versions
  warnings.warn("install 'packaging' to improve python package versions",
At revision 22c938d10c553eaf36d1f2a3e1a889b3.

However, python310-packaging is installed:

# sudo zypper in --no-recommends python310-packaging 
Loading repository data...
Reading installed packages...
'python310-packaging' is already installed.
No update candidate for 'python310-packaging-22.0-1.1.noarch'. The highest available version is already installed.
Resolving package dependencies...
Nothing to do.

Importing packaging.version modules works, except for LegacyVersion:

Python 3.10.9 (main, Dec 08 2022, 14:49:06) [GCC] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from packaging.version import parse
>>> from packaging.version import Version
>>> from packaging.version import LegacyVersion
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: cannot import name 'LegacyVersion' from 'packaging.version' (/usr/lib/python3.10/site-packages/packaging/version.py)
>>>

Could it be related to LegacyVersion being removed in https://github.com/pypa/packaging/blob/main/CHANGELOG.rst#220---2022-12-07?

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

No branches or pull requests

1 participant