Bug 2272955 - urh fails to build with Python 3.13: error: implicit declaration of function ‘PyEval_InitThreads’
Summary: urh fails to build with Python 3.13: error: implicit declaration of function ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: urh
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jaroslav Škarvada
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: PYTHON3.13
TreeView+ depends on / blocked
 
Reported: 2024-04-03 13:18 UTC by Karolina Surma
Modified: 2024-04-04 13:54 UTC (History)
3 users (show)

Fixed In Version: urh-2.9.6-4.fc41
Clone Of:
Environment:
Last Closed: 2024-04-04 13:54:20 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Karolina Surma 2024-04-03 13:18:09 UTC
urh fails to build with Python 3.13.0a5.

src/urh/dev/native/lib/airspy.cpp: In function ‘int __pyx_f_3urh_3dev_6native_3lib_6airspy_start_rx(PyObject*, int)’:
src/urh/dev/native/lib/airspy.cpp:21308:3: error: ‘PyEval_InitThreads’ was not declared in this scope; did you mean ‘PyEval_SaveThread’?
21308 |   PyEval_InitThreads();
      |   ^~~~~~~~~~~~~~~~~~
      |   PyEval_SaveThread

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

Remove PyEval_InitThreads() and PyEval_ThreadsInitialized() functions, deprecated in Python 3.9.
Since Python 3.7, Py_Initialize() always creates the GIL:
calling PyEval_InitThreads() did nothing and PyEval_ThreadsInitialized() always returned non-zero.
(Contributed by Victor Stinner in https://github.com/python/cpython/issues/105182.)


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/07221472-urh/

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

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-04-04 13:49:24 UTC
FEDORA-2024-3a9e42a9a2 (urh-2.9.6-4.fc41) has been submitted as an update to Fedora 41.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-3a9e42a9a2

Comment 2 Fedora Update System 2024-04-04 13:54:20 UTC
FEDORA-2024-3a9e42a9a2 (urh-2.9.6-4.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.