Python 3.15.0 on Ubuntu is missing the C _decimal module
Bewertung
Dieses Issue wurde noch nicht bewertet.
Beschreibung
Description:
The Ubuntu builds of Python 3.15.0 don't include the C _decimal extension module. import _decimal fails, and decimal silently falls back to the pure Python. That fallback is much slower and can't handle numbers with more than 4300 digits. Python 3.14.8 on the same runners has _decimal.
The cause looks like the Ubuntu builder in actions/python-versions. ubuntu-python-builder.psm1 doesn't install libmpdec-dev. Up to 3.14, CPython's configure fell back to its bundled copy of libmpdec. In 3.15 it skips _decimal instead when it can't find the system library. Adding libmpdec-dev to the builder's package list and rebuilding 3.15.0 should fix it.
https://docs.python.org/3/whatsnew/3.15.html#build-changes
Removed implicit fallback to the bundled copy of the libmpdec library. Now this should be explicitly enabled with --with-system-libmpdec set to no or with --without-system-libmpdec. (Contributed by Sergey B Kirpichev in gh-115119.)
Action version:
actions/[email protected]
Platform:
- Ubuntu
- macOS
- Windows
Runner type:
- Hosted
- Self-hosted
Tools version:
3.15.0
Repro steps:
runs-on: ubuntu-24.04
steps:
- uses: actions/[email protected]
with:
python-version: '3.15.0'
- run: python -c "import _decimal"
Expected behavior:
import _decimal succeeds, as it does on Python 3.14 and on the Windows build of 3.15.0.
Actual behavior:
ModuleNotFoundError: Standard library module _decimal was not found. Code that uses decimal runs on _pydecimal, and values over 4300 digits raise ValueError: Exceeds the limit (4300 digits) for integer string conversion.
- Vorherrschende Sprache
- TypeScript
- Sterne
- 2.3k
- Forks
- 752
- Ø Merge
- 22 T. 15 Std.
- Gemergte PRs (30 T.)
- 1
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Kein Beitragsleitfaden
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus actions/setup-python
-
bug needs triage
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 32/100
actions/setup-python#1392 · 1 Kommentar · 4 Reaktionen ·
-
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 57/100
actions/setup-python#1390 · 2 Kommentare ·
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 30/100
actions/setup-python#1388 · 1 Kommentar ·
-
standard pip version is below 26.2.2Evtl. vergeben @v-gowridurgad hat das vor 21 Tagen übernommen. Offenbug
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 38/100
actions/setup-python#1380 · 11 Kommentare · 1 zugewiesene Person ·
-
bug
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 55/100
actions/setup-python#1348 · 6 Kommentare ·
Alle Issues in actions/setup-python
Ähnliche Issues
-
db-d1-sqlite: upsert is aliased to updateOne, so payload.kv.set never inserts new keysEvtl. vergeben @pcbeingused333 hat das heute übernommen. OffenBug db: d1-sqlite Payload OSS
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
payloadcms/payload#19766 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
device-management-toolkit/sample-web-ui#3711 ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug impact:low Team: SecuritySolution Team:Defend Workflows v9.6.0
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
elastic/kibana#306401 · 3 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
agentes-chat/agentes-chat#927 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Closing a pinned tab jumps to the Tabs section instead of the next open pinned tabEvtl. vergeben @seenimohamed hat das heute übernommen. Offenbug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
ardia-browser/ardia#2769 ·
Maintainer antworten meist innerhalb von 1 Tag