Bug 280224
| Summary: | mod_pywebsocket: module 'ssl' has no attribute 'wrap_socket' with Python 3.12 | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Fujii Hironori <fujii.hironori> |
| Component: | Tools / Tests | Assignee: | Fujii Hironori <fujii.hironori> |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | Normal | CC: | webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| See Also: | https://bugs.webkit.org/show_bug.cgi?id=275992 | ||
| Bug Depends on: | 281180 | ||
| Bug Blocks: | |||
Fujii Hironori
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
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
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
Pull request: https://github.com/WebKit/WebKit/pull/34138
Radar WebKit Bug Importer
<rdar://problem/137002096>
Fujii Hironori
*** This bug has been marked as a duplicate of bug 281180 ***