Pycrypto dependency

Guys,

Trying to upgrade my omxware client and it turns out that pycrypto dependency can’t be satisfied. Please can you suggest something.
Thank you
Ritesh

Commands tried -

  1. pip3 install omxware --upgrade
  2. pip3 install omxwaredev

Error on osx-
Command “/Users/ritesh/miniconda3/bin/python -u -c “import setuptools, tokenize;file=’/private/var/folders/7d/jztxfh212tb0gdzn312dk74h0000gn/T/pip-install-01mxhoz_/pycrypto/setup.py’;f=getattr(tokenize, ‘open’, open)(file);code=f.read().replace(’\r\n’, ‘\n’);f.close();exec(compile(code, file, ‘exec’))” install --record /private/var/folders/7d/jztxfh212tb0gdzn312dk74h0000gn/T/pip-record-x9opfibf/install-record.txt --single-version-externally-managed --compile” failed with error code 1 in /private/var/folders/7d/jztxfh212tb0gdzn312dk74h0000gn/T/pip-install-01mxhoz_/pycrypto/

Tried this as well, no luck -
pip install --upgrade --no-cache-dir omxware

Hi @ritesh

omxwaredev is deprecated and no longer recommended for use. Could you try just a standard

pip install omxware --upgrade?

And @harsha do you have any recommendations here?

@ritesh I see - you are using miniconda3.

Can you try intalling pycryptodome ==> pip3 install pycryptodome.
and then re-try installing omxware, the same way you did.

pip install --upgrade --no-cache-dir omxware

Please let me know, how it goes.

-Harsha

1 Like
Thanks both. But no luck. See the entire log trace below -
==============================================

BLAST_results:~ ritesh$pip3 install pycryptodome
Collecting pycryptodome
  Using cached https://files.pythonhosted.org/packages/21/a6/5e82dd6a18706f281a6b889da358c4dc886ea7396c288834a1472a9e9cca/pycryptodome-3.8.0-cp36-cp36m-macosx_10_6_intel.whl
Installing collected packages: pycryptodome
Successfully installed pycryptodome-3.8.0
BLAST_results:~ ritesh$pip install --upgrade --no-cache-dir omxware
Collecting omxware
  Downloading https://files.pythonhosted.org/packages/d2/8a/1d632abb1e88ecb9aed8e7e5b281583bbd347d83d93ad506af28f26a4668/omxware-0.0.4.2-py2.py3-none-any.whl
Collecting py-keycloak>=0.0.1.4 (from omxware)
  Downloading https://files.pythonhosted.org/packages/ff/aa/0dcec4f2cac63f57942e6ea5fb2e7e538f8670fb0e496ea2edc185d4dc6c/py-keycloak-0.0.1.4.tar.gz
Requirement already satisfied, skipping upgrade: pprint in /Users/ritesh/miniconda3/lib/python3.6/site-packages (from omxware) (0.1)
Requirement already satisfied, skipping upgrade: Click>=6.0 in /Users/ritesh/miniconda3/lib/python3.6/site-packages (from omxware) (7.0)
Requirement already satisfied, skipping upgrade: simplejson>=3.16.0 in /Users/ritesh/miniconda3/lib/python3.6/site-packages (from omxware) (3.16.1)
Requirement already satisfied, skipping upgrade: pycryptodome>=3.7.3 in /Users/ritesh/miniconda3/lib/python3.6/site-packages (from omxware) (3.8.0)
Requirement already satisfied, skipping upgrade: pandas in /Users/ritesh/miniconda3/lib/python3.6/site-packages (from omxware) (0.23.4)
Requirement already satisfied, skipping upgrade: requests==2.18.4 in /Users/ritesh/miniconda3/lib/python3.6/site-packages (from py-keycloak>=0.0.1.4->omxware) (2.18.4)
Requirement already satisfied, skipping upgrade: httmock==1.2.5 in /Users/ritesh/miniconda3/lib/python3.6/site-packages (from py-keycloak>=0.0.1.4->omxware) (1.2.5)
Collecting python-jose==1.4.0 (from py-keycloak>=0.0.1.4->omxware)
  Downloading https://files.pythonhosted.org/packages/8b/df/6744aa5b43ddcdb2d60869f484ab37a72087eaf260d6607f84ed4bbfe23c/python_jose-1.4.0-py2.py3-none-any.whl
