Bitcoin Forum

Bitcoin => Electrum => Topic started by: chrade on January 18, 2021, 07:02:43 AM



Title: ubuntu terminal notification: found module 'Cryptodome' but it is too old
Post by: chrade on January 18, 2021, 07:02:43 AM
Hi there, this is my first post  :)

On ubuntu 20.04, verified electrum 4.09 gpg signatures and installed it from python sources as per official instructions from https://electrum.org/#download (https://electrum.org/#download).

There were no previous electrum installations on this system.

When i type electrum in the terminal, the gui software fires up saying Electrum 4.0.9 at the top,

but I also get the following notification in the terminal:

"W | crypto | found module 'Cryptodome' but it is too old: 3.6.1<3.7"

Is this something I should be worried about?


Title: Re: ubuntu terminal notification: found module 'Cryptodome' but it is too old
Post by: ranochigo on January 18, 2021, 07:46:17 AM
It shouldn't pose much of an issue or else your Electrum wouldn't have proceeded at all.

Electrum currently uses cryptography as a dependency as well and I think they use that by default and pycryptodome became optional quite some time ago. Cryptography is a mandatory dependency while cryptodomex is an optional one, it doesn't affect if your version is lower than the required as it's just included in their dependency checks.

You can update it if you want, pip install pycryptodomex.


Title: Re: ubuntu terminal notification: found module 'Cryptodome' but it is too old
Post by: chrade on January 18, 2021, 03:28:55 PM
I used the following command successfully.

Code:
python3 -m pip install -U pycryptodomex
Collecting pycryptodomex
  Downloading pycryptodomex-3.9.9-cp38-cp38-manylinux1_x86_64.whl (13.7 MB)
     |████████████████████████████████| 13.7 MB 5.2 MB/s
Installing collected packages: pycryptodomex
Successfully installed pycryptodomex-3.9.9

The
Code:
python3 -m
part, is from the instructions at https://electrum.org/#download (https://electrum.org/#download)

I also tried without the
Code:
-m
flag, but it wouldn't work.

Thanks a lot guys  :)


Title: Re: ubuntu terminal notification: found module 'Cryptodome' but it is too old
Post by: ranochigo on January 18, 2021, 03:48:02 PM
I also tried without the
Code:
-m
flag, but it wouldn't work.

Thanks a lot guys  :)
Try replacing the pip with pip3?

Anyways, as said it wouldn't really matter because Electrum probably don't need it at all or else it would've been required to be installed as one of the dependencies and for which, it was dropped from the requirements some time ago[1].

[1] https://github.com/spesmilo/electrum/commit/1cc8c2c0552655252315515120aee9d3e70aa55b#diff-b0c5e3aaccb072be3dd2f8d839fe7dd9d58720ed93d9b337d6f58f77578f7d00