Python 3.7 doesn't work with asuswrt platform?

I recently upgrade python version to 3.7.3 and then asuswrte device_tracker doesn’t work any more

I found below errors in HA log. Do we have a solution or workaround available?

Traceback (most recent call last):
File “/srv/homeassistant/lib/python3.7/site-packages/homeassistant/setup.py”, line 153, in _async_setup_component hass, processed_config)

File “/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/asuswrt/init.py”, line 45, in async_setup from aioasuswrt.asuswrt import AsusWrt

File “/srv/homeassistant/lib/python3.7/site-packages/aioasuswrt/asuswrt.py”, line 9, in from aioasuswrt.connection import SshConnection, TelnetConnection

File “/srv/homeassistant/lib/python3.7/site-packages/aioasuswrt/connection.py”, line 6, in

import asyncssh

File “/srv/homeassistant/lib/python3.7/site-packages/asyncssh/init.py”, line 31, in
from .agent import SSHAgentClient, SSHAgentKeyPair, connect_agent

File “/srv/homeassistant/lib/python3.7/site-packages/asyncssh/agent.py”, line 35, in
from .public_key import SSHKeyPair, load_default_keypairs

File “/srv/homeassistant/lib/python3.7/site-packages/asyncssh/public_key.py”, line 43, in
from .encryption import get_encryption_params, get_encryption

File “/srv/homeassistant/lib/python3.7/site-packages/asyncssh/encryption.py”, line 23, in
from .crypto import BasicCipher, GCMCipher, ChachaCipher, get_cipher_params

File “/srv/homeassistant/lib/python3.7/site-packages/asyncssh/crypto/init.py”, line 27, in
from .ec import ECDSAPrivateKey, ECDSAPublicKey, ECDH

File “/srv/homeassistant/lib/python3.7/site-packages/asyncssh/crypto/ec.py”, line 24, in
from cryptography.hazmat.backends.openssl import backend

File “/srv/homeassistant/lib/python3.7/site-packages/cryptography/hazmat/backends/openssl/init.py”, line 7, in
from cryptography.hazmat.backends.openssl.backend import backend

File “/srv/homeassistant/lib/python3.7/site-packages/cryptography/hazmat/backends/openssl/backend.py”, line 74, in
from cryptography.hazmat.bindings.openssl import binding

File “/srv/homeassistant/lib/python3.7/site-packages/cryptography/hazmat/bindings/openssl/binding.py”, line 15, in
from cryptography.hazmat.bindings._openssl import ffi, lib

ImportError: /usr/lib/arm-linux-gnueabihf/libssl.so.1.1: version `OPENSSL_1_1_1’ not found (required by /srv/homeassistant/lib/python3.7/site-packages/cryptography/hazmat/bindings/_openssl.abi3.so)

2019-07-28 19:37:45 ERROR (MainThread) [homeassistant.setup] Error during setup of component cloud

Traceback (most recent call last):

File “/srv/homeassistant/lib/python3.7/site-packages/homeassistant/setup.py”, line 153, in _async_setup_component hass, processed_config)

File “/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/cloud/init.py”, line 142, in async_setup from hass_nabucasa import Cloud

File “/srv/homeassistant/lib/python3.7/site-packages/hass_nabucasa/init.py”, line 16, in
from .remote import RemoteUI

File “/srv/homeassistant/lib/python3.7/site-packages/hass_nabucasa/remote.py”, line 16, in
from .acme import AcmeClientError, AcmeHandler

File “/srv/homeassistant/lib/python3.7/site-packages/hass_nabucasa/acme.py”, line 9, in

import OpenSSL

File “/srv/homeassistant/lib/python3.7/site-packages/OpenSSL/init.py”, line 8, in
from OpenSSL import crypto, SSL

File “/srv/homeassistant/lib/python3.7/site-packages/OpenSSL/crypto.py”, line 16, in
from OpenSSL._util import (

File “/srv/homeassistant/lib/python3.7/site-packages/OpenSSL/_util.py”, line 6, in
from cryptography.hazmat.bindings.openssl.binding import Binding

File “/srv/homeassistant/lib/python3.7/site-packages/cryptography/hazmat/bindings/openssl/binding.py”, line 15, in
from cryptography.hazmat.bindings._openssl import ffi, lib

ImportError: /usr/lib/arm-linux-gnueabihf/libssl.so.1.1: version `OPENSSL_1_1_1’ not found (required by /srv/homeassistant/lib/python3.7/site-packages/cryptography/hazmat/bindings/_openssl.abi3.so)

2019-07-28 19:37:46 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform asuswrt.device_tracker: Unable to set up component.

2019-07-28 19:37:47 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of default_config. Setup failed for dependencies: cloud

2019-07-28 19:37:47 ERROR (MainThread) [homeassistant.setup] Setup failed for default_config: Could not set up all dependencies.

I had the same problem, but just upgraded to 0.97.3 and it’s working again!

image

I guess 0.97.3 is not released yet.

Ah my bad, then I got the version wrong. I just updated to the latest version, which is then 0.97.2 I guess? Anyways I think this issue is fixed now! :slight_smile: