Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
6.8
-
None
-
-
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