Python 3.15.0 on Ubuntu is missing the C _decimal module
評估
這個 Issue 還沒有評估資料。
描述
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.
- 主要語言
- TypeScript
- 星號
- 2.3k
- 分支
- 752
- 平均合併
- 22 天 15 小時
- 30 天內合併 PR
- 1
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 沒有貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
actions/setup-python 的其他 Issue
-
bug needs triage
難度 3/5 1-2 天 新手友好度 32/100
actions/setup-python#1392 · 1 則留言 · 4 個 reaction ·
-
難度 3/5 1-2 天 新手友好度 57/100
actions/setup-python#1390 · 2 則留言 ·
-
難度 4/5 3-5 天 新手友好度 30/100
actions/setup-python#1388 · 1 則留言 ·
-
standard pip version is below 26.2.2可能已有人在做 @v-gowridurgad 於 21 天前認領。 未關閉bug
難度 4/5 3-5 天 新手友好度 38/100
actions/setup-python#1380 · 11 則留言 · 已指派 1 人 ·
-
bug
難度 4/5 3-5 天 新手友好度 55/100
actions/setup-python#1348 · 6 則留言 ·
查看 actions/setup-python 的全部 Issue
相似的 Issue
-
db-d1-sqlite: upsert is aliased to updateOne, so payload.kv.set never inserts new keys可能已有人在做 @pcbeingused333 今天認領。 未關閉Bug db: d1-sqlite Payload OSS
難度 2/5 1-3 小時 新手友好度 76/100
payloadcms/payload#19766 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 68/100
device-management-toolkit/sample-web-ui#3711 ·
維護者通常 1 天內回覆
-
bug impact:low Team: SecuritySolution Team:Defend Workflows v9.6.0
難度 2/5 1-3 小時 新手友好度 72/100
elastic/kibana#306401 · 3 則留言 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 68/100
agentes-chat/agentes-chat#927 ·
維護者通常 1 天內回覆
-
Closing a pinned tab jumps to the Tabs section instead of the next open pinned tab可能已有人在做 @seenimohamed 今天認領。 未關閉bug
難度 2/5 1-3 小時 新手友好度 78/100
ardia-browser/ardia#2769 ·
維護者通常 1 天內回覆