Bug 2262374

Summary: libsbml fails to build with Python 3.13: AttributeError: module 'unittest' has no attribute 'makeSuite'
Product: [Fedora] Fedora Reporter: Karolina Surma <ksurma>
Component: libsbmlAssignee: Zbigniew Jędrzejewski-Szmek <zbyszek>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: mhroncok, neuro-sig, r-maint-sig, trpost, zbyszek
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: libsbml-5.20.2-10.fc41 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-05-19 22:14:11 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: 2244836    

Description Karolina Surma 2024-02-02 09:24:00 UTC
libsbml fails to build with Python 3.13.0a3.

      Start 29: test_python_binding

29: Test command: /usr/bin/python3 "/builddir/build/BUILD/libsbml-5.20.2/build/src/bindings/python/test.py" "-p" "/builddir/build/BUILD/libsbml-5.20.2/build/src/bindings/python" "-b" "/builddir/build/BUILD/libsbml-5.20.2/src/bindings/python/test"
29: Working Directory: /builddir/build/BUILD/libsbml-5.20.2/build/src/bindings/python
29: Test timeout computed to be: 3000
29: Traceback (most recent call last):
29:   File "/builddir/build/BUILD/libsbml-5.20.2/build/src/bindings/python/test.py", line 77, in <module>
29:     if unittest.TextTestRunner(verbosity=1).run(suite()).wasSuccessful() :
29:                                                 ~~~~~^^
29:   File "/builddir/build/BUILD/libsbml-5.20.2/build/src/bindings/python/test.py", line 55, in suite
29:     suite.addTest(unittest.makeSuite(class_name))
29:                   ^^^^^^^^^^^^^^^^^^
29:   File "/usr/lib64/python3.13/unittest/__init__.py", line 80, in __getattr__
29:     raise AttributeError(f"module {__name__!r} has no attribute {name!r}")
29: AttributeError: module 'unittest' has no attribute 'makeSuite'
29/69 Test #29: test_python_binding ...........................***Failed    0.42 sec


According to https://docs.python.org/3.13/whatsnew/3.13.html:
Removed the following unittest functions, deprecated in Python 3.11:
- unittest.findTestCases()
- unittest.makeSuite()
- unittest.getTestCaseNames()

For the build logs, see:
https://download.copr.fedorainfracloud.org/results/@python/python3.13/fedora-rawhide-x86_64/06919435-libsbml/builder-live.log.gz

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

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 Fedora Update System 2024-05-19 22:09:48 UTC
FEDORA-2024-1591512660 (libsbml-5.20.2-10.fc41) has been submitted as an update to Fedora 41.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-1591512660

Comment 2 Fedora Update System 2024-05-19 22:14:11 UTC
FEDORA-2024-1591512660 (libsbml-5.20.2-10.fc41) has been pushed to the Fedora 41 stable repository.
If problem still persists, please make note of it in this bug report.