cs01 / gdbgui

Browser-based frontend to gdb (gnu debugger). Add breakpoints, view the stack, visualize data structures, and more in C, C++, Go, Rust, and Fortran. Run gdbgui from the terminal and a new tab will open in your browser.
https://gdbgui.com
GNU General Public License v3.0
9.93k stars 499 forks source link

AttributeError: module 'ssl' has no attribute 'wrap_socket' #475

Open bugnano opened 11 months ago

bugnano commented 11 months ago

Describe the bug I'm running Fedora 39 with Python 3.12.1 When trying to run gdbgui, everything crashes with the error: AttributeError: module 'ssl' has no attribute 'wrap_socket'

From what I've seen, it's an incompatible change brought by Python 3.12 (see https://github.com/eventlet/eventlet/issues/795 for example).

To Reproduce Try to run gdbgui

Expected behavior It works

Screenshots

Traceback (most recent call last):
  File "/home/fri/.local/bin/gdbgui", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/home/fri/.local/lib/python3.12/site-packages/gdbgui/cli.py", line 249, in main
    run_server(
  File "/home/fri/.local/lib/python3.12/site-packages/gdbgui/server/server.py", line 68, in run_server
    socketio.init_app(app)
  File "/home/fri/.local/lib/python3.12/site-packages/flask_socketio/__init__.py", line 243, in init_app
    self.server = socketio.Server(**self.server_options)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/fri/.local/lib/python3.12/site-packages/socketio/base_server.py", line 31, in __init__
    self.eio = self._engineio_server_class()(**engineio_options)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/fri/.local/lib/python3.12/site-packages/engineio/base_server.py", line 70, in __init__
    self._async = importlib.import_module(
                  ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.12/importlib/__init__.py", line 90, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 994, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "/home/fri/.local/lib/python3.12/site-packages/engineio/async_drivers/eventlet.py", line 3, in <module>
    from eventlet.green.threading import Event
  File "/home/fri/.local/lib/python3.12/site-packages/eventlet/__init__.py", line 17, in <module>
    from eventlet import convenience
  File "/home/fri/.local/lib/python3.12/site-packages/eventlet/convenience.py", line 7, in <module>
    from eventlet.green import socket
  File "/home/fri/.local/lib/python3.12/site-packages/eventlet/green/socket.py", line 21, in <module>
    from eventlet.support import greendns
  File "/home/fri/.local/lib/python3.12/site-packages/eventlet/support/greendns.py", line 45, in <module>
    from eventlet.green import ssl
  File "/home/fri/.local/lib/python3.12/site-packages/eventlet/green/ssl.py", line 25, in <module>
    _original_wrap_socket = __ssl.wrap_socket
                            ^^^^^^^^^^^^^^^^^
AttributeError: module 'ssl' has no attribute 'wrap_socket'

Please complete the following information:

Additional context Add any other context about the problem here.

Iuliean commented 10 months ago

Same here also on Fedora 39 same versions of gdbgui and gdb as OP

MedAouadhi commented 7 months ago

same here on mac os 14.4

TomSaw commented 5 months ago

same on Fedora 40

sergeyu commented 3 months ago

some on Linux Mint 22 Wilma