WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED DUPLICATE of
bug 281180
280224
mod_pywebsocket: module 'ssl' has no attribute 'wrap_socket' with Python 3.12
https://bugs.webkit.org/show_bug.cgi?id=280224
Summary
mod_pywebsocket: module 'ssl' has no attribute 'wrap_socket' with Python 3.12
Fujii Hironori
Reported
2024-09-23 15:31:39 PDT
I'm observing a PyWebSocket server error with Python 3.12 on Windows. [2024-09-23 23:24:05,612] [CRITICAL] root: mod_pywebsocket: module 'ssl' has no attribute 'wrap_socket' [2024-09-23 23:24:05,612] [CRITICAL] root: mod_pywebsocket: Traceback (most recent call last): File "C:\webkit\wb\LayoutTests\imported\w3c\web-platform-tests\tools\third_party\pywebsocket3\mod_pywebsocket\standalone.py", line 480, in _main server = WebSocketServer(options) ^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\webkit\wb\LayoutTests\imported\w3c\web-platform-tests\tools\third_party\pywebsocket3\mod_pywebsocket\websocket_server.py", line 119, in __init__ self._create_sockets() File "C:\webkit\wb\LayoutTests\imported\w3c\web-platform-tests\tools\third_party\pywebsocket3\mod_pywebsocket\websocket_server.py", line 160, in _create_sockets socket_ = ssl.wrap_socket( ^^^^^^^^^^^^^^^ AttributeError: module 'ssl' has no attribute 'wrap_socket'
Attachments
Add attachment
proposed patch, testcase, etc.
Fujii Hironori
Comment 1
2024-09-23 15:32:04 PDT
We need this fix. Fix pywebsocket3 to support Python 3.12 · web-platform-tests/wpt@efa4a99
https://github.com/web-platform-tests/wpt/commit/efa4a99b8dde1d9ab572efb9e1757e6900289bed
Fujii Hironori
Comment 2
2024-09-23 17:54:42 PDT
https://github.com/web-platform-tests/wpt/commit/a7a594d8c03a850fd99bab1fd85bb6fe310081a2
renamed them. rename tools/third_party/pywebsocket3/{mod_pywebsocket => pywebsocket3}/__init__.py (97%) rename tools/third_party/pywebsocket3/{mod_pywebsocket => pywebsocket3}/_stream_exceptions.py (100%) rename tools/third_party/pywebsocket3/{mod_pywebsocket => pywebsocket3}/common.py (99%) rename tools/third_party/pywebsocket3/{mod_pywebsocket => pywebsocket3}/dispatch.py (98%) rename tools/third_party/pywebsocket3/{mod_pywebsocket => pywebsocket3}/extensions.py (99%) rename tools/third_party/pywebsocket3/{mod_pywebsocket => pywebsocket3}/handshake/__init__.py (93%) rename tools/third_party/pywebsocket3/{mod_pywebsocket => pywebsocket3}/handshake/base.py (97%) rename tools/third_party/pywebsocket3/{mod_pywebsocket => pywebsocket3}/handshake/hybi.py (95%) rename tools/third_party/pywebsocket3/{mod_pywebsocket => pywebsocket3}/http_header_util.py (99%) rename tools/third_party/pywebsocket3/{mod_pywebsocket => pywebsocket3}/memorizingfile.py (99%) rename tools/third_party/pywebsocket3/{mod_pywebsocket => pywebsocket3}/msgutil.py (96%) rename tools/third_party/pywebsocket3/{mod_pywebsocket => pywebsocket3}/request_handler.py (98%) rename tools/third_party/pywebsocket3/{mod_pywebsocket => pywebsocket3}/server_util.py (97%) rename tools/third_party/pywebsocket3/{mod_pywebsocket => pywebsocket3}/standalone.py (96%) rename tools/third_party/pywebsocket3/{mod_pywebsocket => pywebsocket3}/stream.py (98%) rename tools/third_party/pywebsocket3/{mod_pywebsocket => pywebsocket3}/util.py (98%) rename tools/third_party/pywebsocket3/{mod_pywebsocket => pywebsocket3}/websocket_server.py (98%)
Fujii Hironori
Comment 3
2024-09-23 18:42:14 PDT
Pull request:
https://github.com/WebKit/WebKit/pull/34138
Radar WebKit Bug Importer
Comment 4
2024-09-30 15:32:15 PDT
<
rdar://problem/137002096
>
Fujii Hironori
Comment 5
2024-10-14 17:46:28 PDT
*** This bug has been marked as a duplicate of
bug 281180
***
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug