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

Temboard not working with Pypi install | ERROR: tornado.general: Uncaught exception, closing connection. #1322

Open
fxsoulis opened this issue Dec 11, 2023 · 1 comment

Comments

@fxsoulis
Copy link

I have tornado error when i run temboard from a Pypi install whereas it works with a ubuntu22 package install.

$ sudo pip install temboard psycopg2-binary
$ temboard --version

temBoard 8.2.1 (/usr/local/bin/temboard)
System Ubuntu 22.04.1 LTS (Jammy Jellyfish)
Python 3.10.12 (/usr/bin/python3)
cryptography 3.4.8
Tornado 6.4
libpq 16.0
psycopg2 2.9.9 (dt dec pq3 ext lo64)
SQLAlchemy 1.4.50

$ sudo apt install temboard
$ temboard --version

temBoard 8.2.1 (/usr/lib/temboard/bin/temboard)
System Ubuntu 22.04.1 LTS (Jammy Jellyfish)
Python 3.10.12 (/usr/bin/python3)
cryptography 41.0.5
Tornado 6.3.3
libpq 14.10
psycopg2 2.9.2 (dt dec pq3 ext lo64)
SQLAlchemy 1.4.50

I've retried a Pypi install with tornado v6.3.3 (same ubuntu package version) and it works.

Here is the error encountered when i load url from my web navigator with Pypi install as the documention :

ERROR:  tornado.general: Uncaught exception, closing connection.
        Traceback (most recent call last):
          File "/usr/local/lib/python3.10/dist-packages/tornado/iostream.py", line 691, in _handle_events
            self._handle_read()
          File "/usr/local/lib/python3.10/dist-packages/tornado/iostream.py", line 1427, in _handle_read
            self._do_ssl_handshake()
          File "/usr/local/lib/python3.10/dist-packages/temboardui/autossl.py", line 159, in _do_ssl_handshake
            if not self._verify_cert(self.socket.getpeercert()):
        AttributeError: 'EasySSLIOStream' object has no attribute '_verify_cert'
ERROR:  asyncio: Exception in callback None()
        handle: <Handle cancelled>
        Traceback (most recent call last):
          File "/usr/lib/python3.10/asyncio/events.py", line 80, in _run
            self._context.run(self._callback, *self._args)
          File "/usr/local/lib/python3.10/dist-packages/tornado/platform/asyncio.py", line 202, in _handle_events
            handler_func(fileobj, events)
          File "/usr/local/lib/python3.10/dist-packages/tornado/iostream.py", line 691, in _handle_events
            self._handle_read()
          File "/usr/local/lib/python3.10/dist-packages/tornado/iostream.py", line 1427, in _handle_read
            self._do_ssl_handshake()
          File "/usr/local/lib/python3.10/dist-packages/temboardui/autossl.py", line 159, in _do_ssl_handshake
            if not self._verify_cert(self.socket.getpeercert()):
        AttributeError: 'EasySSLIOStream' object has no attribute '_verify_cert'
ERROR:  tornado.application: Exception in callback functools.partial(<function AutoHTTPSServer._handle_connection.<locals>.<lambda> at 0x7fa38c5bfd00>, <Future finished exception=AttributeError("'EasySSLIOStream' object has no attribute '_verify_cert'")>)
        Traceback (most recent call last):
          File "/usr/local/lib/python3.10/dist-packages/tornado/ioloop.py", line 750, in _run_callback
            ret = callback()
          File "/usr/local/lib/python3.10/dist-packages/temboardui/autossl.py", line 226, in <lambda>
            io_loop.add_future(future, lambda f: f.result())
          File "/usr/local/lib/python3.10/dist-packages/tornado/gen.py", line 780, in run
            yielded = self.gen.throw(exc)
          File "/usr/local/lib/python3.10/dist-packages/temboardui/autossl.py", line 233, in handle_stream
            yield ssl_stream.wait_for_handshake()
          File "/usr/local/lib/python3.10/dist-packages/tornado/gen.py", line 767, in run
            value = future.result()
          File "/usr/local/lib/python3.10/dist-packages/tornado/iostream.py", line 691, in _handle_events
            self._handle_read()
          File "/usr/local/lib/python3.10/dist-packages/tornado/iostream.py", line 1427, in _handle_read
            self._do_ssl_handshake()
          File "/usr/local/lib/python3.10/dist-packages/temboardui/autossl.py", line 159, in _do_ssl_handshake
            if not self._verify_cert(self.socket.getpeercert()):
        AttributeError: 'EasySSLIOStream' object has no attribute '_verify_cert'
@pirlgon
Copy link
Contributor

pirlgon commented Dec 12, 2023

Thank you for the report, we will work on it.

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

2 participants