`_overlapped` module cannot be imported without socket support
Đang mở
Chưa có ai nhận issue này.
extension-modules
OS-windows
type-bug
- Ngôn ngữ chính
- Python
- Star
- 77.2k
- Fork
- 35.9k
- Chỉ số merge pull request
- Chỉ số pull request đang chờ
Mô tả
Bug report
Bug description:
To reproduce, boot Windows 11 into minimal safe mode and run this
import asyncio
It causes this error
Traceback (most recent call last):
File "C:\projects\asyncio_test_safe_mode.py", line 1, in <module>
import asyncio
File "c:\python\Lib\asyncio\__init__.py", line 42, in <module>
from .windows_events import *
File "c:\python\Lib\asyncio\windows_events.py", line 8, in <module>
import _overlapped
OSError: [WinError 10050] A socket operation encountered a dead network
System information:
- Python 3.11.10 (main, Feb 17 2025, 07:07:12) [MSC v.1942 32 bit (Intel)] on win32
- Microsoft Windows 11 64-bit 23H2 22631.4890
The greater context is that it breaks PyGObject and BleachBit.
CPython versions tested on:
3.11
Operating systems tested on:
Windows
Hướng dẫn đóng góp
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.
Hướng nghiên cứu
Bắt đầu với asyncio/init.py và asyncio/windows_events.py, sau đó tái hiện thao tác import trong chế độ an toàn tối thiểu của Windows 11 để kiểm tra lỗi _overlapped. Bản sửa lỗi phải cho phép import asyncio hoàn tất khi không có hỗ trợ socket, đồng thời vẫn giữ nguyên hành vi asyncio bình thường trên Windows.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- python
- Lĩnh vực
- operating-systems
- Loại issue
- Lỗi
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 35/100