Requirement already satisfied, skipping upgrade: numpy>=1.9.0 in /usr/local/lib/python3.6/site-packages (from pandas->omxware) (1.14.3)
Requirement already satisfied, skipping upgrade: pytz>=2011k in /Users/ritesh/miniconda3/lib/python3.6/site-packages (from pandas->omxware) (2018.9)
Requirement already satisfied, skipping upgrade: python-dateutil>=2.5.0 in /Users/ritesh/miniconda3/lib/python3.6/site-packages (from pandas->omxware) (2.7.5)
Requirement already satisfied, skipping upgrade: urllib3<1.23,>=1.21.1 in /Users/ritesh/miniconda3/lib/python3.6/site-packages (from requests==2.18.4->py-keycloak>=0.0.1.4->omxware) (1.22)
Requirement already satisfied, skipping upgrade: idna<2.7,>=2.5 in /Users/ritesh/miniconda3/lib/python3.6/site-packages (from requests==2.18.4->py-keycloak>=0.0.1.4->omxware) (2.6)
Requirement already satisfied, skipping upgrade: certifi>=2017.4.17 in /Users/ritesh/miniconda3/lib/python3.6/site-packages (from requests==2.18.4->py-keycloak>=0.0.1.4->omxware) (2018.11.29)
Requirement already satisfied, skipping upgrade: chardet<3.1.0,>=3.0.2 in /Users/ritesh/miniconda3/lib/python3.6/site-packages (from requests==2.18.4->py-keycloak>=0.0.1.4->omxware) (3.0.4)
Requirement already satisfied, skipping upgrade: ecdsa<1.0 in /Users/ritesh/miniconda3/lib/python3.6/site-packages (from python-jose==1.4.0->py-keycloak>=0.0.1.4->omxware) (0.13)
Collecting pycrypto<2.7.0,>=2.6.0 (from python-jose==1.4.0->py-keycloak>=0.0.1.4->omxware)
  Downloading https://files.pythonhosted.org/packages/60/db/645aa9af249f059cc3a368b118de33889219e0362141e75d4eaf6f80f163/pycrypto-2.6.1.tar.gz (446kB)
    100% |████████████████████████████████| 450kB 1.1MB/s 
Requirement already satisfied, skipping upgrade: future<1.0 in /Users/ritesh/miniconda3/lib/python3.6/site-packages (from python-jose==1.4.0->py-keycloak>=0.0.1.4->omxware) (0.17.1)
Requirement already satisfied, skipping upgrade: six<2.0 in /Users/ritesh/miniconda3/lib/python3.6/site-packages (from python-jose==1.4.0->py-keycloak>=0.0.1.4->omxware) (1.12.0)
Installing collected packages: pycrypto, python-jose, py-keycloak, omxware
  Running setup.py install for pycrypto ... error
    Complete output from command /Users/ritesh/miniconda3/bin/python -u -c "import setuptools, tokenize;__file__='/private/var/folders/7d/jztxfh212tb0gdzn312dk74h0000gn/T/pip-install-1pn7_h9x/pycrypto/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /private/var/folders/7d/jztxfh212tb0gdzn312dk74h0000gn/T/pip-record-g0f5rmzk/install-record.txt --single-version-externally-managed --compile:
    running install
    running build
    running build_py
    creating build
    creating build/lib.macosx-10.7-x86_64-3.6
    creating build/lib.macosx-10.7-x86_64-3.6/Crypto
    copying lib/Crypto/pct_warnings.py -> build/lib.macosx-10.7-x86_64-3.6/Crypto
    copying lib/Crypto/__init__.py -> build/lib.macosx-10.7-x86_64-3.6/Crypto
    creating build/lib.macosx-10.7-x86_64-3.6/Crypto/Hash
    copying lib/Crypto/Hash/MD2.py -> build/lib.macosx-10.7-x86_64-3.6/Crypto/Hash
    copying lib/Crypto/Hash/SHA512.py -> build/lib.macosx-10.7-x86_64-3.6/Crypto/Hash
    copying lib/Crypto/Hash/SHA384.py -> build/lib.macosx-10.7-x86_64-3.6/Crypto/Hash
    copying lib/Crypto/Hash/SHA256.py -> build/lib.macosx-10.7-x86_64-3.6/Crypto/Hash
    copying lib/Crypto/Hash/hashalgo.py -> build/lib.macosx-10.7-x86_64-3.6/Crypto/Hash
    copying lib/Crypto/Hash/__init__.py -> build/lib.macosx-10.7-x86_64-3.6/Crypto/Hash
    copying lib/Crypto/Hash/SHA.py -> build/lib.macosx-10.7-x86_64-3.6/Crypto/Hash
    copying lib/Crypto/Hash/SHA224.py -> build/lib.macosx-10.7-x86_64-3.6/Crypto/Hash
    copying lib/Crypto/Hash/MD4.py -> build/lib.macosx-10.7-x86_64-3.6/Crypto/Hash
    copying lib/Crypto/Hash/HMAC.py -> build/lib.macosx-10.7-x86_64-3.6/Crypto/Hash
    copying lib/Crypto/Hash/MD5.py -> build/lib.macosx-10.7-x86_64-3.6/Crypto/Hash
    copying lib/Crypto/Hash/RIPEMD.py -> build/lib.macosx-10.7-x86_64-3.6/Crypto/Hash
    creating build/lib.macosx-10.7-x86_64-3.6/Crypto/Cipher
    copying lib/Crypto/Cipher/CAST.py -> build/lib.macosx-10.7-x86_64-3.6/Crypto/Cipher
    copying lib/Crypto/Cipher/ARC4.py -> build/lib.macosx-10.7-x86_64-3.6/Crypto/Cipher
    copying lib/Crypto/Cipher/AES.py -> build/lib.macosx-10.7-x86_64-3.6/Crypto/Cipher
    copying lib/Crypto/Cipher/PKCS1_v1_5.py -> build/lib.macosx-10.7-x86_64-3.6/Crypto/Cipher
    copying lib/Crypto/Cipher/__init__.py -> build/lib.macosx-10.7-x86_64-3.6/Crypto/Cipher
    copying lib/Crypto/Cipher/DES3.py -> build/lib.macosx-10.7-x86_64-3.6/Crypto/Cipher
    copying lib/Crypto/Cipher/XOR.py -> build/lib.macosx-10.7-x86_64-3.6/Crypto/Cipher
    copying lib/Crypto/Cipher/Blowfish.py -> build/lib.macosx-10.7-x86_64-3.6/Crypto/Cipher
    copying lib/Crypto/Cipher/ARC2.py -> build/lib.macosx-10.7-x86_64-3.6/Crypto/Cipher
    copying lib/Crypto/Cipher/PKCS1_OAEP.py -> build/lib.macosx-10.7-x86_64-3.6/Crypto/Cipher
    copying lib/Crypto/Cipher/DES.py -> build/lib.macosx-10.7-x86_64-3.6/Crypto/Cipher
    copying lib/Crypto/Cipher/blockalgo.py -> build/lib.macosx-10.7-x86_64-3.6/Crypto/Cipher
    creating build/lib.macosx-10.7-x86_64-3.6/Crypto/Util
    copying lib/Crypto/Util/py3compat.py -> build/lib.macosx-10.7-x86_64-3.6/Crypto/Util
    copying lib/Crypto/Util/number.py -> build/lib.macosx-10.7-x86_64-3.6/Crypto/Util
    copying lib/Crypto/Util/__init__.py -> build/lib.macosx-10.7-x86_64-3.6/Crypto/Util
    copying lib/Crypto/Util/winrandom.py -> build/lib.macosx-10.7-x86_64-3.6/Crypto/Util
    copying lib/Crypto/Util/_number_new.py -> build/lib.macosx-10.7-x86_64-3.6/Crypto/Util
    copying lib/Crypto/Util/RFC1751.py -> build/lib.macosx-10.7-x86_64-3.6/Crypto/Util
    copying lib/Crypto/Util/randpool.py -> build/lib.macosx-10.7-x86_64-3.6/Crypto/Util
    copying lib/Crypto/Util/Counter.py -> build/lib.macosx-10.7-x86_64-3.6/Crypto/Util
    copying lib/Crypto/Util/asn1.py -> build/lib.macosx-10.7-x86_64-3.6/Crypto/Util
    creating build/lib.macosx-10.7-x86_64-3.6/Crypto/Random
    copying lib/Crypto/Random/_UserFriendlyRNG.py -> build/lib.macosx-10.7-x86_64-3.6/Crypto/Random
    copying lib/Crypto/Random/__init__.py -> build/lib.macosx-10.7-x86_64-3.6/Crypto/Random
    copying lib/Crypto/Random/random.py -> build/lib.macosx-10.7-x86_64-3.6/Crypto/Random
    creating build/lib.macosx-10.7-x86_64-3.6/Crypto/Random/Fortuna
    copying lib/Crypto/Random/Fortuna/__init__.py -> build/lib.macosx-10.7-x86_64-3.6/Crypto/Random/Fortuna
    copying lib/Crypto/Random/Fortuna/SHAd256.py -> build/lib.macosx-10.7-x86_64-3.6/Crypto/Random/Fortuna
    copying lib/Crypto/Random/Fortuna/FortunaGenerator.py -> build/lib.macosx-10.7-x86_64-3.6/Crypto/Random/Fortuna
    copying lib/Crypto/Random/Fortuna/FortunaAccumulator.py -> build/lib.macosx-10.7-x86_64-3.6/Crypto/Random/Fortuna
    creating build/lib.macosx-10.7-x86_64-3.6/Crypto/Random/OSRNG
    copying lib/Crypto/Random/OSRNG/__init__.py -> build/lib.macosx-10.7-x86_64-3.6/Crypto/Random/OSRNG
    copying lib/Crypto/Random/OSRNG/posix.py -> build/lib.macosx-10.7-x86_64-3.6/Crypto/Random/OSRNG
    copying lib/Crypto/Random/OSRNG/rng_base.py -> build/lib.macosx-10.7-x86_64-3.6/Crypto/Random/OSRNG
    copying lib/Crypto/Random/OSRNG/fallback.py -> build/lib.macosx-10.7-x86_64-3.6/Crypto/Random/OSRNG
    creating build/lib.macosx-10.7-x86_64-3.6/Crypto/SelfTest
    copying lib/Crypto/SelfTest/st_common.py -> build/lib.macosx-10.7-x86_64-3.6/Crypto/SelfTest
    copying lib/Crypto/SelfTest/__init__.py -> build/lib.macosx-10.7-x86_64-3.6/Crypto/SelfTest
    creating build/lib.macosx-10.7-x86_64-3.6/Crypto/SelfTest/Cipher
    copying lib/Crypto/SelfTest/Cipher/test_AES.py -> build/lib.macosx-10.7-x86_64-3.6/Crypto/SelfTest/Cipher
    copying lib/Crypto/SelfTest/Cipher/test_CAST.py -> build/lib.macosx-10.7-x86_64-3.6/Crypto/SelfTest/Cipher
    copying lib/Crypto/SelfTest/Cipher/test_ARC4.py -> build/lib.macosx-10.7-x86_64-3.6/Crypto/SelfTest/Cipher
    copying lib/Crypto/SelfTest/Cipher/test_pkcs1_oaep.py -> build/lib.macosx-10.7-x86_64-3.6/Crypto/SelfTest/Cipher
    copying lib/Crypto/SelfTest/Cipher/test_DES3.py -> build/lib.macosx-10.7-x86_64-3.6/Crypto/SelfTest/Cipher
    copying lib/Crypto/SelfTest/Cipher/__init__.py -> build/lib.macosx-10.7-x86_64-3.6/Crypto/SelfTest/Cipher
    copying lib/Crypto/SelfTest/Cipher/common.py -> build/lib.macosx-10.7-x86_64-3.6/Crypto/SelfTest/Cipher
    copying lib/Crypto/SelfTest/Cipher/test_DES.py -> build/lib.macosx-10.7-x86_64-3.6/Crypto/SelfTest/Cipher
    copying lib/Crypto/SelfTest/Cipher/test_ARC2.py -> build/lib.macosx-10.7-x86_64-3.6/Crypto/SelfTest/Cipher
    copying lib/Crypto/SelfTest/Cipher/test_Blowfish.py -> build/lib.macosx-10.7-x86_64-3.6/Crypto/SelfTest/Cipher
    copying lib/Crypto/SelfTest/Cipher/test_XOR.py -> build/lib.macosx-10.7-x86_64-3.6/Crypto/SelfTest/Cipher
    copying lib/Crypto/SelfTest/Cipher/test_pkcs1_15.py -> build/lib.macosx-10.7-x86_64-3.6/Crypto/SelfTest/Cipher
    creating build/lib.macosx-10.7-x86_64-3.6/Crypto/SelfTest/Hash
    copying lib/Crypto/SelfTest/Hash/test_SHA224.py -> build/lib.macosx-10.7-x86_64-3.6/Crypto/SelfTest/Hash
    copying lib/Crypto/SelfTest/Hash/test_MD2.py -> build/lib.macosx-10.7-x86_64-3.6/Crypto/SelfTest/Hash
    copying lib/Crypto/SelfTest/Hash/__init__.py -> build/lib.macosx-10.7-x86_64-3.6/Crypto/SelfTest/Hash
    copying lib/Crypto/SelfTest/Hash/test_RIPEMD.py -> build/lib.macosx-10.7-x86_64-3.6/Crypto/SelfTest/Hash
    copying lib/Crypto/SelfTest/Hash/test_MD4.py -> build/lib.macosx-10.7-x86_64-3.6/Crypto/SelfTest/Hash
    copying lib/Crypto/SelfTest/Hash/common.py -> build/lib.macosx-10.7-x86_64-3.6/Crypto/SelfTest/Hash
    copying lib/Crypto/SelfTest/Hash/test_SHA512.py -> build/lib.macosx-10.7-x86_64-3.6/Crypto/SelfTest/Hash
    copying lib/Crypto/SelfTest/Hash/test_MD5.py -> build/lib.macosx-10.7-x86_64-3.6/Crypto/SelfTest/Hash
    copying lib/Crypto/SelfTest/Hash/test_SHA384.py -> build/lib.macosx-10.7-x86_64-3.6/Crypto/SelfTest/Hash
    copying lib/Crypto/SelfTest/Hash/test_SHA.py -> build/lib.macosx-10.7-x86_64-3.6/Crypto/SelfTest/Hash
    copying lib/Crypto/SelfTest/Hash/test_SHA256.py -> build/lib.macosx-10.7-x86_64-3.6/Crypto/SelfTest/Hash
    copying lib/Crypto/SelfTest/Hash/test_HMAC.py -> build/lib.macosx-10.7-x86_64-3.6/Crypto/SelfTest/Hash
    creating build/lib.macosx-10.7-x86_64-3.6/Crypto/SelfTest/Protocol
    copying lib/Crypto/SelfTest/Protocol/__init__.py -> build/lib.macosx-10.7-x86_64-3.6/Crypto/SelfTest/Protocol
    copying lib/Crypto/SelfTest/Protocol/test_AllOrNothing.py -> build/lib.macosx-10.7-x86_64-3.6/Crypto/SelfTest/Protocol
    copying lib/Crypto/SelfTest/Protocol/test_rfc1751.py -> build/lib.macosx-10.7-x86_64-3.6/Crypto/SelfTest/Protocol
    copying lib/Crypto/SelfTest/Protocol/test_chaffing.py -> build/lib.macosx-10.7-x86_64-3.6/Crypto/SelfTest/Protocol
    copying lib/Crypto/SelfTest/Protocol/test_KDF.py -> build/lib.macosx-10.7-x86_64-3.6/Crypto/SelfTest/Protocol
    creating build/lib.macosx-10.7-x86_64-3.6/Crypto/SelfTest/PublicKey
    copying lib/Crypto/SelfTest/PublicKey/test_RSA.py -> build/lib.macosx-10.7-x86_64-3.6/Crypto/SelfTest/PublicKey
    copying lib/Crypto/SelfTest/PublicKey/test_importKey.py -> build/lib.macosx-10.7-x86_64-3.6/Crypto/SelfTest/PublicKey
    copying lib/Crypto/SelfTest/PublicKey/__init__.py -> build/lib.macosx-10.7-x86_64-3.6/Crypto/SelfTest/PublicKey
    copying lib/Crypto/SelfTest/PublicKey/test_DSA.py -> build/lib.macosx-10.7-x86_64-3.6/Crypto/SelfTest/PublicKey
    copying lib/Crypto/SelfTest/PublicKey/test_ElGamal.py -> build/lib.macosx-10.7-x86_64-3.6/Crypto/SelfTest/PublicKey
    creating build/lib.macosx-10.7-x86_64-3.6/Crypto/SelfTest/Random
    copying lib/Crypto/SelfTest/Random/test_rpoolcompat.py -> build/lib.macosx-10.7-x86_64-3.6/Crypto/SelfTest/Random
    copying lib/Crypto/SelfTest/Random/__init__.py -> build/lib.macosx-10.7-x86_64-3.6/Crypto/SelfTest/Random
    copying lib/Crypto/SelfTest/Random/test_random.py -> build/lib.macosx-10.7-x86_64-3.6/Crypto/SelfTest/Random
    copying lib/Crypto/SelfTest/Random/test__UserFriendlyRNG.py -> build/lib.macosx-10.7-x86_64-3.6/Crypto/SelfTest/Random
    creating build/lib.macosx-10.7-x86_64-3.6/Crypto/SelfTest/Random/Fortuna
    copying lib/Crypto/SelfTest/Random/Fortuna/__init__.py -> build/lib.macosx-10.7-x86_64-3.6/Crypto/SelfTest/Random/Fortuna
    copying lib/Crypto/SelfTest/Random/Fortuna/test_FortunaGenerator.py -> build/lib.macosx-10.7-x86_64-3.6/Crypto/SelfTest/Random/Fortuna
    copying lib/Crypto/SelfTest/Random/Fortuna/test_FortunaAccumulator.py -> build/lib.macosx-10.7-x86_64-3.6/Crypto/SelfTest/Random/Fortuna
    copying lib/Crypto/SelfTest/Random/Fortuna/test_SHAd256.py -> build/lib.macosx-10.7-x86_64-3.6/Crypto/SelfTest/Random/Fortuna
    creating build/lib.macosx-10.7-x86_64-3.6/Crypto/SelfTest/Random/OSRNG
    copying lib/Crypto/SelfTest/Random/OSRNG/test_posix.py -> build/lib.macosx-10.7-x86_64-3.6/Crypto/SelfTest/Random/OSRNG
    copying lib/Crypto/SelfTest/Random/OSRNG/__init__.py -> build/lib.macosx-10.7-x86_64-3.6/Crypto/SelfTest/Random/OSRNG
    copying lib/Crypto/SelfTest/Random/OSRNG/test_generic.py -> build/lib.macosx-10.7-x86_64-3.6/Crypto/SelfTest/Random/OSRNG
    copying lib/Crypto/SelfTest/Random/OSRNG/test_fallback.py -> build/lib.macosx-10.7-x86_64-3.6/Crypto/SelfTest/Random/OSRNG
    copying lib/Crypto/SelfTest/Random/OSRNG/test_nt.py -> build/lib.macosx-10.7-x86_64-3.6/Crypto/SelfTest/Random/OSRNG
    copying lib/Crypto/SelfTest/Random/OSRNG/test_winrandom.py -> build/lib.macosx-10.7-x86_64-3.6/Crypto/SelfTest/Random/OSRNG
    creating build/lib.macosx-10.7-x86_64-3.6/Crypto/SelfTest/Util
    copying lib/Crypto/SelfTest/Util/__init__.py -> build/lib.macosx-10.7-x86_64-3.6/Crypto/SelfTest/Util
    copying lib/Crypto/SelfTest/Util/test_winrandom.py -> build/lib.macosx-10.7-x86_64-3.6/Crypto/SelfTest/Util
    copying lib/Crypto/SelfTest/Util/test_Counter.py -> build/lib.macosx-10.7-x86_64-3.6/Crypto/SelfTest/Util
    copying lib/Crypto/SelfTest/Util/test_asn1.py -> build/lib.macosx-10.7-x86_64-3.6/Crypto/SelfTest/Util
    copying lib/Crypto/SelfTest/Util/test_number.py -> build/lib.macosx-10.7-x86_64-3.6/Crypto/SelfTest/Util
    creating build/lib.macosx-10.7-x86_64-3.6/Crypto/SelfTest/Signature
    copying lib/Crypto/SelfTest/Signature/__init__.py -> build/lib.macosx-10.7-x86_64-3.6/Crypto/SelfTest/Signature
    copying lib/Crypto/SelfTest/Signature/test_pkcs1_pss.py -> build/lib.macosx-10.7-x86_64-3.6/Crypto/SelfTest/Signature
    copying lib/Crypto/SelfTest/Signature/test_pkcs1_15.py -> build/lib.macosx-10.7-x86_64-3.6/Crypto/SelfTest/Signature
    creating build/lib.macosx-10.7-x86_64-3.6/Crypto/Protocol
    copying lib/Crypto/Protocol/__init__.py -> build/lib.macosx-10.7-x86_64-3.6/Crypto/Protocol
    copying lib/Crypto/Protocol/AllOrNothing.py -> build/lib.macosx-10.7-x86_64-3.6/Crypto/Protocol
    copying lib/Crypto/Protocol/KDF.py -> build/lib.macosx-10.7-x86_64-3.6/Crypto/Protocol
    copying lib/Crypto/Protocol/Chaffing.py -> build/lib.macosx-10.7-x86_64-3.6/Crypto/Protocol
    creating build/lib.macosx-10.7-x86_64-3.6/Crypto/PublicKey
    copying lib/Crypto/PublicKey/_slowmath.py -> build/lib.macosx-10.7-x86_64-3.6/Crypto/PublicKey
    copying lib/Crypto/PublicKey/RSA.py -> build/lib.macosx-10.7-x86_64-3.6/Crypto/PublicKey
    copying lib/Crypto/PublicKey/pubkey.py -> build/lib.macosx-10.7-x86_64-3.6/Crypto/PublicKey
    copying lib/Crypto/PublicKey/_DSA.py -> build/lib.macosx-10.7-x86_64-3.6/Crypto/PublicKey
    copying lib/Crypto/PublicKey/__init__.py -> build/lib.macosx-10.7-x86_64-3.6/Crypto/PublicKey
    copying lib/Crypto/PublicKey/_RSA.py -> build/lib.macosx-10.7-x86_64-3.6/Crypto/PublicKey
    copying lib/Crypto/PublicKey/DSA.py -> build/lib.macosx-10.7-x86_64-3.6/Crypto/PublicKey
    copying lib/Crypto/PublicKey/ElGamal.py -> build/lib.macosx-10.7-x86_64-3.6/Crypto/PublicKey
    creating build/lib.macosx-10.7-x86_64-3.6/Crypto/Signature
    copying lib/Crypto/Signature/PKCS1_PSS.py -> build/lib.macosx-10.7-x86_64-3.6/Crypto/Signature
    copying lib/Crypto/Signature/PKCS1_v1_5.py -> build/lib.macosx-10.7-x86_64-3.6/Crypto/Signature
    copying lib/Crypto/Signature/__init__.py -> build/lib.macosx-10.7-x86_64-3.6/Crypto/Signature
    Skipping optional fixer: buffer
    Skipping optional fixer: idioms
    Skipping optional fixer: set_literal
    Skipping optional fixer: ws_comma
    running build_ext
    running build_configure
    checking for gcc... gcc
    checking whether the C compiler works... no
    configure: error: in `/private/var/folders/7d/jztxfh212tb0gdzn312dk74h0000gn/T/pip-install-1pn7_h9x/pycrypto':
    configure: error: C compiler cannot create executables
    See `config.log' for more details
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/private/var/folders/7d/jztxfh212tb0gdzn312dk74h0000gn/T/pip-install-1pn7_h9x/pycrypto/setup.py", line 456, in <module>
        core.setup(**kw)
      File "/Users/ritesh/miniconda3/lib/python3.6/distutils/core.py", line 148, in setup
        dist.run_commands()
      File "/Users/ritesh/miniconda3/lib/python3.6/distutils/dist.py", line 955, in run_commands
        self.run_command(cmd)
      File "/Users/ritesh/miniconda3/lib/python3.6/distutils/dist.py", line 974, in run_command
        cmd_obj.run()
      File "/usr/local/lib/python3.6/site-packages/setuptools/command/install.py", line 61, in run
        return orig.install.run(self)
      File "/Users/ritesh/miniconda3/lib/python3.6/distutils/command/install.py", line 545, in run
        self.run_command('build')
      File "/Users/ritesh/miniconda3/lib/python3.6/distutils/cmd.py", line 313, in run_command
        self.distribution.run_command(command)
      File "/Users/ritesh/miniconda3/lib/python3.6/distutils/dist.py", line 974, in run_command
        cmd_obj.run()
      File "/Users/ritesh/miniconda3/lib/python3.6/distutils/command/build.py", line 135, in run
        self.run_command(cmd_name)
      File "/Users/ritesh/miniconda3/lib/python3.6/distutils/cmd.py", line 313, in run_command
        self.distribution.run_command(command)
      File "/Users/ritesh/miniconda3/lib/python3.6/distutils/dist.py", line 974, in run_command
        cmd_obj.run()
      File "/private/var/folders/7d/jztxfh212tb0gdzn312dk74h0000gn/T/pip-install-1pn7_h9x/pycrypto/setup.py", line 251, in run
        self.run_command(cmd_name)
      File "/Users/ritesh/miniconda3/lib/python3.6/distutils/cmd.py", line 313, in run_command
        self.distribution.run_command(command)
      File "/Users/ritesh/miniconda3/lib/python3.6/distutils/dist.py", line 974, in run_command
        cmd_obj.run()
      File "/private/var/folders/7d/jztxfh212tb0gdzn312dk74h0000gn/T/pip-install-1pn7_h9x/pycrypto/setup.py", line 278, in run
        raise RuntimeError("autoconf error")
    RuntimeError: autoconf error
    
    ----------------------------------------
