Python 3.15.0 on Ubuntu is missing the C _decimal module
Assessment
This issue has not been assessed yet.
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.
- Dominant language
- TypeScript
- Stars
- 2.3k
- Forks
- 752
- Avg merge
- 22d 15h
- Merged PRs (30d)
- 1
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- No contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from actions/setup-python
-
bug needs triage
Difficulty 3/5 1-2 days Newbie friendliness 32/100
actions/setup-python#1392 · 1 comment · 4 reactions ·
-
Difficulty 3/5 1-2 days Newbie friendliness 57/100
actions/setup-python#1390 · 2 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 30/100
actions/setup-python#1388 · 1 comment ·
-
standard pip version is below 26.2.2Possibly taken @v-gowridurgad claimed this 21 days ago. Openbug
Difficulty 4/5 3-5 days Newbie friendliness 38/100
actions/setup-python#1380 · 11 comments · 1 assignee ·
-
bug
Difficulty 4/5 3-5 days Newbie friendliness 55/100
actions/setup-python#1348 · 6 comments ·
All issues in actions/setup-python
Similar issues
-
db-d1-sqlite: upsert is aliased to updateOne, so payload.kv.set never inserts new keysPossibly taken @pcbeingused333 claimed this today. OpenBug db: d1-sqlite Payload OSS
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
payloadcms/payload#19766 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
device-management-toolkit/sample-web-ui#3711 ·
Maintainers usually reply within 1 day
-
bug impact:low Team: SecuritySolution Team:Defend Workflows v9.6.0
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
elastic/kibana#306401 · 3 comments ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
agentes-chat/agentes-chat#927 ·
Maintainers usually reply within 1 day
-
Closing a pinned tab jumps to the Tabs section instead of the next open pinned tabPossibly taken @seenimohamed claimed this today. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
ardia-browser/ardia#2769 ·
Maintainers usually reply within 1 day