diff --git a/electrum b/electrum index e0f5dd6f0..338f8c1d4 100755 --- a/electrum +++ b/electrum @@ -37,7 +37,8 @@ elif is_bundle and sys.platform=='darwin': # pure-python dependencies need to be imported here for pyinstaller try: - import dns + if not is_android: + import dns import aes import ecdsa import requests diff --git a/lib/bitcoin.py b/lib/bitcoin.py index 5e3f6723c..1cbbf4629 100644 --- a/lib/bitcoin.py +++ b/lib/bitcoin.py @@ -201,6 +201,7 @@ def hash_160(public_key): md.update(sha256(public_key)) return md.digest() except Exception: + # not available in Android SL4a import ripemd md = ripemd.new(sha256(public_key)) return md.digest()