Command "/Users/ritesh/miniconda3/bin/python -u -c "import setuptools, tokenize;__file__='/private/var/folders/7d/jztxfh212tb0gdzn312dk74h0000gn/T/pip-install-1pn7_h9x/pycrypto/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /private/var/folders/7d/jztxfh212tb0gdzn312dk74h0000gn/T/pip-record-g0f5rmzk/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/7d/jztxfh212tb0gdzn312dk74h0000gn/T/pip-install-1pn7_h9x/pycrypto/

I guess it is still looking for pycrypto and ignoring pycryptodome ?

Hi @ritesh

Thanks for sharing the install log. I am assuming, you are running this on a Mac.
It seems like you are missing the default Build-Tools (C - compiler, in this case).

If you’ve installed Xcode, you need to launch it, go into its preferences, select the Downloads tab, and click “Install” next to the Command Line Tools package. That should install all you build-essential tools.

Once done, please re-try the omxware pip install. Let me know, how it goes.

Thank you
Harsha

Thanks Harsha. It does install now successfully after following your xcode instructions.. However, another issue pops uo -
=========== for the code   ===========
from omxware import omxware
import pandas as pd
import matplotlib.pylab as plt
import seaborn as sns
import time

token = omxware.getToken('ritesh', 'xxx')

========the following error occurs =====
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-1-67a0e5b330f4> in <module>
----> 1 from omxware import omxware
      2 import pandas as pd
      3 import matplotlib.pylab as plt
      4 import seaborn as sns
      5 import time

