_uuid C extension module missing from libpython3.12-stdlib on Ubuntu 24.04 (Noble)
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| python3.12 (Ubuntu) |
New
|
Undecided
|
Unassigned | ||
| python3.14 (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Bug Description
The _uuid C extension module is not included in the libpython3.
package (3.12.3-
Impact not on earlier versions using earlier versions of Ubuntu LTS, such as 22.04.
This module is built by CPython's when uuid-dev (libuuid headers) is available at compile time. It provides the generate_
Without _uuid.cpython-
Steps to reproduce:
1. Fresh Ubuntu 24.04 install with python3.12 (default)
2. apt install uuid-runtime
3. systemctl start uuidd
4. python3 -c "import uuid; print(uuid.
Expected: SafeUUID.safe
Actual: SafeUUID.unknown
Cause: _uuid.cpython-
It is a critical feature for services that spawn multiple processes and need to create unique incremental UUIDs, such as UUID1 in this case. UUID4 does not solve the incremental part.

looks like uuid-dev is only an implicit build dependency. in 3.14, it's pulled in from tk-dev -> fontconfig-dev. Having that build dependency explicit, should fix it.