Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-128938

wasm: qtwasmserver.py does not work with python 3.12

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • 6.9.0 FF
    • 6.8
    • Build tools: Other
    • None
    • Linux/X11, macOS, WebAssembly
    • 156e5c8b6 (dev)

    Description

      when running qtwasmserver.py on Ubuntu, which uses python3.12:

       

      Traceback (most recent call last):
        File "/home/lpotter/bin/qtwasmserver.py", line 124, in <module>
          main()
        File "/home/lpotter/bin/qtwasmserver.py", line 120, in main
          serve_on_thread(address, https_port, True)
        File "/home/lpotter/bin/qtwasmserver.py", line 102, in serve_on_thread
          httpd.socket = ssl.wrap_socket(
                         ^^^^^^^^^^^^^^^
      AttributeError: module 'ssl' has no attribute 'wrap_socket'

      https://docs.python.org/3.12/whatsnew/3.12.html#ssl

       

      ssl.wrap_socket has been removed. need to use SSLContext() wrap_socket instead

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            sorvig Morten Sørvig
            lopotter-ext Lorn Potter
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes