Bug 2254455

Summary: Conda missing python3-packaging dep
Product: [Fedora] Fedora Reporter: Alex <apattyn>
Component: condaAssignee: Orion Poplawski <orion>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 38CC: orion, zbyszek
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: conda-23.9.0-6.fc38 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-12-23 04:34:05 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Alex 2023-12-14 01:50:54 UTC
Conda is missing python3-packaging

Reproducible: Always

Steps to Reproduce:
1. dnf install conda
2.conda --version
3. See error
Actual Results:  
$ conda --version
Traceback (most recent call last):
  File "/usr/bin/conda", line 33, in <module>
    sys.exit(load_entry_point('conda==23.3.1', 'console_scripts', 'conda')())
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/bin/conda", line 25, in importlib_load_entry_point
    return next(matches).load()
           ^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.11/importlib/metadata/__init__.py", line 202, in load
    module = import_module(match.group('module'))
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.11/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1126, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1126, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 940, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/usr/lib/python3.11/site-packages/conda/__init__.py", line 10, in <module>
    from .deprecations import deprecated
  File "/usr/lib/python3.11/site-packages/conda/deprecations.py", line 9, in <module>
    from packaging.version import parse, Version
ModuleNotFoundError: No module named 'packaging'


Expected Results:  
$ conda --version
conda 23.3.1


Just installing the missing dep via `dnf install python3-packaging` resolves the issue. But this should be included by default.

Comment 1 Orion Poplawski 2023-12-14 03:34:09 UTC
Ah, I think you are actually on Fedora 38.  That threw me for a bit.

Comment 2 Alex 2023-12-14 03:39:06 UTC
Hey Orion,

$ rpm-ostree status
State: idle
Deployments:
● fedora:fedora/39/x86_64/silverblue
                  Version: 39.20231205.0 (2023-12-05T00:55:28Z)
               BaseCommit: ae1afb462f69a9170bdfa24ef9fc3059b2366480c4fbcfac2a15c0fc65487d8a
             GPGSignature: Valid signature by E8F23996F23218640CB44CBE75CF5AC418B8E74C
          LayeredPackages: distrobox langpacks-en podman-compose steam-devices

Comment 3 Alex 2023-12-14 03:40:55 UTC
Ahhhh, my bad. Using an old distrobox container. Which is fedora 38, good catch... Will update when I update the container.

Comment 4 Orion Poplawski 2023-12-14 03:43:26 UTC
Okay.  It's still an issue with F38.  I'll see if I can get an update going.

Comment 5 Alex 2023-12-14 03:45:56 UTC
Thanks for that. I can confirm when using an updated image (fedora 39) this issue does not exist.

Comment 6 Orion Poplawski 2023-12-14 03:49:50 UTC
BTW - you may want to give the newly packaged micromamba a spin.

Comment 7 Fedora Update System 2023-12-14 05:26:12 UTC
FEDORA-2023-2a72323368 has been submitted as an update to Fedora 38. https://bodhi.fedoraproject.org/updates/FEDORA-2023-2a72323368

Comment 8 Fedora Update System 2023-12-15 02:35:53 UTC
FEDORA-2023-2a72323368 has been pushed to the Fedora 38 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-2a72323368`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-2a72323368

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 9 Fedora Update System 2023-12-23 04:34:05 UTC
FEDORA-2023-2a72323368 has been pushed to the Fedora 38 stable repository.
If problem still persists, please make note of it in this bug report.