allyourcodebase / allyourcodebase/cpython

sha2 module still referenced even if not built (3.12.11)

Offen
#17 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Zig
Sterne
19
Forks
7
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

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
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
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
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
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
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
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
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
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
```

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.