https://bugzilla.redhat.com/show_bug.cgi?id=2250671
Bug ID: 2250671 Summary: python-numexpr fails to build with Python 3.13: AttributeError: module 'unittest' has no attribute makeSuite Product: Fedora Version: rawhide Status: NEW Component: python-numexpr Assignee: jonathan@almalinux.org Reporter: ksurma@redhat.com QA Contact: extras-qa@fedoraproject.org CC: epel-packagers-sig@lists.fedoraproject.org, jonathan@almalinux.org, ksurma@redhat.com, mhroncok@redhat.com, python-packagers-sig@lists.fedoraproject.org, thibault@north.li, zbyszek@in.waw.pl Blocks: 2244836 (PYTHON3.13) Target Milestone: --- Classification: Fedora
python-numexpr fails to build with Python 3.13.0a1.
AttributeError: module 'unittest' has no attribute 'makeSuite' 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()
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-ra...
For all our attempts to build python-numexpr with Python 3.13, see: https://copr.fedorainfracloud.org/coprs/g/python/python3.13/package/python-n...
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.
Referenced Bugs:
https://bugzilla.redhat.com/show_bug.cgi?id=2244836 [Bug 2244836] Python 3.13
https://bugzilla.redhat.com/show_bug.cgi?id=2250671
--- Comment #2 from Karolina Surma ksurma@redhat.com --- Upstream issue: https://github.com/pydata/numexpr/issues/486 Downstream workaround: https://src.fedoraproject.org/rpms/python-numexpr/pull-request/2
https://bugzilla.redhat.com/show_bug.cgi?id=2250671
--- Comment #3 from Karolina Surma ksurma@redhat.com --- When mitigated, this happens multiple times with beta1:
====================================================================== ERROR: test_multithread (numexpr.tests.test_numexpr.test_threading.test_multithread) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/python-numexpr-2.8.5-build/numexpr-2.8.5/build/lib.linux-x86_64-cpython-313/numexpr/tests/test_numexpr.py", line 1072, in test_multithread work(10) # warm compilation cache ~~~~^^^^ File "/builddir/build/BUILD/python-numexpr-2.8.5-build/numexpr-2.8.5/build/lib.linux-x86_64-cpython-313/numexpr/tests/test_numexpr.py", line 1070, in work evaluate('a+a') ~~~~~~~~^^^^^^^ File "/builddir/build/BUILD/python-numexpr-2.8.5-build/numexpr-2.8.5/build/lib.linux-x86_64-cpython-313/numexpr/necompiler.py", line 818, in evaluate arguments = getArguments(names, local_dict, global_dict) File "/builddir/build/BUILD/python-numexpr-2.8.5-build/numexpr-2.8.5/build/lib.linux-x86_64-cpython-313/numexpr/necompiler.py", line 751, in getArguments local_dict.clear() ^^^^^^^^^^^^^^^^ AttributeError: 'FrameLocalsProxy' object has no attribute 'clear'
----------------------------------------------------------------------
https://bugzilla.redhat.com/show_bug.cgi?id=2250671
Karolina Surma ksurma@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Link ID| |Github | |pydata/numexpr/issues/486 | |Github | |pydata/numexpr/issues/488
https://bugzilla.redhat.com/show_bug.cgi?id=2250671
Karolina Surma ksurma@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Severity|unspecified |urgent Priority|unspecified |urgent
--- Comment #4 from Karolina Surma ksurma@redhat.com --- This blocks over 80 packages in the upcoming Python mass rebuild.
https://bugzilla.redhat.com/show_bug.cgi?id=2250671
Miro Hrončok mhroncok@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |POST Link ID| |Fedora Package Sources | |python-numexpr/pull-request | |/2
--- Comment #5 from Miro Hrončok mhroncok@redhat.com --- I have updated https://src.fedoraproject.org/rpms/python-numexpr/pull-request/2
https://bugzilla.redhat.com/show_bug.cgi?id=2250671
Zbigniew Jędrzejewski-Szmek zbyszek@in.waw.pl changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed In Version| |python-numexpr-2.8.5-6.fc41 Status|POST |CLOSED Resolution|--- |RAWHIDE Last Closed| |2024-06-10 10:26:47
--- Comment #6 from Zbigniew Jędrzejewski-Szmek zbyszek@in.waw.pl --- Thank you.
epel-packagers-sig@lists.fedoraproject.org