sha2 module still referenced even if not built (3.12.11)
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 68/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Tranquilla
- Stack tecnologico
- python, zig
- Ambito
- build-system
Direzione di ricerca
Inizia da build.zig, dove il modulo .sha2 è disabilitato per impostazione predefinita, quindi esamina i riferimenti a hashlib.py e random.py di Python 3.12 mostrati nel traceback. Ricompila e usa il modules check della REPL per verificare che il supporto sha2 disabilitato non causi più eccezioni né riferimenti a codice _sha2 non disponibile.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
The module .sha2 is explicitly disabled in build.zig by default. The build completes fine, but when checking for modules in the REPL, throws exceptions:
help> modules
Please wait a moment while I gather a list of all available modules...
ERROR:root:code for hash sha224 was not found.
Traceback (most recent call last):
File "/mnt/mimic/pkg/python/lib/python3.12/random.py", line 68, in <module>
from _sha2 import sha512 as _sha512
ModuleNotFoundError: No module named '_sha2'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/mnt/mimic/pkg/python/lib/python3.12/hashlib.py", line 245, in <module>
globals()[__func_name] = __get_hash(__func_name)
^^^^^^^^^^^^^^^^^^^^^^^
File "/mnt/mimic/pkg/python/lib/python3.12/hashlib.py", line 123, in __get_builtin_constructor
raise ValueError('unsupported hash type ' + name)
ValueError: unsupported hash type sha224
ERROR:root:code for hash sha256 was not found.
Traceback (most recent call last):
File "/mnt/mimic/pkg/python/lib/python3.12/random.py", line 68, in <module>
from _sha2 import sha512 as _sha512
ModuleNotFoundError: No module named '_sha2'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/mnt/mimic/pkg/python/lib/python3.12/hashlib.py", line 245, in <module>
globals()[__func_name] = __get_hash(__func_name)
^^^^^^^^^^^^^^^^^^^^^^^
File "/mnt/mimic/pkg/python/lib/python3.12/hashlib.py", line 123, in __get_builtin_constructor
raise ValueError('unsupported hash type ' + name)
ValueError: unsupported hash type sha256
ERROR:root:code for hash sha384 was not found.
Traceback (most recent call last):
File "/mnt/mimic/pkg/python/lib/python3.12/random.py", line 68, in <module>
from _sha2 import sha512 as _sha512
ModuleNotFoundError: No module named '_sha2'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/mnt/mimic/pkg/python/lib/python3.12/hashlib.py", line 245, in <module>
globals()[__func_name] = __get_hash(__func_name)
^^^^^^^^^^^^^^^^^^^^^^^
File "/mnt/mimic/pkg/python/lib/python3.12/hashlib.py", line 123, in __get_builtin_constructor
raise ValueError('unsupported hash type ' + name)
ValueError: unsupported hash type sha384
ERROR:root:code for hash sha512 was not found.
Traceback (most recent call last):
File "/mnt/mimic/pkg/python/lib/python3.12/random.py", line 68, in <module>
from _sha2 import sha512 as _sha512
ModuleNotFoundError: No module named '_sha2'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/mnt/mimic/pkg/python/lib/python3.12/hashlib.py", line 245, in <module>
globals()[__func_name] = __get_hash(__func_name)
^^^^^^^^^^^^^^^^^^^^^^^
File "/mnt/mimic/pkg/python/lib/python3.12/hashlib.py", line 123, in __get_builtin_constructor
raise ValueError('unsupported hash type ' + name)
ValueError: unsupported hash type sha512
- Lingua principale
- Zig
- Stelle
- 19
- Fork
- 7
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di allyourcodebase/cpython
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
allyourcodebase/cpython#10 · 1 reazione ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
allyourcodebase/cpython#8 · 2 commenti ·
Tutte le issue di allyourcodebase/cpython
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
freedomofpress/dangerzone#1562 ·
-
Mend: dependency security vulnerability status: needs triage 🕵️♀️
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
carbon-design-system/ibm-products#9907 ·
-
intake mcp-intake needs-ac needs-human-review priority:medium type:feature
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
Ikalus1988/MisakaNet#2102 · 2 commenti ·
-
onnx-ir re-exports ModelProto and GraphProto but not NodeProto, AttributeProto and AttributeType Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
llvm/lighthouse#283 ·