Bug 2008764 - python-augeas ships "test" module in the global namespace, breaking upgrades
Summary: python-augeas ships "test" module in the global namespace, breaking upgrades
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: python-augeas
Version: 35
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Miro Hrončok
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 2023130 (view as bug list)
Depends On: 2008718
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-09-29 06:31 UTC by Zbigniew Jędrzejewski-Szmek
Modified: 2021-11-25 01:04 UTC (History)
17 users (show)

Fixed In Version: python-augeas-1.1.0-3.fc35
Clone Of: 2008718
Environment:
Last Closed: 2021-11-25 01:04:41 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Zbigniew Jędrzejewski-Szmek 2021-09-29 06:31:15 UTC
+++ This bug was initially created as a clone of Bug #2008718 +++

Description of problem:
Doing a upgrade to Fedora 35 beta from Fedora 34. About 3.1G of packages downloaded and then the upgrade fails.

Version-Release number of selected component (if applicable):
Fedora 35 beta

Steps to Reproduce:
1.dnf update -y
2.dnf system-upgrade download --releasever=35 


Actual results:

Error: Transaction test error:
  file /usr/lib/python3.10/site-packages/test/__pycache__/__init__.cpython-310.opt-1.pyc conflicts between attempted installs of python3-ansible-runner-2.0.0a1-3.fc35.noarch and python3-augeas-1.1.0-2.fc35.noarch
  file /usr/lib/python3.10/site-packages/test/__pycache__/__init__.cpython-310.pyc conflicts between attempted installs of python3-ansible-runner-2.0.0a1-3.fc35.noarch and python3-augeas-1.1.0-2.fc35.noarch


Expected results:
successful upgrade to Fedora 35

Additional info:

This was the result of Step 2. above:

Install      70 Packages
Upgrade    2980 Packages
Remove        8 Packages
Downgrade    18 Packages

--- Additional comment from Elliott Sales de Andrade on 2021-09-29 01:54:25 UTC ---

This is not a Python bug; it's a bug in both python-ansible-runner and python-augeas, neither of which should be shipping a test package at the top level.

Comment 1 Felix Schwarz 2021-10-11 21:34:17 UTC
Incidentally I just created a pull request which fixes that: https://src.fedoraproject.org/rpms/python-augeas/pull-request/3#commit_list

Comment 2 Miro Hrončok 2021-11-23 18:10:44 UTC
*** Bug 2023130 has been marked as a duplicate of this bug. ***

Comment 3 Miro Hrončok 2021-11-23 18:16:22 UTC
I am building the fix by Felix in rawhide and f35.

Comment 4 Fedora Update System 2021-11-23 18:54:08 UTC
FEDORA-2021-fbb19120f8 has been submitted as an update to Fedora 35. https://bodhi.fedoraproject.org/updates/FEDORA-2021-fbb19120f8

Comment 5 Fedora Update System 2021-11-24 01:57:39 UTC
FEDORA-2021-fbb19120f8 has been pushed to the Fedora 35 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-fbb19120f8`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-fbb19120f8

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

Comment 6 Fedora Update System 2021-11-25 01:04:41 UTC
FEDORA-2021-fbb19120f8 has been pushed to the Fedora 35 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.