Bug 2280555

Summary: python-libusb1 fails to build with Python 3.13: AssertionError": self.assertEqual(local_dict.get(ENUM_NAME), ENUM_VALUE)
Product: [Fedora] Fedora Reporter: Karolina Surma <ksurma>
Component: python-libusb1Assignee: Jonny Heggheim <hegjon>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: antoine.damhet, fti-bugs, fzatlouk, hegjon, ksurma, mhroncok, msaulnier
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: AcceptedFreezeException
Fixed In Version: python-libusb1-3.1.0-4.fc41 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-09-09 21:12:15 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:
Bug Depends On:    
Bug Blocks: 2260875, 2260877, 2244836, 2247866, 2291956, 2307253    

Description Karolina Surma 2024-05-15 06:59:39 UTC
python-libusb1 fails to build with Python 3.13.0b1.

FAIL: testDefaultEnumScope (usb1.testUSB1.USBTransferTests.testDefaultEnumScope)
Enum instances must only affect the scope they are created in.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/libusb1-3.1.0/usb1/testUSB1.py", line 287, in testDefaultEnumScope
    self.assertEqual(local_dict.get(ENUM_NAME), ENUM_VALUE)
    ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: None != 42

----------------------------------------------------------------------
Ran 13 tests in 0.033s

FAILED (failures=1, skipped=2)

https://docs.python.org/3.13/whatsnew/3.13.html

For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/@python/python3.13/fedora-rawhide-x86_64/07443595-python-libusb1/

For all our attempts to build python-libusb1 with Python 3.13, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.13/package/python-libusb1/

Testing and mass rebuild of packages is happening in copr.
You can follow these instructions to test locally in mock if your package builds with Python 3.13:
https://copr.fedorainfracloud.org/coprs/g/python/python3.13/

Let us know here if you have any questions.

Python 3.13 is planned to be included in Fedora 41.
To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.13.
A build failure prevents us from testing all dependent packages (transitive [Build]Requires),
so if this package is required a lot, it's important for us to get it fixed soon.

We'd appreciate help from the people who know this package best,
but if you don't want to work on this now, let us know so we can try to work around it on our side.

Comment 1 Karolina Surma 2024-06-12 15:03:29 UTC
*** Bug 2291760 has been marked as a duplicate of this bug. ***

Comment 2 Fedora Fails To Install 2024-06-19 19:59:32 UTC
Hello,

Please note that this comment was generated automatically by https://pagure.io/releng/blob/main/f/scripts/ftbfs-fti/follow-policy.py
If you feel that this output has mistakes, please open an issue at https://pagure.io/releng/

This package fails to install and maintainers are advised to take one of the following actions:

 - Fix this bug and close this bugzilla once the update makes it to the repository.
   (The same script that posted this comment will eventually close this bugzilla
   when the fixed package reaches the repository, so you don't have to worry about it.)

or

 - Move this bug to ASSIGNED if you plan on fixing this, but simply haven't done so yet.

or

 - Orphan the package if you no longer plan to maintain it.


If you do not take one of these actions, the process at https://docs.fedoraproject.org/en-US/fesco/Fails_to_build_from_source_Fails_to_install/#_package_removal_for_long_standing_ftbfs_and_fti_bugs will continue.
This package may be orphaned in 7+ weeks.
This is the first reminder (step 3) from the policy.

Don't hesitate to ask for help on https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/ if you are unsure how to fix this bug.

Comment 3 Jonny Heggheim 2024-07-04 18:56:45 UTC
Wanted to report upstream, but I can not find my 2FA for github

Comment 4 Antoine Damhet 2024-08-13 15:44:13 UTC
Reported upstream: https://github.com/vpelletier/python-libusb1/issues/103

Comment 5 Karolina Surma 2024-09-04 14:56:29 UTC
This package has failed to build with Python 3.13 so far. Fedora 41 is already in the Beta Freeze phase. What's your plan going forward? Will the package be fixed in time for the Final Freeze of Fedora 41 (planned on Oct 15th 2024)?
If you don't plan or can't fix the package before Fedora 41 goes into the Final Freeze phase, please retire the package. You can unretire it anytime during the Fedora 41 lifecycle - doing this now will simply ensure that we don't release Fedora with a broken package. Thank you!

Comment 6 Fedora Fails To Install 2024-09-04 15:49:30 UTC
Hello,

Please note that this comment was generated automatically by https://pagure.io/releng/blob/main/f/scripts/ftbfs-fti/follow-policy.py
If you feel that this output has mistakes, please open an issue at https://pagure.io/releng/

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

Thanks for taking care of it!

Comment 7 Jonny Heggheim 2024-09-04 17:25:37 UTC
There is a update that was sent to Fedora 41 yesterday https://bodhi.fedoraproject.org/updates/FEDORA-2024-7c42def232

Not sure if it fixes the underlying issue or just hides it.

Comment 8 Fedora Update System 2024-09-04 18:05:00 UTC
FEDORA-2024-7c42def232 (python-libusb1-3.1.0-4.fc41) has been submitted as an update to Fedora 41.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-7c42def232

Comment 9 FrantiĊĦek Zatloukal 2024-09-09 17:22:41 UTC
Discussed during the 2024-09-09 blocker review meeting: [1]

The decision to classify this bug as a AcceptedFreezeException (Beta) was made:

"Also accepted as a fails-to-install issue, which we typically accept to ease upgrade issues."

[1] https://meetbot.fedoraproject.org/blocker-review_matrix_fedoraproject-org/2024-09-09/f41-blocker-review.2024-09-09-16.01.log.html

Comment 10 Fedora Update System 2024-09-09 21:12:15 UTC
FEDORA-2024-7c42def232 (python-libusb1-3.1.0-4.fc41) has been pushed to the Fedora 41 stable repository.
If problem still persists, please make note of it in this bug report.