Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 2021229 - F36FailsToInstall: python3-fixit
Summary: F36FailsToInstall: python3-fixit
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: python-fixit
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Davide Cavalca
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: F36FailsToInstall
TreeView+ depends on / blocked
 
Reported: 2021-11-08 15:54 UTC by Miro Hrončok
Modified: 2021-11-20 01:11 UTC (History)
3 users (show)

Fixed In Version: python-fixit-0.1.4-2.fc35 python-fixit-0.1.4-2.fc34
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-11-17 12:23:17 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Miro Hrončok 2021-11-08 15:54:49 UTC
Hello,

Please note that this comment was generated automatically. If you feel that this output has mistakes, please contact me via email (mhroncok).

Your package (python-fixit) Fails To Install in Fedora 36:

can't install python3-fixit:
  - nothing provides python3.10dist(importlib-resources) >= 5.1.2 needed by python3-fixit-0.1.4-1.fc36.noarch
  
If you know about this problem and are planning on fixing it, please acknowledge so by setting the bug status to ASSIGNED. If you don't have time to maintain this package, consider orphaning it, so maintainers of dependent packages realize the problem.


If you don't react accordingly to the policy for FTBFS/FTI bugs (https://docs.fedoraproject.org/en-US/fesco/Fails_to_build_from_source_Fails_to_install/), your package may be orphaned in 8+ weeks.

P.S. The data was generated solely from koji buildroot, so it might be newer than the latest compose or the content on mirrors.

P.P.S. If this bug has been reported in the middle of upgrading multiple dependent packages, please consider using side tags: https://docs.fedoraproject.org/en-US/fesco/Updates_Policy/#updating-inter-dependent-packages

Thanks!

Comment 1 Davide Cavalca 2021-11-11 22:23:35 UTC
I've tried fixing this with https://paste.centos.org/view/7eb3222a but it's still annoyingly picking up the requirement:

  - nothing provides python3.10dist(importlib-resources) >= 5.1.2 needed by python3-fixit-0.1.4-1.fc36.noarch

Comment 2 Fedora Update System 2021-11-12 00:06:25 UTC
FEDORA-2021-cdb5fc4ad0 has been submitted as an update to Fedora 35. https://bodhi.fedoraproject.org/updates/FEDORA-2021-cdb5fc4ad0

Comment 3 Fedora Update System 2021-11-12 00:06:25 UTC
FEDORA-2021-d4c142fb30 has been submitted as an update to Fedora 34. https://bodhi.fedoraproject.org/updates/FEDORA-2021-d4c142fb30

Comment 4 Fedora Update System 2021-11-12 01:03:34 UTC
FEDORA-2021-cdb5fc4ad0 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-cdb5fc4ad0`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-cdb5fc4ad0

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

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

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

Comment 6 Miro Hrončok 2021-11-12 12:08:47 UTC
(In reply to Davide Cavalca from comment #1)
> I've tried fixing this with https://paste.centos.org/view/7eb3222a but it's
> still annoyingly picking up the requirement:
> 
>   - nothing provides python3.10dist(importlib-resources) >= 5.1.2 needed by
> python3-fixit-0.1.4-1.fc36.noarch

Not for me:

$ rpm -qp --requires results_python-fixit/0.1.4/2.fc36/python3-fixit-0.1.4-2.fc36.noarch.rpm 
/usr/bin/python3
python(abi) = 3.10
python3.10dist(flake8) >= 3.8.1
python3.10dist(jsonschema) >= 3.2
python3.10dist(libcst) >= 0.3.18
python3.10dist(pyyaml) >= 5.2
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(FileDigests) <= 4.6.0-1
rpmlib(PartialHardlinkSets) <= 4.0.4-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rpmlib(PayloadIsZstd) <= 5.4.18-1

Comment 7 Miro Hrončok 2021-11-12 12:15:31 UTC
$ cat Fixit-0.1.4/requirements.txt 
flake8>=3.8.1
libcst>=0.3.18
pyyaml>=5.2
jsonschema>=3.2.0
importlib-resources>=5.1.2; python_version <= '3.6'

Comment 8 Ben Beasley 2021-11-12 15:24:50 UTC
Reproduced from my response on the the python-devel mailing list:

I know this pattern works in general, because I maintain several Python packages in which it is used.

I tried modifying python-fixit to patch requirements.txt as you described. I confirmed the line appeared in the “prepped” source as you have written. Then I built it with mock and installed it into a Rawhide chroot without difficulty.

My best guess is that there was a mix-up in which RPM version you were trying to install—something that’s probably happened to all of us. Perhaps you built it in Rawhide and didn’t use --enablerepo=local when testing the installation?

Anyway, if you can reproduce the problem again, please consider doing so in a PR against your package, so that others can check out the PR and examine the exact spec file that is not working.

A side note: since, for example, Python 3.6.1 is not “<= '3.6'”, I think this conditional would be better written as “< '3.7'” instead.

Comment 9 Miro Hrončok 2021-11-17 12:23:17 UTC
Hello,

Please note that this comment was generated automatically. If you feel that this output has mistakes, please contact me via email (mhroncok).

All subpackages of a package against which this bug was filled are now installable or removed from Fedora 36.

Thanks for taking care of it!

Comment 10 Fedora Update System 2021-11-20 01:08:14 UTC
FEDORA-2021-cdb5fc4ad0 has been pushed to the Fedora 35 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 11 Fedora Update System 2021-11-20 01:11:31 UTC
FEDORA-2021-d4c142fb30 has been pushed to the Fedora 34 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.