Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support tornado 6.x or wdb won't run on python 3.10+ #155

Open
massimiliano-della-rovere opened this issue Jun 8, 2022 · 0 comments
Open

Comments

@massimiliano-della-rovere
Copy link

massimiliano-della-rovere commented Jun 8, 2022

Currently wdb-server 3.3.0 requires tornado<6.0,>=5.0.
The newest version of tornado is v6.1.

In Python 3.10 MutableMapping was moved

  • from collections.MutableMapping
  • to collections.abc.MutableMapping
    and this causes the following error when starting WDB (which uses tornado 5.1.1)
(py3.10.4) root@a321832d390a:/# wdb.server.py 
Traceback (most recent call last):
  File "/tcwa/venv/py3.10.4/bin/wdb.server.py", line 9, in <module>
    from tornado_systemd import SYSTEMD_SOCKET_FD, SystemdHTTPServer
  File "/tcwa/venv/py3.10.4/lib/python3.10/site-packages/tornado_systemd/__init__.py", line 4, in <module>
    from tornado.httpserver import HTTPServer
  File "/tcwa/venv/py3.10.4/lib/python3.10/site-packages/tornado/httpserver.py", line 33, in <module>
    from tornado.http1connection import HTTP1ServerConnection, HTTP1ConnectionParameters
  File "/tcwa/venv/py3.10.4/lib/python3.10/site-packages/tornado/http1connection.py", line 30, in <module>
    from tornado import httputil
  File "/tcwa/venv/py3.10.4/lib/python3.10/site-packages/tornado/httputil.py", line 107, in <module>
    class HTTPHeaders(collections.MutableMapping):
AttributeError: module 'collections' has no attribute 'MutableMapping'

Of course you can't patch tornado v5.x since it's not the newest major version and it was correctly developed before python 3.10 came out.

So wdb should use Tornado 6.1+

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant