Bug 1700292

Summary: Conflicts while upgrading to Fedora 30 using dnf system-upgrade
Product: [Fedora] Fedora Reporter: Ankur Sinha (FranciscoD) <sanjay.ankur>
Component: python-prompt-toolkitAssignee: Carl George 🤠 <carlwgeorge>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 30CC: carlwgeorge, me
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-prompt-toolkit-2.0.9-2.fc30 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-04-16 16:53:39 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Ankur Sinha (FranciscoD) 2019-04-16 09:20:02 UTC
Command line used to attempt upgrade:

sudo dnf system-upgrade download --refresh --releasever=30 --setopt='module_platform_id=platform:f30'

I get lots of errors of this nature:


Error: Transaction check error:
  file /usr/lib/python3.7/site-packages/prompt_toolkit/__init__.py from install of python3-prompt-toolkit-2.0.9-1.fc30.noarch conflicts with file from package python3-prompt_toolkit-1.0.16-1 .fc29.noarch
  file /usr/lib/python3.7/site-packages/prompt_toolkit/__pycache__/__init__.cpython-37.opt-1.pyc from install of python3-prompt-toolkit-2.0.9-1.fc30.noarch conflicts with file from package p ython3-prompt_toolkit-1.0.16-1.fc29.noarch
  file /usr/lib/python3.7/site-packages/prompt_toolkit/__pycache__/__init__.cpython-37.pyc from install of python3-prompt-toolkit-2.0.9-1.fc30.noarch conflicts with file from package python3 -prompt_toolkit-1.0.16-1.fc29.noarch
  file /usr/lib/python3.7/site-packages/prompt_toolkit/__pycache__/auto_suggest.cpython-37.opt-1.pyc from install of python3-prompt-toolkit-2.0.9-1.fc30.noarch conflicts with file from packa ge python3-prompt_toolkit-1.0.16-1.fc29.noarch
  file /usr/lib/python3.7/site-packages/prompt_toolkit/__pycache__/auto_suggest.cpython-37.pyc from install of python3-prompt-toolkit-2.0.9-1.fc30.noarch conflicts with file from package pyt hon3-prompt_toolkit-1.0.16-1.fc29.noarch
  file /usr/lib/python3.7/site-packages/prompt_toolkit/__pycache__/buffer.cpython-37.opt-1.pyc from install of python3-prompt-toolkit-2.0.9-1.fc30.noarch conflicts with file from package pyt hon3-prompt_toolkit-1.0.16-1.fc29.noarch
  file /usr/lib/python3.7/site-packages/prompt_toolkit/__pycache__/buffer.cpython-37.pyc from install of python3-prompt-toolkit-2.0.9-1.fc30.noarch conflicts with file from package python3-p rompt_toolkit-1.0.16-1.fc29.noarch
  file /usr/lib/python3.7/site-packages/prompt_toolkit/__pycache__/cache.cpython-37.opt-1.pyc from install of python3-prompt-toolkit-2.0.9-1.fc30.noarch conflicts with file from package pyth on3-prompt_toolkit-1.0.16-1.fc29.noarch
  file /usr/lib/python3.7/site-packages/prompt_toolkit/__pycache__/cache.cpython-37.pyc from install of python3-prompt-toolkit-2.0.9-1.fc30.noarch conflicts with file from package python3-pr ompt_toolkit-1.0.16-1.fc29.noarch
  file /usr/lib/python3.7/site-packages/prompt_toolkit/__pycache__/document.cpython-37.opt-1.pyc from install of python3-prompt-toolkit-2.0.9-1.fc30.noarch conflicts with file from package p ython3-prompt_toolkit-1.0.16-1.fc29.noarch
  file /usr/lib/python3.7/site-packages/prompt_toolkit/__pycache__/document.cpython-37.pyc from install of python3-prompt-toolkit-2.0.9-1.fc30.noarch conflicts with file from package python3 -prompt_toolkit-1.0.16-1.fc29.noarch
  file /usr/lib/python3.7/site-packages/prompt_toolkit/__pycache__/enums.cpython-37.opt-1.pyc from install of python3-prompt-toolkit-2.0.9-1.fc30.noarch conflicts with file from package pyth on3-prompt_toolkit-1.0.16-1.fc29.noarch
  file /usr/lib/python3.7/site-packages/prompt_toolkit/__pycache__/enums.cpython-37.pyc from install of python3-prompt-toolkit-2.0.9-1.fc30.noarch conflicts with file from package python3-pr ompt_toolkit-1.0.16-1.fc29.noarch
  file /usr/lib/python3.7/site-packages/prompt_toolkit/__pycache__/history.cpython-37.opt-1.pyc from install of python3-prompt-toolkit-2.0.9-1.fc30.noarch conflicts with file from package py thon3-prompt_toolkit-1.0.16-1.fc29.noarch
  file /usr/lib/python3.7/site-packages/prompt_toolkit/__pycache__/history.cpython-37.pyc from install of python3-prompt-toolkit-2.0.9-1.fc30.noarch conflicts with file from package python3- prompt_toolkit-1.0.16-1.fc29.noarch
  file /usr/lib/python3.7/site-packages/prompt_toolkit/__pycache__/keys.cpython-37.opt-1.pyc from install of python3-prompt-toolkit-2.0.9-1.fc30.noarch conflicts with file from package pytho n3-prompt_toolkit-1.0.16-1.fc29.noarch
  file /usr/lib/python3.7/site-packages/prompt_toolkit/__pycache__/keys.cpython-37.pyc from install of python3-prompt-toolkit-2.0.9-1.fc30.noarch conflicts with file from package python3-pro mpt_toolkit-1.0.16-1.fc29.noarch
  file /usr/lib/python3.7/site-packages/prompt_toolkit/__pycache__/mouse_events.cpython-37.opt-1.pyc from install of python3-prompt-toolkit-2.0.9-1.fc30.noarch conflicts with file from packa ge python3-prompt_toolkit-1.0.16-1.fc29.noarch

