sha2 module still referenced even if not built (3.12.11)
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 68/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Ít trao đổi
- Công nghệ
- python, zig
- Lĩnh vực
- build-system
Hướng nghiên cứu
Bắt đầu trong build.zig, nơi mô-đun .sha2 bị tắt theo mặc định, sau đó kiểm tra các tham chiếu đến hashlib.py và random.py của Python 3.12 được hiển thị trong traceback. Build lại và sử dụng modules check của REPL để xác minh rằng việc tắt hỗ trợ sha2 không còn gây ra các exception hoặc tham chiếu đến mã _sha2 không khả dụng.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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
- Ngôn ngữ chính
- Zig
- Star
- 19
- Fork
- 7
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của allyourcodebase/cpython
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
allyourcodebase/cpython#10 · 1 reaction ·
-
Changes required for > v0.14.0? Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
allyourcodebase/cpython#8 · 2 bình luận ·
Tất cả issue của allyourcodebase/cpython
Issue tương tự
-
type/automation type/tech-debt
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
-
priority: p3
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
googleapis/librarian#7636 ·
-
Update gh-dash to 4.26.0 Đang mởpackage-update
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
oSoWoSo/vOid_Community_repOsitory#147 · 1 bình luận ·
-
Builders
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100