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
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user