pyproxy icon indicating copy to clipboard operation
pyproxy copied to clipboard

AttributeError: module 'tornado.gen' has no attribute 'Callback'

Open MasterSergius opened this issue 4 years ago • 0 comments

[I 210728 19:10:33 pyproxy:242] http server started on 127.0.0.1:8080
[E 210728 19:10:38 web:1789] Uncaught exception CONNECT <REDACTED>:443 (127.0.0.1)
    HTTPServerRequest(protocol='http', host='<REDACTED>', method='CONNECT', uri='<REDACTED>:443', version='HTTP/1.1', remote_ip='127.0.0.1')
    Traceback (most recent call last):
      File "/Users/sergius/work/venv/lib/python3.8/site-packages/tornado/web.py", line 1704, in _execute
        result = await result
      File "/Users/sergius/work/venv/lib/python3.8/site-packages/tornado/gen.py", line 775, in run
        yielded = self.gen.send(value)
      File "/Users/sergius/work/venv/lib/python3.8/site-packages/pyproxy.py", line 208, in connect
        fw = remote.set_close_callback(gen.Callback(remote))
    AttributeError: module 'tornado.gen' has no attribute 'Callback'

    During handling of the above exception, another exception occurred:
    
    Traceback (most recent call last):
      File "/Users/sergius/work/venv/lib/python3.8/site-packages/tornado/web.py", line 1217, in send_error
        self.write_error(status_code, **kwargs)
      File "/Users/sergius/work/venv/lib/python3.8/site-packages/tornado/web.py", line 1242, in write_error
        self.finish(
      File "/Users/sergius/work/venv/lib/python3.8/site-packages/tornado/web.py", line 1157, in finish
        future = self.flush(include_footers=True)
      File "/Users/sergius/work/venv/lib/python3.8/site-packages/tornado/web.py", line 1094, in flush
        return self.request.connection.write_headers(
      File "/Users/sergius/work/venv/lib/python3.8/site-packages/tornado/http1connection.py", line 456, in write_headers
        if self.stream.closed():
    AttributeError: 'NoneType' object has no attribute 'closed'

MacOS, virtualenv Python 3.8.2

MasterSergius avatar Jul 28 '21 16:07 MasterSergius