Closed ysimonx closed 2 years ago
Hi @ysimonx ,
Please try to install the package cryptography. You can do this with the following command:
pip3 install cryptography
Yes, I just found this solution
I will propose a fix like this :
try:
from opcua.crypto import uacrypto
except ImportError:
TBUtility.install_package("cryptography")
from opcua.crypto import uacrypto
With this code, i manage to connect !
Thank you @zbeacon
Yes, It is probably the best solution for issues like this. Cryptography should installs during setup and it is strange that it wasn't install.
@zbeacon : PR https://github.com/thingsboard/thingsboard-gateway/pull/742 ;-)
thank you
@ysimonx Thank you for your participating in the project life. We appreciate it.
I am trying to connect an OPCUA Server configured with an user/password access : the connexion fails
while I am able to connect anonymously, when i configure the opcua connexion with a username and a password
the OPC UA connexion is not done beetween thingsboard-gateway and OPC UA Server (loytec device)
when I Try this connexion with another OPC UA client (prosys) : the connexion is ok
so this is really a thingsboard-gateway issue
OPC-UA Connector:
Error traceback:
Versions from master branch of thingsboard-gateway :