8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f7ce126 commit c9fa938Copy full SHA for c9fa938
pythonforandroid/toolchain.py
@@ -45,17 +45,20 @@ def check_python_dependencies():
45
else:
46
if version is None:
47
continue
48
- cur_ver = sys.modules[module].__version__
+ try:
49
+ cur_ver = sys.modules[module].__version__
50
+ except AttributeError: # this is sometimes not available
51
+ continue
52
if LooseVersion(cur_ver) < LooseVersion(version):
53
print('ERROR: {} version is {}, but python-for-android needs '
54
'at least {}.'.format(module, cur_ver, version))
55
ok = False
56
-
57
if not ok:
58
print('python-for-android is exiting due to the errors above.')
59
exit(1)
60
61
+
62
check_python_dependencies()
63
64
0 commit comments