Bug 2262374 - libsbml fails to build with Python 3.13: AttributeError: module 'unittest' has no attribute 'makeSuite'
Summary: libsbml fails to build with Python 3.13: AttributeError: module 'unittest' ha...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: libsbml
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Zbigniew Jędrzejewski-Szmek
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: PYTHON3.13
TreeView+ depends on / blocked
 
Reported: 2024-02-02 09:24 UTC by Karolina Surma
Modified: 2024-05-19 22:14 UTC (History)
5 users (show)

Fixed In Version: libsbml-5.20.2-10.fc41
Clone Of:
Environment:
Last Closed: 2024-05-19 22:14:11 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Fedora Package Sources libsbml pull-request 7 0 None None None 2024-04-18 20:54:41 UTC

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.


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