<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>280224</bug_id>
          
          <creation_ts>2024-09-23 15:31:39 -0700</creation_ts>
          <short_desc>mod_pywebsocket: module &apos;ssl&apos; has no attribute &apos;wrap_socket&apos; with Python 3.12</short_desc>
          <delta_ts>2024-10-14 17:46:28 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Tools / Tests</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>281180</dup_id>
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=275992</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>281180</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Fujii Hironori">fujii</reporter>
          <assigned_to name="Fujii Hironori">fujii</assigned_to>
          <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2062506</commentid>
    <comment_count>0</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2024-09-23 15:31:39 -0700</bug_when>
    <thetext>I&apos;m observing a PyWebSocket server error with Python 3.12 on Windows.

[2024-09-23 23:24:05,612] [CRITICAL] root: mod_pywebsocket: module &apos;ssl&apos; has no attribute &apos;wrap_socket&apos;
[2024-09-23 23:24:05,612] [CRITICAL] root: mod_pywebsocket: Traceback (most recent call last):
  File &quot;C:\webkit\wb\LayoutTests\imported\w3c\web-platform-tests\tools\third_party\pywebsocket3\mod_pywebsocket\standalone.py&quot;, line 480, in _main
    server = WebSocketServer(options)
             ^^^^^^^^^^^^^^^^^^^^^^^^
  File &quot;C:\webkit\wb\LayoutTests\imported\w3c\web-platform-tests\tools\third_party\pywebsocket3\mod_pywebsocket\websocket_server.py&quot;, line 119, in __init__
    self._create_sockets()
  File &quot;C:\webkit\wb\LayoutTests\imported\w3c\web-platform-tests\tools\third_party\pywebsocket3\mod_pywebsocket\websocket_server.py&quot;, line 160, in _create_sockets
    socket_ = ssl.wrap_socket(
              ^^^^^^^^^^^^^^^
AttributeError: module &apos;ssl&apos; has no attribute &apos;wrap_socket&apos;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2062507</commentid>
    <comment_count>1</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2024-09-23 15:32:04 -0700</bug_when>
    <thetext>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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2062580</commentid>
    <comment_count>2</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2024-09-23 17:54:42 -0700</bug_when>
    <thetext>https://github.com/web-platform-tests/wpt/commit/a7a594d8c03a850fd99bab1fd85bb6fe310081a2 renamed them.

 rename tools/third_party/pywebsocket3/{mod_pywebsocket =&gt; pywebsocket3}/__init__.py (97%)
 rename tools/third_party/pywebsocket3/{mod_pywebsocket =&gt; pywebsocket3}/_stream_exceptions.py (100%)
 rename tools/third_party/pywebsocket3/{mod_pywebsocket =&gt; pywebsocket3}/common.py (99%)
 rename tools/third_party/pywebsocket3/{mod_pywebsocket =&gt; pywebsocket3}/dispatch.py (98%)
 rename tools/third_party/pywebsocket3/{mod_pywebsocket =&gt; pywebsocket3}/extensions.py (99%)
 rename tools/third_party/pywebsocket3/{mod_pywebsocket =&gt; pywebsocket3}/handshake/__init__.py (93%)
 rename tools/third_party/pywebsocket3/{mod_pywebsocket =&gt; pywebsocket3}/handshake/base.py (97%)
 rename tools/third_party/pywebsocket3/{mod_pywebsocket =&gt; pywebsocket3}/handshake/hybi.py (95%)
 rename tools/third_party/pywebsocket3/{mod_pywebsocket =&gt; pywebsocket3}/http_header_util.py (99%)
 rename tools/third_party/pywebsocket3/{mod_pywebsocket =&gt; pywebsocket3}/memorizingfile.py (99%)
 rename tools/third_party/pywebsocket3/{mod_pywebsocket =&gt; pywebsocket3}/msgutil.py (96%)
 rename tools/third_party/pywebsocket3/{mod_pywebsocket =&gt; pywebsocket3}/request_handler.py (98%)
 rename tools/third_party/pywebsocket3/{mod_pywebsocket =&gt; pywebsocket3}/server_util.py (97%)
 rename tools/third_party/pywebsocket3/{mod_pywebsocket =&gt; pywebsocket3}/standalone.py (96%)
 rename tools/third_party/pywebsocket3/{mod_pywebsocket =&gt; pywebsocket3}/stream.py (98%)
 rename tools/third_party/pywebsocket3/{mod_pywebsocket =&gt; pywebsocket3}/util.py (98%)
 rename tools/third_party/pywebsocket3/{mod_pywebsocket =&gt; pywebsocket3}/websocket_server.py (98%)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2062594</commentid>
    <comment_count>3</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2024-09-23 18:42:14 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/34138</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2064361</commentid>
    <comment_count>4</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2024-09-30 15:32:15 -0700</bug_when>
    <thetext>&lt;rdar://problem/137002096&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2067906</commentid>
    <comment_count>5</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2024-10-14 17:46:28 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 281180 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>