# Ongoing packages' rebuild with Python 3.13 in Fedora

**URL:** <https://discuss.python.org/t/ongoing-packages-rebuild-with-python-3-13-in-fedora/38134>\
**Category:** Core Development\
**Created:** [November 7, 2023, 12:29pm UTC](https://discuss.python.org/t/ongoing-packages-rebuild-with-python-3-13-in-fedora/38134 "2023-11-07T12:29:14Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![ksurma](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/ksurma/32/30818_2.png) [@ksurma](https://discuss.python.org/u/ksurma)\
**Post date:** [November 7, 2023, 12:29pm UTC](https://discuss.python.org/t/ongoing-packages-rebuild-with-python-3-13-in-fedora/38134/1 "2023-11-07T12:29:14Z")

</div>

Hello,  
In Fedora, we’re rebuilding a set of around 4000 packages with Python 3.13.0 alpha 1.  
Here’s the current status.

- ~2600 packages were rebuilt successfully so far.
- ~1400 packages were not rebuilt yet, because their dependencies didn’t build.
  - current biggest blocker: [numpy](https://github.com/numpy/numpy/issues/25035) (blocks ~500 packages)
  - previous biggest blocker: [Cython](https://github.com/cython/cython/pull/5767) (fixed in Cython and [CPython](https://github.com/python/cpython/pull/111162) – we’ve backported both changes)

- ~220 failed to build. This includes test failures, for packages where we run the test suite.
  - Some failures were already fixed; 158 still fail to build

Here is a rough breakdown of the failures we encountered.

## Removal of C APIs with names prefixed by `_Py` or `_PY`

5 fail with: implicit declaration of function ‘\_Py\_IDENTIFIER‘: `python-zodbpickle`, `python-drgn`, `btrfs-progs`, `python3-typed_ast`, `python-multidict`

5 fail with: ‘\_PyThreadState\_UncheckedGet’ was not declared in this scope: `python-wsaccel`, `pybind11`, `pythia8`, `HepMC3`, `python-cffi`

4 fail with: implicit declaration of function ‘\_PyUnicode\_AsString: `python-gstreamer1`, `kernel-tools`, `python-cffi`, `python-cvxopt`

3 fail with: ‘\_PyLong\_Copy’ was not declared in this scope; did you mean ‘PyLong\_Type’?: `python-pyroaring`, `fonttools`, `python-cradox`

3 fail with: ‘\_PyObject\_EXTRA\_INIT’ undeclared here (not in a function): `python-dukpy`, `pysvn`, `python-cbor2`

2 fail with: implicit declaration of function ‘\_PyObject\_CallMethodId’: `python-multidict`, `python3-typed_ast`

2 fail with: implicit declaration of function ‘\_PyStack\_AsDict’: `setools`, `python-asyncmy`

2 fail with: implicit declaration of functions ‘\_PyUnicodeWriter\_Init’, ‘\_PyUnicodeWriter\_WriteASCIIString’, ‘\_PyUnicodeWriter\_Finish’, ‘\_PyUnicodeWriter\_Dealloc’, : `python-recordclass`, `python-immutables`

2 fail with: implicit declaration of function ‘\_PyLong\_FromByteArray’, ‘\_PyLong\_AsByteArray’: `python-wsaccel`, `python-drgn`

2 fail with: implicit declaration of function ‘\_PyLong\_New’: `python-crypto`, `python-gmpy2`

2 fail with: implicit declaration of function ‘\_PyObject\_GetAttrId’: `python-drgn`, `python3-typed_ast`

1 fails with: implicit declaration of functions ‘\_PyDict\_GetItem\_KnownHash’, ‘\_PyVectorcall\_Function’: `python-wsaccel`

2 fail with: implicit declaration of function ‘\_PyDict\_NewPresized’: `python-wsaccel`, `mercurial`

1 fails with: implicit declaration of function ‘\_PyList\_Extend’: `python-pyrsistent`

1 fails with: implicit declaration of function ‘\_PyUnicodeWriter\_WriteChar’: `python-recordclass`

1 fails with: implicit declaration of function ‘\_PyThread\_CurrentFrames’: `mod_wsgi`

1 fails with: implicit declaration of function ‘\_PyLong\_Sign’, ‘\_Py\_HashPointer’, ‘\_PyErr\_WriteUnraisable’: `python-cffi`

## Removals of deprecated C APIs

21 fail with: implicit declaration of function ‘PyEval\_InitThreads’: `grpc`,  
`gnumeric`, `gnofract4d`, `collectd`, `python-cradox`, `libsigrokdecode`, `lldb`, `profanity`, `python-subvertpy`, `pyotherside`, `sigil`, `python-simpleaudio`, `OpenIPMI`, `libesedb`, `libcec`, `python-gphoto2`, `python-bsddb3`, `python-confluent-kafka`, `python-alsaaudio`, `freeradius`, `pyliblo`

17 fail with: missing \<unistd.h\> declaration: `onboard`, `dbus-python`, `opae`, `borgbackup`, `python-schedutils`, `mercurial`, `python-maxminddb`, `rdiff-backup`, `python-zstandard`, `python-pywayland`, `python-kerberos`, `pyicu`, `python-apt`, `py-spidev`, `python-netifaces`, `i2c-tools`, `python-yara`

13 fail with: implicit declaration of function ‘PyEval\_CallObject’; did you mean ‘PyObject\_CallObject’?: `dionaea`, `audit`, `gdcm`, `jsonnet`, `med`, `newt`, `pcapy`, `python-pivy`, `recoll`, `python-cups`, `m2crypto`, `libsolv`, `libcec`

8 fail with: implicit declaration of function ‘PySys\_SetArgv’: `python-caja`, `nemo-extensions`, `gnumeric`, `nautilus-python`, `collectd`, `remmina`, `kernel-tools`, `pyotherside`

8 fail with: missing \<ctype.h\> declaration: `pyodbc`, `python-cx-oracle`, `proxmark3`, `python-gammu`, `python-igraph`, `sudo`, `python-cffi`, `python-bitstruct`

4 fail with: implicit declaration of function `Py_SetProgramName`: `glade`, `dionaea`, `fontforge`, `perl-Inline-Python`

2 fail with: implicit declaration of function PySys\_SetArgvEx: `glade`, `pyotherside`

2 fail with: implicit declaration of function ‘Py\_TRASHCAN\_SAFE\_BEGIN’, ‘Py\_TRASHCAN\_SAFE\_END’: `python-multidict`, `python-pyrsistent`

2 fail with: ‘PyEval\_CallObject’ was not declared in this scope; did you mean ‘PyObject\_CallObject’?: `vrpn`, `libprelude`

1 fails with: implicit declaration of function ‘PyObject\_AsWriteBuffer’, ‘PyObject\_AsCharBuffer’: `cryptlib`

1 fails with: implicit declaration of function ‘PyUnicode\_AS\_DATA’: `python-alsaaudio`

1 fails with: implicit declaration of function ‘PyEval\_AcquireLock’, ‘PyEval\_ReleaseLock’: `freeradius`

1 fails with: implicit declaration of function ‘PyUnicode\_GetSize’, ‘PyUnicode\_AS\_UNICODE’: `python-scss`

1 fails with: #error “this header requires Py\_BUILD\_CORE define”: `python-greenlet`

1 fails with: ‘PyCFunction\_Call’ was not declared in this scope: `PyQt4`

1 fails with: implicit declaration of function ‘PyObject\_AsReadBuffer’: `python-intbitset`

1 fails with: ‘PySys\_SetPath’ was not declared in this scope: `insight`

## Optimization changes impact

4 fail with docstring indentation not matching the expected: `python-parameterized`, `python-oauthlib`, `python-zope-interface`, `python-toolz`

## Removal of Python modules and functions

24 fail with 2to3 removal: `swig`, `uwsgi`, `wavextract`, `workrave`, `tuxpaint-stamps`, `python-yaql`, `libsbml`, `mftrace`, `b43-tools`, `TeXmacs`, `fail2ban`, `flow-tools`, `gnu-free-fonts`, `octave-miscellaneous`, `python-MultipartPostHandler2`, `python-amico`, `python-demjson`, `python-mglob`, `python-minimock`, `python-nose`, `python-openoffice`, `python-openopt`, `python-straight-plugin`, `python-x2go`

10 fail with unittest-related removals: `python-lxml`, `python-ptyprocess`, `python-random2`, `python-transaction`, `python-genshi`, `python-zope-i18nmessageid`, `pyserial`, `python-jsonpointer`, `python-iniparse`, `python-defusedxml`

5 fail with: AttributeError: module ‘importlib.resources’ has no attribute ‘read\_text’, ‘path’, ‘open\_binary’ or ‘read\_binary’: `pre-commit`, `numpy`, `python-netaddr`, `meson`, `python-installer`

5 fail with: ‘Logger’ object has no attribute ‘warn’: `python-grabbit`, `python-etcd`, `python-idstools`, `pyzor`, `mom`

2 fail with: ImportError: cannot import name ‘resetlocale’ from ‘locale’: `python-fdb`, `pykickstart`

1 fails with: ImportError: cannot import name ‘re’ from ‘typing’: `python-ndjson-testrunner`

1 fails with implicit declaration of function ‘getpid’ / ‘gettimeofday’: `qpid-dispatch`

---

_[View the full topic](https://discuss.python.org/t/ongoing-packages-rebuild-with-python-3-13-in-fedora/38134)._
