Bug ID 1210093
Summary network:ldap/389-ds: Bug "ImportError: cannot import name 'LegacyVersion' from 'packaging.version' (/usr/lib/python3.10/site-packages/packaging/version.py)"
Classification openSUSE
Product openSUSE.org
Version unspecified
Hardware Other
OS Other
Status NEW
Severity Normal
Priority P5 - None
Component 3rd party software
Assignee william.brown@suse.com
Reporter opensuse_buildservice@ojkastl.de
QA Contact screening-team-bugs@suse.de
Found By ---
Blocker ---

I just installed 389-ds on my Tumbleweed machine, and tried to use dsctl and
dsidm. Both fail with the same message:

```
Traceback (most recent call last):
  File "/usr/lib/python3.10/site-packages/lib389/utils.py", line 46, in
<module>
    from pkg_resources.extern.packaging.version import LegacyVersion
ImportError: cannot import name 'LegacyVersion' from
'pkg_resources.extern.packaging.version'
(/usr/lib/python3.10/site-packages/pkg_resources/_vendor/packaging/version.py)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/sbin/dsidm", line 19, in <module>
    from lib389.utils import get_instance_list, instance_choices
  File "/usr/lib/python3.10/site-packages/lib389/__init__.py", line 54, in
<module>
    from lib389._entry import Entry
  File "/usr/lib/python3.10/site-packages/lib389/_entry.py", line 20, in
<module>
    from lib389.utils import (ensure_str, ensure_bytes, ensure_list_bytes,
display_log_data)
  File "/usr/lib/python3.10/site-packages/lib389/utils.py", line 49, in
<module>
    from packaging.version import LegacyVersion
ImportError: cannot import name 'LegacyVersion' from 'packaging.version'
(/usr/lib/python3.10/site-packages/packaging/version.py)
```

Packages installed on my machine:
```
$ rpm -qa|grep -E "389|packaging"|sort
389-ds-2.3.0~git22.8fedec0-1.5.x86_64
lib389-2.3.0~git22.8fedec0-1.5.x86_64
python310-packaging-23.0-2.2.noarch
python-rpm-packaging-20210526+a18ca48-1.5.noarch
$
```

Kind Regards,
Johannes


You are receiving this mail because: