Python 3.15.0 on Ubuntu is missing the C _decimal module
Évaluation
Cette issue n'a pas encore été évaluée.
Description
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.
- Langage dominant
- TypeScript
- Étoiles
- 2.3k
- Forks
- 752
- Merge moyen
- 22 j 15 h
- PR mergées (30 j)
- 1
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Propose un modèle de pull request
- Aucun guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de actions/setup-python
-
bug needs triage
Difficulté 3/5 1-2 jours Accessibilité débutants 32/100
actions/setup-python#1392 · 1 commentaire · 4 réactions ·
-
Difficulté 3/5 1-2 jours Accessibilité débutants 57/100
actions/setup-python#1390 · 2 commentaires ·
-
Difficulté 4/5 3-5 jours Accessibilité débutants 30/100
actions/setup-python#1388 · 1 commentaire ·
-
standard pip version is below 26.2.2Peut-être pris @v-gowridurgad l’a pris il y a 21 jours. Ouvertebug
Difficulté 4/5 3-5 jours Accessibilité débutants 38/100
actions/setup-python#1380 · 11 commentaires · 1 personne assignée ·
-
bug
Difficulté 4/5 3-5 jours Accessibilité débutants 55/100
actions/setup-python#1348 · 6 commentaires ·
Toutes les issues de actions/setup-python
Issues similaires
-
db-d1-sqlite: upsert is aliased to updateOne, so payload.kv.set never inserts new keysPeut-être pris @pcbeingused333 l’a pris aujourd’hui. OuverteBug db: d1-sqlite Payload OSS
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
payloadcms/payload#19766 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
device-management-toolkit/sample-web-ui#3711 ·
Les mainteneurs répondent en général sous 1 jour
-
bug impact:low Team: SecuritySolution Team:Defend Workflows v9.6.0
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
elastic/kibana#306401 · 3 commentaires ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
agentes-chat/agentes-chat#927 ·
Les mainteneurs répondent en général sous 1 jour
-
Closing a pinned tab jumps to the Tabs section instead of the next open pinned tabPeut-être pris @seenimohamed l’a pris aujourd’hui. Ouvertebug
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
ardia-browser/ardia#2769 ·
Les mainteneurs répondent en général sous 1 jour