Browse Source

dependencies: bump min aiorpcx, and enforce at runtime

Note that newer aiorpcx started requiring python 3.8, so we cannot use
the latest versions, until we too bump the min python version to 3.8.
We should not do that until debian stable ships python 3.8.
Also, new aiorpcx introduced some API changes which we will need to
adopt, so even if the user locally has recent enough python, we need
old aiorpcx atm.

related: https://github.com/spesmilo/electrum/issues/7118
patch-4
SomberNight 4 years ago
parent
commit
d86c45edac
No known key found for this signature in database GPG Key ID: B33B5F232C6271E9
  1. 2
      contrib/requirements/requirements.txt
  2. 2
      run_electrum

2
contrib/requirements/requirements.txt

@ -1,7 +1,7 @@
qrcode
protobuf>=3.12
qdarkstyle<2.9
aiorpcx>=0.18,<0.19
aiorpcx>=0.18.7,<0.19
aiohttp>=3.3.0,<4.0.0
aiohttp_socks>=0.3
certifi

2
run_electrum

@ -63,6 +63,8 @@ def check_imports():
import aiorpcx
except ImportError as e:
sys.exit(f"Error: {str(e)}. Try 'sudo python3 -m pip install <module-name>'")
if not ((0, 18, 7) <= aiorpcx._version < (0, 19)):
raise RuntimeError(f'aiorpcX version {aiorpcx._version} does not match required: 0.18.7<=ver<0.19')
# the following imports are for pyinstaller
from google.protobuf import descriptor
from google.protobuf import message

Loading…
Cancel
Save