Closed ljsalvatierra closed 1 month ago
Hi, thanks for reporting back.
I can't reproduce your error using the same system and installed odoo 17 via Ubuntu repository. All works normal and no ripemd160 error when pairing.
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04.4 LTS
Release: 22.04
Codename: jammy
OpenSSL 3.0.2 15 Mar 2022 (Library: OpenSSL 3.0.2 15 Mar 2022
For the python-bitpay-client library, this is their new sdk and is incompatible with their old legacy api that was covered by the bitpay-python library. The odoo module still uses that old api. When we upgrade we would not upgrade to new bitpay sdk but to our own Greenfield API like we do with all new integrations.
For the ripemd160 issues, as written above it works for me with the same system. Ripemd160 is used for legacy address formats and it is also not broken or has been exploited afaics. Maybe your system is missing some copatibilty setting that is in place by default?
Here the installed openssl related packages, not sure if it helps though:
dpkg -l | grep openssl
ii libxmlsec1-openssl:amd64 1.2.33-1build2 amd64 Openssl engine for the XML security library
ii openssl 3.0.2-0ubuntu1.16 amd64 Secure Sockets Layer toolkit - cryptographic utility
ii python3-openssl 21.0.0-1 all Python 3 wrapper around the OpenSSL library
Here the installed openssl related packages
Thank you for the info.
My openssl related packages:
pip show pyOpenSSL
Name: pyOpenSSL
Version: 21.0.0
dpkg -l|grep openssl
ii libgnutls-openssl27:amd64 3.7.3-4ubuntu1.5 amd64 GNU TLS library - OpenSSL wrapper
ii libxmlsec1-openssl:amd64 1.2.33-1build2 amd64 Openssl engine for the XML security library
ii openssl 3.0.2-0ubuntu1.15 amd64 Secure Sockets Layer toolkit - cryptographic utility
The only difference I see is openssl
version 3.0.2-0ubuntu1.16
vs 3.0.2-0ubuntu1.15
. I've updated the package but the error persists.
File "/usr/lib/python3.10/hashlib.py", line 166, in __hash_new
return __get_builtin_constructor(name)(data)
File "/usr/lib/python3.10/hashlib.py", line 123, in __get_builtin_constructor
raise ValueError('unsupported hash type ' + name)
ValueError: unsupported hash type ripemd160
Are you using Python 3.10?
Sorry for the late reply, missed the notification.
Not sure why you also have that different libgnutls and not the python3-openssl installed like on my server and if it would cause the problem you face.
python3 --version
Python 3.10.12
pip show pyOpenSSL
Name: pyOpenSSL
Version: 21.0.0
Sorry for the late reply, missed the notification.
Not sure why you also have that different libgnutls and not the python3-openssl installed like on my server and if it would cause the problem you face.
python3 --version Python 3.10.12 pip show pyOpenSSL Name: pyOpenSSL Version: 21.0.0
Thank you for the help and info :)
OS: Ubuntu 22.04.4 LTS OpenSSL: OpenSSL 3.0.2 15 Mar 2022 (Library: OpenSSL 3.0.2 15 Mar 2022) Python version: 3.10
Steps to reproduce:
Traceback:
You are using a deprecated repository from bitpay.
Should use instead https://github.com/bitpay/python-bitpay-client
Although the new repository is still using
ripemd160
.For what I've seen in this discussion https://github.com/openssl/openssl/issues/16994
They (openssl dev team) discourage the use of
ripemd160
, but the Bitcoin project still uses it.