....

Comment 1 Ankur Sinha (FranciscoD) 2019-04-16 09:24:36 UTC
I expect this is a fallout from the package rename. I see that the F30 package only obsoletes versions < 1.0.15-3, but as the error shows, 1.0.16-1 is in F29.

Comment 2 Carl George 🤠 2019-04-16 16:52:56 UTC
Sorry about that.  Yes, it was renamed from python-prompt_toolkit to python-prompt-toolkit.  At the time I set that obsolete it was correct, but since then upstream released 1.0.16 to fix a deprecation warning (see bug 1697574).  I updated the f29 branch of python-prompt_toolkit but forgot to update the obsolete in this package accordingly.  I considered setting the obsolete to < 2 but the guidelines are clear that it should only be set to one release higher than the last known release of the obsoleted package [0].

I've fixed this in e37272 [1].  Thanks for reporting the issue!

[0]: https://docs.fedoraproject.org/en-US/packaging-guidelines/#renaming-or-replacing-existing-packages
[1]: https://src.fedoraproject.org/rpms/python-prompt-toolkit/c/e372720721abce2dbfa79b092288f77ed327565b

Comment 3 Carl George 🤠 2019-04-16 16:53:39 UTC
https://koji.fedoraproject.org/koji/buildinfo?buildID=1251289

Comment 4 Fedora Update System 2019-04-16 16:55:19 UTC
python-prompt-toolkit-2.0.9-2.fc30 has been submitted as an update to Fedora 30. https://bodhi.fedoraproject.org/updates/FEDORA-2019-a297be6199

Comment 5 Fedora Update System 2019-04-17 01:03:00 UTC
python-prompt-toolkit-2.0.9-2.fc30 has been pushed to the Fedora 30 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-a297be6199

Comment 6 Fedora Update System 2019-04-27 21:25:37 UTC
python-prompt-toolkit-2.0.9-2.fc30 has been pushed to the Fedora 30 stable repository. If problems still persist, please make note of it in this bug report.