~/miniconda3/lib/python3.6/site-packages/omxware/omxware.py in <module>
      5 import sys
      6 
----> 7 from omxware.AESCipher import AESCipher
      8 from omxware.Config import Configuration
      9 from omxware.Connect import Connection

~/miniconda3/lib/python3.6/site-packages/omxware/AESCipher.py in <module>
      4 import hashlib
      5 
----> 6 from Crypto.Cipher import AES
      7 from Crypto import Random
      8 

~/miniconda3/lib/python3.6/site-packages/Crypto/Cipher/__init__.py in <module>
     25 import os
     26 
---> 27 from Crypto.Cipher._mode_ecb import _create_ecb_cipher
     28 from Crypto.Cipher._mode_cbc import _create_cbc_cipher
     29 from Crypto.Cipher._mode_cfb import _create_cfb_cipher

~/miniconda3/lib/python3.6/site-packages/Crypto/Cipher/_mode_ecb.py in <module>
     27 __all__ = [ 'EcbMode' ]
     28 
---> 29 from Crypto.Util._raw_api import (load_pycryptodome_raw_lib,
     30                                   VoidPointer, create_string_buffer,
     31                                   get_raw_buffer, SmartPointer,

~/miniconda3/lib/python3.6/site-packages/Crypto/Util/_raw_api.py in <module>
     32 import sys
     33 import platform
---> 34 from Crypto.Util.py3compat import byte_string
     35 from Crypto.Util._file_system import pycryptodome_filename
     36 

ImportError: cannot import name 'byte_string'

Just wanted to specify that I used the actual password in the following line of code -

token = omxware.getToken('ritesh', 'xxx')

If there is any more information I can provide please let me know.
Thank you
Ritesh

Hi @ritesh

This seems to be conflict between Pycryptodome and Pycrypto.

Can you please try

  1. un-install omxware, pycrypto, pycryptodome
  2. Install pycrypto
  3. Install omxware

This should resolve the problem . Please try and let me know, how it goes.

Thanks
Harsha

2 Likes

Thank you Harsha ! This works very well !

1 Like

I am having the same issue, running Ubuntu app on Windows 10.

After following step 1 of uninstalling everything, I had an error while installing pycrypto.

pip install pycrypto
Command “/home/nshaimin/miniconda3/bin/python -u -c “import setuptools, tokenize;file=’/tmp/pip-install-g9p10sf7/pycrypto/setup.py’;f=getattr(tokenize, ‘open’, open)(file);code=f.read().replace(’\r\n’, ‘\n’);f.close();exec(compile(code, file, ‘exec’))” install --record /tmp/pip-record-y1w5pg7t/install-record.txt --single-version-externally-managed --compile” failed with error code 1 in /tmp/pip-install-g9p10sf7/pycrypto/

My issue seems realated to not having required dependencies like a C compiler – this is a new system so have not set it up fully yet. I will try to install gcc and see if that works.

Sounds good. Let us know if you run into any issues and we will do our best to help you. Good luck setting up your new system :slight_smile:

1 Like

It worked after upgrading my system!
I now have omxware installed :slight_smile: :clap:

1 Like