sovrin-foundation / old-sovrin

Open source code base for Sovrin Identity Network public/permissioned distributed ledger
Apache License 2.0
52 stars 25 forks source link

Installation Problem - Charm Crypto #7

Closed musquash closed 8 years ago

musquash commented 8 years ago

Hey guys,

I was trying out to install sovrin on my xubuntu vm. Unfortunately I recieved an error during the installation. First it was just a python version error. I had to install and use pip3 instead pip because both python versions are installed on ubuntu. Second I recieve the following error. It is quite long. I hope you can help me with that.

`xubu@ubuntu:~$ sudo -H pip3 install sovrin

Collecting sovrin Requirement already satisfied (use --upgrade to upgrade): semver in /usr/local/lib/python3.5/dist-packages (from sovrin) Requirement already satisfied (use --upgrade to upgrade): plenum in /usr/local/lib/python3.5/dist-packages (from sovrin) Collecting anoncreds (from sovrin) Requirement already satisfied (use --upgrade to upgrade): pyorient in /usr/local/lib/python3.5/dist-packages (from sovrin) Requirement already satisfied (use --upgrade to upgrade): base58 in /usr/local/lib/python3.5/dist-packages (from sovrin) Requirement already satisfied (use --upgrade to upgrade): ledger in /usr/local/lib/python3.5/dist-packages (from sovrin) Requirement already satisfied (use --upgrade to upgrade): ioflo==1.5.4 in /usr/local/lib/python3.5/dist-packages (from plenum->sovrin) Requirement already satisfied (use --upgrade to upgrade): raet in /usr/local/lib/python3.5/dist-packages (from plenum->sovrin) Requirement already satisfied (use --upgrade to upgrade): portalocker in /usr/local/lib/python3.5/dist-packages (from plenum->sovrin) Requirement already satisfied (use --upgrade to upgrade): jsonpickle in /usr/local/lib/python3.5/dist-packages (from plenum->sovrin) Requirement already satisfied (use --upgrade to upgrade): prompt-toolkit==0.57 in /usr/local/lib/python3.5/dist-packages (from plenum->sovrin) Requirement already satisfied (use --upgrade to upgrade): pygments in /usr/local/lib/python3.5/dist-packages (from plenum->sovrin) Collecting Charm-Crypto==0.43 (from anoncreds->sovrin) Using cached Charm-Crypto-0.43.tar.gz Requested Charm-Crypto==0.43 from https://pypi.python.org/packages/2b/6b/2c2abcb66f62155a60f5ecfe6936f651ecb9a115a2203c1b1d60d0e8d15e/Charm-Crypto-0.43.tar.gz#md5=eaba7346c6ac50079a4b7f75f5ce644d (from anoncreds->sovrin), but installing version None Collecting pytest==3.0.2 (from anoncreds->sovrin) Using cached pytest-3.0.2-py2.py3-none-any.whl Collecting lazy-object-proxy (from anoncreds->sovrin) Using cached lazy_object_proxy-1.2.2-cp35-cp35m-manylinux1_x86_64.whl Requirement already satisfied (use --upgrade to upgrade): libnacl>=1.4.3 in /usr/local/lib/python3.5/dist-packages (from raet->plenum->sovrin) Requirement already satisfied (use --upgrade to upgrade): six>=1.6.1 in /usr/lib/python3/dist-packages (from raet->plenum->sovrin) Requirement already satisfied (use --upgrade to upgrade): wcwidth in /usr/local/lib/python3.5/dist-packages (from prompt-toolkit==0.57->plenum->sovrin) Requirement already satisfied (use --upgrade to upgrade): setuptools in /usr/lib/python3/dist-packages (from Charm-Crypto==0.43->anoncreds->sovrin) Requirement already satisfied (use --upgrade to upgrade): pyparsing>=1.5.5 in /usr/local/lib/python3.5/dist-packages (from Charm-Crypto==0.43->anoncreds->sovrin) Collecting py>=1.4.29 (from pytest==3.0.2->anoncreds->sovrin) Using cached py-1.4.31-py2.py3-none-any.whl Building wheels for collected packages: Charm-Crypto Running setup.py bdist_wheel for Charm-Crypto ... error Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;file='/tmp/pip-build-4z2qn_xv/Charm-Crypto/setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" bdist_wheel -d /tmp/tmp_m4xnytupip-wheel- --python-tag cp35: Platform: Linux Config file: config.mk Warning, using default config vaules. You probably want to run ./configure.sh first. running bdist_wheel running build running build_py creating build creating build/lib.linux-x86_64-3.5 creating build/lib.linux-x86_64-3.5/charm copying charm/config.py -> build/lib.linux-x86_64-3.5/charm copying charm/init.py -> build/lib.linux-x86_64-3.5/charm creating build/lib.linux-x86_64-3.5/charm/core copying charm/core/init.py -> build/lib.linux-x86_64-3.5/charm/core creating build/lib.linux-x86_64-3.5/charm/core/crypto copying charm/core/crypto/init.py -> build/lib.linux-x86_64-3.5/charm/core/crypto creating build/lib.linux-x86_64-3.5/charm/core/engine copying charm/core/engine/protocol.py -> build/lib.linux-x86_64-3.5/charm/core/engine copying charm/core/engine/util.py -> build/lib.linux-x86_64-3.5/charm/core/engine copying charm/core/engine/init.py -> build/lib.linux-x86_64-3.5/charm/core/engine creating build/lib.linux-x86_64-3.5/charm/core/math copying charm/core/math/init.py -> build/lib.linux-x86_64-3.5/charm/core/math creating build/lib.linux-x86_64-3.5/charm/test copying charm/test/init.py -> build/lib.linux-x86_64-3.5/charm/test creating build/lib.linux-x86_64-3.5/charm/test/schemes copying charm/test/schemes/commit_test.py -> build/lib.linux-x86_64-3.5/charm/test/schemes copying charm/test/schemes/dabenc_test.py -> build/lib.linux-x86_64-3.5/charm/test/schemes copying charm/test/schemes/encap_bchk05_test.py -> build/lib.linux-x86_64-3.5/charm/test/schemes copying charm/test/schemes/pksig_test.py -> build/lib.linux-x86_64-3.5/charm/test/schemes copying charm/test/schemes/rsa_alg_test.py -> build/lib.linux-x86_64-3.5/charm/test/schemes copying charm/test/schemes/abenc_test.py -> build/lib.linux-x86_64-3.5/charm/test/schemes copying charm/test/schemes/hibenc_test.py -> build/lib.linux-x86_64-3.5/charm/test/schemes copying charm/test/schemes/chamhash_test.py -> build/lib.linux-x86_64-3.5/charm/test/schemes copying charm/test/schemes/ibenc_test.py -> build/lib.linux-x86_64-3.5/charm/test/schemes copying charm/test/schemes/pk_vrf_test.py -> build/lib.linux-x86_64-3.5/charm/test/schemes copying charm/test/schemes/pkenc_test.py -> build/lib.linux-x86_64-3.5/charm/test/schemes copying charm/test/schemes/grpsig_test.py -> build/lib.linux-x86_64-3.5/charm/test/schemes copying charm/test/schemes/init.py -> build/lib.linux-x86_64-3.5/charm/test/schemes creating build/lib.linux-x86_64-3.5/charm/test/toolbox copying charm/test/toolbox/secretshare_test.py -> build/lib.linux-x86_64-3.5/charm/test/toolbox copying charm/test/toolbox/symcrypto_test.py -> build/lib.linux-x86_64-3.5/charm/test/toolbox copying charm/test/toolbox/conversion_test.py -> build/lib.linux-x86_64-3.5/charm/test/toolbox copying charm/test/toolbox/paddingschemes_test.py -> build/lib.linux-x86_64-3.5/charm/test/toolbox copying charm/test/toolbox/init.py -> build/lib.linux-x86_64-3.5/charm/test/toolbox creating build/lib.linux-x86_64-3.5/charm/toolbox copying charm/toolbox/sigmaprotocol.py -> build/lib.linux-x86_64-3.5/charm/toolbox copying charm/toolbox/hash_module.py -> build/lib.linux-x86_64-3.5/charm/toolbox copying charm/toolbox/Commit.py -> build/lib.linux-x86_64-3.5/charm/toolbox copying charm/toolbox/enum.py -> build/lib.linux-x86_64-3.5/charm/toolbox copying charm/toolbox/specialprimes.py -> build/lib.linux-x86_64-3.5/charm/toolbox copying charm/toolbox/conversion.py -> build/lib.linux-x86_64-3.5/charm/toolbox copying charm/toolbox/xmlserialize.py -> build/lib.linux-x86_64-3.5/charm/toolbox copying charm/toolbox/ABEnc.py -> build/lib.linux-x86_64-3.5/charm/toolbox copying charm/toolbox/symcrypto.py -> build/lib.linux-x86_64-3.5/charm/toolbox copying charm/toolbox/iterate.py -> build/lib.linux-x86_64-3.5/charm/toolbox copying charm/toolbox/matrixops.py -> build/lib.linux-x86_64-3.5/charm/toolbox copying charm/toolbox/FSA.py -> build/lib.linux-x86_64-3.5/charm/toolbox copying charm/toolbox/securerandom.py -> build/lib.linux-x86_64-3.5/charm/toolbox copying charm/toolbox/ABEncMultiAuth.py -> build/lib.linux-x86_64-3.5/charm/toolbox copying charm/toolbox/secretutil.py -> build/lib.linux-x86_64-3.5/charm/toolbox copying charm/toolbox/ecgroup.py -> build/lib.linux-x86_64-3.5/charm/toolbox copying charm/toolbox/policytree.py -> build/lib.linux-x86_64-3.5/charm/toolbox copying charm/toolbox/paddingschemes.py -> build/lib.linux-x86_64-3.5/charm/toolbox copying charm/toolbox/secretshare.py -> build/lib.linux-x86_64-3.5/charm/toolbox copying charm/toolbox/schemebase.py -> build/lib.linux-x86_64-3.5/charm/toolbox copying charm/toolbox/IBEnc.py -> build/lib.linux-x86_64-3.5/charm/toolbox copying charm/toolbox/node.py -> build/lib.linux-x86_64-3.5/charm/toolbox copying charm/toolbox/DFA.py -> build/lib.linux-x86_64-3.5/charm/toolbox copying charm/toolbox/reCompiler.py -> build/lib.linux-x86_64-3.5/charm/toolbox copying charm/toolbox/bitstring.py -> build/lib.linux-x86_64-3.5/charm/toolbox copying charm/toolbox/Hash.py -> build/lib.linux-x86_64-3.5/charm/toolbox copying charm/toolbox/eccurve.py -> build/lib.linux-x86_64-3.5/charm/toolbox copying charm/toolbox/IBSig.py -> build/lib.linux-x86_64-3.5/charm/toolbox copying charm/toolbox/integergroup.py -> build/lib.linux-x86_64-3.5/charm/toolbox copying charm/toolbox/paddingschemes_test.py -> build/lib.linux-x86_64-3.5/charm/toolbox copying charm/toolbox/PKEnc.py -> build/lib.linux-x86_64-3.5/charm/toolbox copying charm/toolbox/PKSig.py -> build/lib.linux-x86_64-3.5/charm/toolbox copying charm/toolbox/zknode.py -> build/lib.linux-x86_64-3.5/charm/toolbox copying charm/toolbox/init.py -> build/lib.linux-x86_64-3.5/charm/toolbox copying charm/toolbox/pairinggroup.py -> build/lib.linux-x86_64-3.5/charm/toolbox copying charm/toolbox/pairingcurves.py -> build/lib.linux-x86_64-3.5/charm/toolbox copying charm/toolbox/redundancyschemes.py -> build/lib.linux-x86_64-3.5/charm/toolbox creating build/lib.linux-x86_64-3.5/charm/zkp_compiler copying charm/zkp_compiler/zk_demo.py -> build/lib.linux-x86_64-3.5/charm/zkp_compiler copying charm/zkp_compiler/zkp_generator.py -> build/lib.linux-x86_64-3.5/charm/zkp_compiler copying charm/zkp_compiler/zkparser.py -> build/lib.linux-x86_64-3.5/charm/zkp_compiler copying charm/zkp_compiler/init.py -> build/lib.linux-x86_64-3.5/charm/zkp_compiler creating build/lib.linux-x86_64-3.5/charm/schemes copying charm/schemes/pre_mg07.py -> build/lib.linux-x86_64-3.5/charm/schemes copying charm/schemes/joye_scheme.py -> build/lib.linux-x86_64-3.5/charm/schemes copying charm/schemes/pk_vrf.py -> build/lib.linux-x86_64-3.5/charm/schemes copying charm/schemes/protocol_a01.py -> build/lib.linux-x86_64-3.5/charm/schemes copying charm/schemes/sigma2.py -> build/lib.linux-x86_64-3.5/charm/schemes copying charm/schemes/pk_fre_ccv11.py -> build/lib.linux-x86_64-3.5/charm/schemes copying charm/schemes/protocol_ao00.py -> build/lib.linux-x86_64-3.5/charm/schemes copying charm/schemes/encap_bchk05.py -> build/lib.linux-x86_64-3.5/charm/schemes copying charm/schemes/sigma3.py -> build/lib.linux-x86_64-3.5/charm/schemes copying charm/schemes/chamhash_rsa_hw09.py -> build/lib.linux-x86_64-3.5/charm/schemes copying charm/schemes/dabe_aw11.py -> build/lib.linux-x86_64-3.5/charm/schemes copying charm/schemes/sigma1.py -> build/lib.linux-x86_64-3.5/charm/schemes copying charm/schemes/protocol_schnorr91.py -> build/lib.linux-x86_64-3.5/charm/schemes copying charm/schemes/protocol_cns07.py -> build/lib.linux-x86_64-3.5/charm/schemes copying charm/schemes/init.py -> build/lib.linux-x86_64-3.5/charm/schemes copying charm/schemes/chamhash_adm05.py -> build/lib.linux-x86_64-3.5/charm/schemes copying charm/schemes/lem_scheme.py -> build/lib.linux-x86_64-3.5/charm/schemes creating build/lib.linux-x86_64-3.5/charm/schemes/ibenc copying charm/schemes/ibenc/ibenc_waters09.py -> build/lib.linux-x86_64-3.5/charm/schemes/ibenc copying charm/schemes/ibenc/ibenc_bf01.py -> build/lib.linux-x86_64-3.5/charm/schemes/ibenc copying charm/schemes/ibenc/ibenc_waters05.py -> build/lib.linux-x86_64-3.5/charm/schemes/ibenc copying charm/schemes/ibenc/ibenc_sw05.py -> build/lib.linux-x86_64-3.5/charm/schemes/ibenc copying charm/schemes/ibenc/ibenc_ckrs09.py -> build/lib.linux-x86_64-3.5/charm/schemes/ibenc copying charm/schemes/ibenc/ibenc_waters05_z.py -> build/lib.linux-x86_64-3.5/charm/schemes/ibenc copying charm/schemes/ibenc/ibenc_bb03.py -> build/lib.linux-x86_64-3.5/charm/schemes/ibenc copying charm/schemes/ibenc/ibenc_CW13_z.py -> build/lib.linux-x86_64-3.5/charm/schemes/ibenc copying charm/schemes/ibenc/ibenc_lsw08.py -> build/lib.linux-x86_64-3.5/charm/schemes/ibenc copying charm/schemes/ibenc/ibenc_cllww12_z.py -> build/lib.linux-x86_64-3.5/charm/schemes/ibenc copying charm/schemes/ibenc/ibenc_waters09_z.py -> build/lib.linux-x86_64-3.5/charm/schemes/ibenc copying charm/schemes/ibenc/init.py -> build/lib.linux-x86_64-3.5/charm/schemes/ibenc creating build/lib.linux-x86_64-3.5/charm/schemes/abenc copying charm/schemes/abenc/abenc_bsw07.py -> build/lib.linux-x86_64-3.5/charm/schemes/abenc copying charm/schemes/abenc/tbpre-liu-14.py -> build/lib.linux-x86_64-3.5/charm/schemes/abenc copying charm/schemes/abenc/dac-macs-yang-14.py -> build/lib.linux-x86_64-3.5/charm/schemes/abenc copying charm/schemes/abenc/abenc_waters09.py -> build/lib.linux-x86_64-3.5/charm/schemes/abenc copying charm/schemes/abenc/maabe-yang-14.py -> build/lib.linux-x86_64-3.5/charm/schemes/abenc copying charm/schemes/abenc/dfa_fe12.py -> build/lib.linux-x86_64-3.5/charm/schemes/abenc copying charm/schemes/abenc/pk_hve08.py -> build/lib.linux-x86_64-3.5/charm/schemes/abenc copying charm/schemes/abenc/abenc_lsw08.py -> build/lib.linux-x86_64-3.5/charm/schemes/abenc copying charm/schemes/abenc/abenc_yct14.py -> build/lib.linux-x86_64-3.5/charm/schemes/abenc copying charm/schemes/abenc/init.py -> build/lib.linux-x86_64-3.5/charm/schemes/abenc creating build/lib.linux-x86_64-3.5/charm/schemes/pkenc copying charm/schemes/pkenc/pkenc_gm82.py -> build/lib.linux-x86_64-3.5/charm/schemes/pkenc copying charm/schemes/pkenc/pkenc_paillier99.py -> build/lib.linux-x86_64-3.5/charm/schemes/pkenc copying charm/schemes/pkenc/pkenc_elgamal85.py -> build/lib.linux-x86_64-3.5/charm/schemes/pkenc copying charm/schemes/pkenc/pkenc_rsa.py -> build/lib.linux-x86_64-3.5/charm/schemes/pkenc copying charm/schemes/pkenc/pkenc_rabin.py -> build/lib.linux-x86_64-3.5/charm/schemes/pkenc copying charm/schemes/pkenc/init.py -> build/lib.linux-x86_64-3.5/charm/schemes/pkenc copying charm/schemes/pkenc/pkenc_cs98.py -> build/lib.linux-x86_64-3.5/charm/schemes/pkenc creating build/lib.linux-x86_64-3.5/charm/schemes/hibenc copying charm/schemes/hibenc/hibenc_bb04.py -> build/lib.linux-x86_64-3.5/charm/schemes/hibenc copying charm/schemes/hibenc/hibenc_lew11.py -> build/lib.linux-x86_64-3.5/charm/schemes/hibenc copying charm/schemes/hibenc/init.py -> build/lib.linux-x86_64-3.5/charm/schemes/hibenc creating build/lib.linux-x86_64-3.5/charm/schemes/pksig copying charm/schemes/pksig/pksig_cyh.py -> build/lib.linux-x86_64-3.5/charm/schemes/pksig copying charm/schemes/pksig/pksig_rsa_hw09.py -> build/lib.linux-x86_64-3.5/charm/schemes/pksig copying charm/schemes/pksig/pksig_hw.py -> build/lib.linux-x86_64-3.5/charm/schemes/pksig copying charm/schemes/pksig/pksig_cl03.py -> build/lib.linux-x86_64-3.5/charm/schemes/pksig copying charm/schemes/pksig/pksig_bls04.py -> build/lib.linux-x86_64-3.5/charm/schemes/pksig copying charm/schemes/pksig/pksig_CW13_z.py -> build/lib.linux-x86_64-3.5/charm/schemes/pksig copying charm/schemes/pksig/pksig_waters05.py -> build/lib.linux-x86_64-3.5/charm/schemes/pksig copying charm/schemes/pksig/pksig_boyen.py -> build/lib.linux-x86_64-3.5/charm/schemes/pksig copying charm/schemes/pksig/pksig_waters.py -> build/lib.linux-x86_64-3.5/charm/schemes/pksig copying charm/schemes/pksig/pksig_waters09.py -> build/lib.linux-x86_64-3.5/charm/schemes/pksig copying charm/schemes/pksig/pksig_chch.py -> build/lib.linux-x86_64-3.5/charm/schemes/pksig copying charm/schemes/pksig/pksig_chp.py -> build/lib.linux-x86_64-3.5/charm/schemes/pksig copying charm/schemes/pksig/pksig_cl04.py -> build/lib.linux-x86_64-3.5/charm/schemes/pksig copying charm/schemes/pksig/pksig_hess.py -> build/lib.linux-x86_64-3.5/charm/schemes/pksig copying charm/schemes/pksig/pksig_cllww12_z.py -> build/lib.linux-x86_64-3.5/charm/schemes/pksig copying charm/schemes/pksig/pksig_dsa.py -> build/lib.linux-x86_64-3.5/charm/schemes/pksig copying charm/schemes/pksig/pksig_schnorr91.py -> build/lib.linux-x86_64-3.5/charm/schemes/pksig copying charm/schemes/pksig/pksig_ecdsa.py -> build/lib.linux-x86_64-3.5/charm/schemes/pksig copying charm/schemes/pksig/init.py -> build/lib.linux-x86_64-3.5/charm/schemes/pksig creating build/lib.linux-x86_64-3.5/charm/schemes/commit copying charm/schemes/commit/commit_gs08.py -> build/lib.linux-x86_64-3.5/charm/schemes/commit copying charm/schemes/commit/commit_pedersen92.py -> build/lib.linux-x86_64-3.5/charm/schemes/commit copying charm/schemes/commit/init.py -> build/lib.linux-x86_64-3.5/charm/schemes/commit creating build/lib.linux-x86_64-3.5/charm/schemes/grpsig copying charm/schemes/grpsig/groupsig_bgls04.py -> build/lib.linux-x86_64-3.5/charm/schemes/grpsig copying charm/schemes/grpsig/groupsig_bgls04_var.py -> build/lib.linux-x86_64-3.5/charm/schemes/grpsig copying charm/schemes/grpsig/init.py -> build/lib.linux-x86_64-3.5/charm/schemes/grpsig creating build/lib.linux-x86_64-3.5/charm/adapters copying charm/adapters/ibenc_adapt_identityhash.py -> build/lib.linux-x86_64-3.5/charm/adapters copying charm/adapters/ibenc_adapt_hybrid.py -> build/lib.linux-x86_64-3.5/charm/adapters copying charm/adapters/pkenc_adapt_hybrid.py -> build/lib.linux-x86_64-3.5/charm/adapters copying charm/adapters/pkenc_adapt_bchk05.py -> build/lib.linux-x86_64-3.5/charm/adapters copying charm/adapters/pksig_adapt_naor01.py -> build/lib.linux-x86_64-3.5/charm/adapters copying charm/adapters/kpabenc_adapt_hybrid.py -> build/lib.linux-x86_64-3.5/charm/adapters copying charm/adapters/pkenc_adapt_chk04.py -> build/lib.linux-x86_64-3.5/charm/adapters copying charm/adapters/abenc_adapt_hybrid.py -> build/lib.linux-x86_64-3.5/charm/adapters copying charm/adapters/init.py -> build/lib.linux-x86_64-3.5/charm/adapters copying charm/adapters/dabenc_adapt_hybrid.py -> build/lib.linux-x86_64-3.5/charm/adapters running build_ext building 'charm.core.math.pairing' extension creating build/temp.linux-x86_64-3.5 creating build/temp.linux-x86_64-3.5/charm creating build/temp.linux-x86_64-3.5/charm/core creating build/temp.linux-x86_64-3.5/charm/core/math creating build/temp.linux-x86_64-3.5/charm/core/math/pairing creating build/temp.linux-x86_64-3.5/charm/core/utilities creating build/temp.linux-x86_64-3.5/charm/core/benchmark x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DBENCHMARK_ENABLED=1 -Icharm/core/utilities/ -Icharm/core/benchmark/ -I/usr/include/python3.5m -c charm/core/math/pairing/pairingmodule.c -o build/temp.linux-x86_64-3.5/charm/core/math/pairing/pairingmodule.o In file included from charm/core/math/pairing/pairingmodule.c:30:0: charm/core/math/pairing/pairingmodule.h:37:17: fatal error: gmp.h: No such file or directory compilation terminated. error: command 'x86_64-linux-gnu-gcc' failed with exit status 1


Failed building wheel for Charm-Crypto Running setup.py clean for Charm-Crypto Failed to build Charm-Crypto Installing collected packages: Charm-Crypto, py, pytest, lazy-object-proxy, anoncreds, sovrin Running setup.py install for Charm-Crypto ... error Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;file='/tmp/pip-build-4z2qn_xv/Charm-Crypto/setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record /tmp/pip-51nabgyf-record/install-record.txt --single-version-externally-managed --compile: Platform: Linux Config file: config.mk Warning, using default config vaules. You probably want to run ./configure.sh first. running install running build running build_py creating build creating build/lib.linux-x86_64-3.5 creating build/lib.linux-x86_64-3.5/charm copying charm/config.py -> build/lib.linux-x86_64-3.5/charm copying charm/init.py -> build/lib.linux-x86_64-3.5/charm creating build/lib.linux-x86_64-3.5/charm/core copying charm/core/init.py -> build/lib.linux-x86_64-3.5/charm/core creating build/lib.linux-x86_64-3.5/charm/core/crypto copying charm/core/crypto/init.py -> build/lib.linux-x86_64-3.5/charm/core/crypto creating build/lib.linux-x86_64-3.5/charm/core/engine copying charm/core/engine/protocol.py -> build/lib.linux-x86_64-3.5/charm/core/engine copying charm/core/engine/util.py -> build/lib.linux-x86_64-3.5/charm/core/engine copying charm/core/engine/init.py -> build/lib.linux-x86_64-3.5/charm/core/engine creating build/lib.linux-x86_64-3.5/charm/core/math copying charm/core/math/init.py -> build/lib.linux-x86_64-3.5/charm/core/math creating build/lib.linux-x86_64-3.5/charm/test copying charm/test/init.py -> build/lib.linux-x86_64-3.5/charm/test creating build/lib.linux-x86_64-3.5/charm/test/schemes copying charm/test/schemes/commit_test.py -> build/lib.linux-x86_64-3.5/charm/test/schemes copying charm/test/schemes/dabenc_test.py -> build/lib.linux-x86_64-3.5/charm/test/schemes copying charm/test/schemes/encap_bchk05_test.py -> build/lib.linux-x86_64-3.5/charm/test/schemes copying charm/test/schemes/pksig_test.py -> build/lib.linux-x86_64-3.5/charm/test/schemes copying charm/test/schemes/rsa_alg_test.py -> build/lib.linux-x86_64-3.5/charm/test/schemes copying charm/test/schemes/abenc_test.py -> build/lib.linux-x86_64-3.5/charm/test/schemes copying charm/test/schemes/hibenc_test.py -> build/lib.linux-x86_64-3.5/charm/test/schemes copying charm/test/schemes/chamhash_test.py -> build/lib.linux-x86_64-3.5/charm/test/schemes copying charm/test/schemes/ibenc_test.py -> build/lib.linux-x86_64-3.5/charm/test/schemes copying charm/test/schemes/pk_vrf_test.py -> build/lib.linux-x86_64-3.5/charm/test/schemes copying charm/test/schemes/pkenc_test.py -> build/lib.linux-x86_64-3.5/charm/test/schemes copying charm/test/schemes/grpsig_test.py -> build/lib.linux-x86_64-3.5/charm/test/schemes copying charm/test/schemes/init.py -> build/lib.linux-x86_64-3.5/charm/test/schemes creating build/lib.linux-x86_64-3.5/charm/test/toolbox copying charm/test/toolbox/secretshare_test.py -> build/lib.linux-x86_64-3.5/charm/test/toolbox copying charm/test/toolbox/symcrypto_test.py -> build/lib.linux-x86_64-3.5/charm/test/toolbox copying charm/test/toolbox/conversion_test.py -> build/lib.linux-x86_64-3.5/charm/test/toolbox copying charm/test/toolbox/paddingschemes_test.py -> build/lib.linux-x86_64-3.5/charm/test/toolbox copying charm/test/toolbox/init.py -> build/lib.linux-x86_64-3.5/charm/test/toolbox creating build/lib.linux-x86_64-3.5/charm/toolbox copying charm/toolbox/sigmaprotocol.py -> build/lib.linux-x86_64-3.5/charm/toolbox copying charm/toolbox/hash_module.py -> build/lib.linux-x86_64-3.5/charm/toolbox copying charm/toolbox/Commit.py -> build/lib.linux-x86_64-3.5/charm/toolbox copying charm/toolbox/enum.py -> build/lib.linux-x86_64-3.5/charm/toolbox copying charm/toolbox/specialprimes.py -> build/lib.linux-x86_64-3.5/charm/toolbox copying charm/toolbox/conversion.py -> build/lib.linux-x86_64-3.5/charm/toolbox copying charm/toolbox/xmlserialize.py -> build/lib.linux-x86_64-3.5/charm/toolbox copying charm/toolbox/ABEnc.py -> build/lib.linux-x86_64-3.5/charm/toolbox copying charm/toolbox/symcrypto.py -> build/lib.linux-x86_64-3.5/charm/toolbox copying charm/toolbox/iterate.py -> build/lib.linux-x86_64-3.5/charm/toolbox copying charm/toolbox/matrixops.py -> build/lib.linux-x86_64-3.5/charm/toolbox copying charm/toolbox/FSA.py -> build/lib.linux-x86_64-3.5/charm/toolbox copying charm/toolbox/securerandom.py -> build/lib.linux-x86_64-3.5/charm/toolbox copying charm/toolbox/ABEncMultiAuth.py -> build/lib.linux-x86_64-3.5/charm/toolbox copying charm/toolbox/secretutil.py -> build/lib.linux-x86_64-3.5/charm/toolbox copying charm/toolbox/ecgroup.py -> build/lib.linux-x86_64-3.5/charm/toolbox copying charm/toolbox/policytree.py -> build/lib.linux-x86_64-3.5/charm/toolbox copying charm/toolbox/paddingschemes.py -> build/lib.linux-x86_64-3.5/charm/toolbox copying charm/toolbox/secretshare.py -> build/lib.linux-x86_64-3.5/charm/toolbox copying charm/toolbox/schemebase.py -> build/lib.linux-x86_64-3.5/charm/toolbox copying charm/toolbox/IBEnc.py -> build/lib.linux-x86_64-3.5/charm/toolbox copying charm/toolbox/node.py -> build/lib.linux-x86_64-3.5/charm/toolbox copying charm/toolbox/DFA.py -> build/lib.linux-x86_64-3.5/charm/toolbox copying charm/toolbox/reCompiler.py -> build/lib.linux-x86_64-3.5/charm/toolbox copying charm/toolbox/bitstring.py -> build/lib.linux-x86_64-3.5/charm/toolbox copying charm/toolbox/Hash.py -> build/lib.linux-x86_64-3.5/charm/toolbox copying charm/toolbox/eccurve.py -> build/lib.linux-x86_64-3.5/charm/toolbox copying charm/toolbox/IBSig.py -> build/lib.linux-x86_64-3.5/charm/toolbox copying charm/toolbox/integergroup.py -> build/lib.linux-x86_64-3.5/charm/toolbox copying charm/toolbox/paddingschemes_test.py -> build/lib.linux-x86_64-3.5/charm/toolbox copying charm/toolbox/PKEnc.py -> build/lib.linux-x86_64-3.5/charm/toolbox copying charm/toolbox/PKSig.py -> build/lib.linux-x86_64-3.5/charm/toolbox copying charm/toolbox/zknode.py -> build/lib.linux-x86_64-3.5/charm/toolbox copying charm/toolbox/init.py -> build/lib.linux-x86_64-3.5/charm/toolbox copying charm/toolbox/pairinggroup.py -> build/lib.linux-x86_64-3.5/charm/toolbox copying charm/toolbox/pairingcurves.py -> build/lib.linux-x86_64-3.5/charm/toolbox copying charm/toolbox/redundancyschemes.py -> build/lib.linux-x86_64-3.5/charm/toolbox creating build/lib.linux-x86_64-3.5/charm/zkp_compiler copying charm/zkp_compiler/zk_demo.py -> build/lib.linux-x86_64-3.5/charm/zkp_compiler copying charm/zkp_compiler/zkp_generator.py -> build/lib.linux-x86_64-3.5/charm/zkp_compiler copying charm/zkp_compiler/zkparser.py -> build/lib.linux-x86_64-3.5/charm/zkp_compiler copying charm/zkp_compiler/init.py -> build/lib.linux-x86_64-3.5/charm/zkp_compiler creating build/lib.linux-x86_64-3.5/charm/schemes copying charm/schemes/pre_mg07.py -> build/lib.linux-x86_64-3.5/charm/schemes copying charm/schemes/joye_scheme.py -> build/lib.linux-x86_64-3.5/charm/schemes copying charm/schemes/pk_vrf.py -> build/lib.linux-x86_64-3.5/charm/schemes copying charm/schemes/protocol_a01.py -> build/lib.linux-x86_64-3.5/charm/schemes copying charm/schemes/sigma2.py -> build/lib.linux-x86_64-3.5/charm/schemes copying charm/schemes/pk_fre_ccv11.py -> build/lib.linux-x86_64-3.5/charm/schemes copying charm/schemes/protocol_ao00.py -> build/lib.linux-x86_64-3.5/charm/schemes copying charm/schemes/encap_bchk05.py -> build/lib.linux-x86_64-3.5/charm/schemes copying charm/schemes/sigma3.py -> build/lib.linux-x86_64-3.5/charm/schemes copying charm/schemes/chamhash_rsa_hw09.py -> build/lib.linux-x86_64-3.5/charm/schemes copying charm/schemes/dabe_aw11.py -> build/lib.linux-x86_64-3.5/charm/schemes copying charm/schemes/sigma1.py -> build/lib.linux-x86_64-3.5/charm/schemes copying charm/schemes/protocol_schnorr91.py -> build/lib.linux-x86_64-3.5/charm/schemes copying charm/schemes/protocol_cns07.py -> build/lib.linux-x86_64-3.5/charm/schemes copying charm/schemes/init.py -> build/lib.linux-x86_64-3.5/charm/schemes copying charm/schemes/chamhash_adm05.py -> build/lib.linux-x86_64-3.5/charm/schemes copying charm/schemes/lem_scheme.py -> build/lib.linux-x86_64-3.5/charm/schemes creating build/lib.linux-x86_64-3.5/charm/schemes/ibenc copying charm/schemes/ibenc/ibenc_waters09.py -> build/lib.linux-x86_64-3.5/charm/schemes/ibenc copying charm/schemes/ibenc/ibenc_bf01.py -> build/lib.linux-x86_64-3.5/charm/schemes/ibenc copying charm/schemes/ibenc/ibenc_waters05.py -> build/lib.linux-x86_64-3.5/charm/schemes/ibenc copying charm/schemes/ibenc/ibenc_sw05.py -> build/lib.linux-x86_64-3.5/charm/schemes/ibenc copying charm/schemes/ibenc/ibenc_ckrs09.py -> build/lib.linux-x86_64-3.5/charm/schemes/ibenc copying charm/schemes/ibenc/ibenc_waters05_z.py -> build/lib.linux-x86_64-3.5/charm/schemes/ibenc copying charm/schemes/ibenc/ibenc_bb03.py -> build/lib.linux-x86_64-3.5/charm/schemes/ibenc copying charm/schemes/ibenc/ibenc_CW13_z.py -> build/lib.linux-x86_64-3.5/charm/schemes/ibenc copying charm/schemes/ibenc/ibenc_lsw08.py -> build/lib.linux-x86_64-3.5/charm/schemes/ibenc copying charm/schemes/ibenc/ibenc_cllww12_z.py -> build/lib.linux-x86_64-3.5/charm/schemes/ibenc copying charm/schemes/ibenc/ibenc_waters09_z.py -> build/lib.linux-x86_64-3.5/charm/schemes/ibenc copying charm/schemes/ibenc/init.py -> build/lib.linux-x86_64-3.5/charm/schemes/ibenc creating build/lib.linux-x86_64-3.5/charm/schemes/abenc copying charm/schemes/abenc/abenc_bsw07.py -> build/lib.linux-x86_64-3.5/charm/schemes/abenc copying charm/schemes/abenc/tbpre-liu-14.py -> build/lib.linux-x86_64-3.5/charm/schemes/abenc copying charm/schemes/abenc/dac-macs-yang-14.py -> build/lib.linux-x86_64-3.5/charm/schemes/abenc copying charm/schemes/abenc/abenc_waters09.py -> build/lib.linux-x86_64-3.5/charm/schemes/abenc copying charm/schemes/abenc/maabe-yang-14.py -> build/lib.linux-x86_64-3.5/charm/schemes/abenc copying charm/schemes/abenc/dfa_fe12.py -> build/lib.linux-x86_64-3.5/charm/schemes/abenc copying charm/schemes/abenc/pk_hve08.py -> build/lib.linux-x86_64-3.5/charm/schemes/abenc copying charm/schemes/abenc/abenc_lsw08.py -> build/lib.linux-x86_64-3.5/charm/schemes/abenc copying charm/schemes/abenc/abenc_yct14.py -> build/lib.linux-x86_64-3.5/charm/schemes/abenc copying charm/schemes/abenc/init.py -> build/lib.linux-x86_64-3.5/charm/schemes/abenc creating build/lib.linux-x86_64-3.5/charm/schemes/pkenc copying charm/schemes/pkenc/pkenc_gm82.py -> build/lib.linux-x86_64-3.5/charm/schemes/pkenc copying charm/schemes/pkenc/pkenc_paillier99.py -> build/lib.linux-x86_64-3.5/charm/schemes/pkenc copying charm/schemes/pkenc/pkenc_elgamal85.py -> build/lib.linux-x86_64-3.5/charm/schemes/pkenc copying charm/schemes/pkenc/pkenc_rsa.py -> build/lib.linux-x86_64-3.5/charm/schemes/pkenc copying charm/schemes/pkenc/pkenc_rabin.py -> build/lib.linux-x86_64-3.5/charm/schemes/pkenc copying charm/schemes/pkenc/init.py -> build/lib.linux-x86_64-3.5/charm/schemes/pkenc copying charm/schemes/pkenc/pkenc_cs98.py -> build/lib.linux-x86_64-3.5/charm/schemes/pkenc creating build/lib.linux-x86_64-3.5/charm/schemes/hibenc copying charm/schemes/hibenc/hibenc_bb04.py -> build/lib.linux-x86_64-3.5/charm/schemes/hibenc copying charm/schemes/hibenc/hibenc_lew11.py -> build/lib.linux-x86_64-3.5/charm/schemes/hibenc copying charm/schemes/hibenc/init.py -> build/lib.linux-x86_64-3.5/charm/schemes/hibenc creating build/lib.linux-x86_64-3.5/charm/schemes/pksig copying charm/schemes/pksig/pksig_cyh.py -> build/lib.linux-x86_64-3.5/charm/schemes/pksig copying charm/schemes/pksig/pksig_rsa_hw09.py -> build/lib.linux-x86_64-3.5/charm/schemes/pksig copying charm/schemes/pksig/pksig_hw.py -> build/lib.linux-x86_64-3.5/charm/schemes/pksig copying charm/schemes/pksig/pksig_cl03.py -> build/lib.linux-x86_64-3.5/charm/schemes/pksig copying charm/schemes/pksig/pksig_bls04.py -> build/lib.linux-x86_64-3.5/charm/schemes/pksig copying charm/schemes/pksig/pksig_CW13_z.py -> build/lib.linux-x86_64-3.5/charm/schemes/pksig copying charm/schemes/pksig/pksig_waters05.py -> build/lib.linux-x86_64-3.5/charm/schemes/pksig copying charm/schemes/pksig/pksig_boyen.py -> build/lib.linux-x86_64-3.5/charm/schemes/pksig copying charm/schemes/pksig/pksig_waters.py -> build/lib.linux-x86_64-3.5/charm/schemes/pksig copying charm/schemes/pksig/pksig_waters09.py -> build/lib.linux-x86_64-3.5/charm/schemes/pksig copying charm/schemes/pksig/pksig_chch.py -> build/lib.linux-x86_64-3.5/charm/schemes/pksig copying charm/schemes/pksig/pksig_chp.py -> build/lib.linux-x86_64-3.5/charm/schemes/pksig copying charm/schemes/pksig/pksig_cl04.py -> build/lib.linux-x86_64-3.5/charm/schemes/pksig copying charm/schemes/pksig/pksig_hess.py -> build/lib.linux-x86_64-3.5/charm/schemes/pksig copying charm/schemes/pksig/pksig_cllww12_z.py -> build/lib.linux-x86_64-3.5/charm/schemes/pksig copying charm/schemes/pksig/pksig_dsa.py -> build/lib.linux-x86_64-3.5/charm/schemes/pksig copying charm/schemes/pksig/pksig_schnorr91.py -> build/lib.linux-x86_64-3.5/charm/schemes/pksig copying charm/schemes/pksig/pksig_ecdsa.py -> build/lib.linux-x86_64-3.5/charm/schemes/pksig copying charm/schemes/pksig/init.py -> build/lib.linux-x86_64-3.5/charm/schemes/pksig creating build/lib.linux-x86_64-3.5/charm/schemes/commit copying charm/schemes/commit/commit_gs08.py -> build/lib.linux-x86_64-3.5/charm/schemes/commit copying charm/schemes/commit/commit_pedersen92.py -> build/lib.linux-x86_64-3.5/charm/schemes/commit copying charm/schemes/commit/init.py -> build/lib.linux-x86_64-3.5/charm/schemes/commit creating build/lib.linux-x86_64-3.5/charm/schemes/grpsig copying charm/schemes/grpsig/groupsig_bgls04.py -> build/lib.linux-x86_64-3.5/charm/schemes/grpsig copying charm/schemes/grpsig/groupsig_bgls04_var.py -> build/lib.linux-x86_64-3.5/charm/schemes/grpsig copying charm/schemes/grpsig/init.py -> build/lib.linux-x86_64-3.5/charm/schemes/grpsig creating build/lib.linux-x86_64-3.5/charm/adapters copying charm/adapters/ibenc_adapt_identityhash.py -> build/lib.linux-x86_64-3.5/charm/adapters copying charm/adapters/ibenc_adapt_hybrid.py -> build/lib.linux-x86_64-3.5/charm/adapters copying charm/adapters/pkenc_adapt_hybrid.py -> build/lib.linux-x86_64-3.5/charm/adapters copying charm/adapters/pkenc_adapt_bchk05.py -> build/lib.linux-x86_64-3.5/charm/adapters copying charm/adapters/pksig_adapt_naor01.py -> build/lib.linux-x86_64-3.5/charm/adapters copying charm/adapters/kpabenc_adapt_hybrid.py -> build/lib.linux-x86_64-3.5/charm/adapters copying charm/adapters/pkenc_adapt_chk04.py -> build/lib.linux-x86_64-3.5/charm/adapters copying charm/adapters/abenc_adapt_hybrid.py -> build/lib.linux-x86_64-3.5/charm/adapters copying charm/adapters/init.py -> build/lib.linux-x86_64-3.5/charm/adapters copying charm/adapters/dabenc_adapt_hybrid.py -> build/lib.linux-x86_64-3.5/charm/adapters running build_ext building 'charm.core.math.pairing' extension creating build/temp.linux-x86_64-3.5 creating build/temp.linux-x86_64-3.5/charm creating build/temp.linux-x86_64-3.5/charm/core creating build/temp.linux-x86_64-3.5/charm/core/math creating build/temp.linux-x86_64-3.5/charm/core/math/pairing creating build/temp.linux-x86_64-3.5/charm/core/utilities creating build/temp.linux-x86_64-3.5/charm/core/benchmark x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DBENCHMARK_ENABLED=1 -Icharm/core/utilities/ -Icharm/core/benchmark/ -I/usr/include/python3.5m -c charm/core/math/pairing/pairingmodule.c -o build/temp.linux-x86_64-3.5/charm/core/math/pairing/pairingmodule.o In file included from charm/core/math/pairing/pairingmodule.c:30:0: charm/core/math/pairing/pairingmodule.h:37:17: fatal error: gmp.h: No such file or directory compilation terminated. error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

----------------------------------------

Command "/usr/bin/python3 -u -c "import setuptools, tokenize;file='/tmp/pip-build-4z2qn_xv/Charm-Crypto/setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record /tmp/pip-51nabgyf-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-4z2qn_xv/Charm-Crypto/ `

dhh1128 commented 8 years ago

It looks to me like charm-crypto's setup is not guaranteeing the presence of the libgmp3-dev package on your box. Not sure why; @musquash, did you say what version of ubuntu you are on?

Try installing libgmp3-dev by hand and see if it eliminates the problem. If so, maybe we should introduce a more explicit dependency anoncreds-->libgmp3-dev to help?

musquash commented 8 years ago

Distributor ID: Ubuntu Description: Ubuntu 16.04.1 LTS Release: 16.04 Codename: xenial

I have installed libgmp3-dev by hand now but there ist still the same error.

dhh1128 commented 8 years ago

I would like an opinion from @lovesh.

AlexanderShekhovcov commented 8 years ago

I'd installed VM with xubuntu and got the same error after pip install sovrin.

dhh1128 commented 8 years ago

Okay, I was just able to dup the problem as well. I found a reference to some similar problems on stackoverflow (http://stackoverflow.com/questions/7351205/where-to-find-gmp-h), and I am digging in a bit more.

dhh1128 commented 8 years ago

I see that we have some dependencies that are assumed rather than documented. For example, openssl. Here's what I went through on an almost clean (already had installed build-essential and python3 packages) ubuntu machine to get it working.

sudo apt-get install libgmp3-dev libssl-dev wget https://crypto.stanford.edu/pbc/files/pbc-0.5.14.tar.gz tar xvf pbc-0.5.14.tar.gz cd pbc-0.5.14 ("sudo apt-get install flex bison" may be necessary, depending on what you already have on your system) ./configure make sudo make install pip install sovrin

howardkitto commented 8 years ago

I've been trying to install sovrin on my Mac - I get this error...

In file included from charm/core/math/pairing/pairingmodule.c:30: charm/core/math/pairing/pairingmodule.h:37:10: fatal error: 'gmp.h' file not found

include

I've tried various combinations of installing and uninstalling gmp but no luck yet

lovesh commented 8 years ago

@howardkitto Can you tell us which version of MacOs are you running? Also what version of python are you using like 3.5.x?

howardkitto commented 8 years ago

MacOS 10.12 Sierra

$ pip -V pip 8.1.2 from /Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages (python 3.5)

$ python -V Python 2.7.10

however

$ python3 -V Python 3.5.2

Maybe having to add the python version number is an issue?

dhh1128 commented 8 years ago

@howardkitto I will look into this. I am running OSX Sierra. I will report back.

musquash commented 8 years ago

Hey dhh1128 ,

it seems that this really was a solution. It works now for me. Thanks a lot. So should I close this problem now or should I wait until the Mac issue is done?

dhh1128 commented 8 years ago

I believe this has been resolved, now. If I'm wrong, please reopen.

fabienpe commented 7 years ago

Hello I've been trying to install sovrin on Ubuntu 16.04.1 LTS xenial but encountered the issue reported in this thread. I've tried the steps proposed by bhh1128 (posted on Oct 6th), but still get errors:

Collecting sovrin
  Using cached sovrin-0.1.131.tar.gz
Requirement already satisfied: base58 in /usr/local/lib/python3.5/dist-packages (from sovrin)
Requirement already satisfied: pyorient in /usr/local/lib/python3.5/dist-packages (from sovrin)
Requirement already satisfied: plenum in /usr/local/lib/python3.5/dist-packages (from sovrin)
Requirement already satisfied: ledger in /usr/local/lib/python3.5/dist-packages (from sovrin)
Requirement already satisfied: semver in /usr/local/lib/python3.5/dist-packages (from sovrin)
Collecting anoncreds (from sovrin)
  Using cached anoncreds-0.1.8.tar.gz
Requirement already satisfied: raet in /usr/local/lib/python3.5/dist-packages (from plenum->sovrin)
Requirement already satisfied: jsonpickle in /usr/local/lib/python3.5/dist-packages (from plenum->sovrin)
Requirement already satisfied: portalocker in /usr/local/lib/python3.5/dist-packages (from plenum->sovrin)
Requirement already satisfied: prompt_toolkit==0.57 in /usr/local/lib/python3.5/dist-packages (from plenum->sovrin)
Requirement already satisfied: pygments in /usr/local/lib/python3.5/dist-packages (from plenum->sovrin)
Requirement already satisfied: ioflo==1.5.4 in /usr/local/lib/python3.5/dist-packages (from plenum->sovrin)
Collecting Charm-Crypto==0.43 (from anoncreds->sovrin)
  Using cached Charm-Crypto-0.43.tar.gz
  Requested Charm-Crypto==0.43 from https://pypi.python.org/packages/2b/6b/2c2abcb66f62155a60f5ecfe6936f651ecb9a115a2203c1b1d60d0e8d15e/Charm-Crypto-0.43.tar.gz#md5=eaba7346c6ac50079a4b7f75f5ce644d (from anoncreds->sovrin), but installing version None
Collecting lazy-object-proxy (from anoncreds->sovrin)
  Using cached lazy_object_proxy-1.2.2-cp35-cp35m-manylinux1_x86_64.whl
Collecting pytest==3.0.2 (from anoncreds->sovrin)
  Using cached pytest-3.0.2-py2.py3-none-any.whl
Requirement already satisfied: libnacl>=1.4.3 in /usr/local/lib/python3.5/dist-packages (from raet->plenum->sovrin)
Requirement already satisfied: six>=1.6.1 in /usr/lib/python3/dist-packages (from raet->plenum->sovrin)
Requirement already satisfied: wcwidth in /usr/local/lib/python3.5/dist-packages (from prompt_toolkit==0.57->plenum->sovrin)
Requirement already satisfied: setuptools in /usr/lib/python3/dist-packages (from Charm-Crypto==0.43->anoncreds->sovrin)
Requirement already satisfied: pyparsing>=1.5.5 in /usr/lib/python3/dist-packages (from Charm-Crypto==0.43->anoncreds->sovrin)
Collecting py>=1.4.29 (from pytest==3.0.2->anoncreds->sovrin)
  Using cached py-1.4.31-py2.py3-none-any.whl
Installing collected packages: Charm-Crypto, lazy-object-proxy, py, pytest, anoncreds, sovrin
  Running setup.py install for Charm-Crypto ... error
    Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-2c64bux1/Charm-Crypto/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-t24tdaiv-record/install-record.txt --single-version-externally-managed --compile:
    Platform: Linux
    Config file: config.mk
    Warning, using default config vaules.
    You probably want to run ./configure.sh first.
    running install
    running build
    running build_py
    creating build
    creating build/lib.linux-x86_64-3.5
    creating build/lib.linux-x86_64-3.5/charm
    copying charm/config.py -> build/lib.linux-x86_64-3.5/charm
    copying charm/__init__.py -> build/lib.linux-x86_64-3.5/charm
    creating build/lib.linux-x86_64-3.5/charm/core
    copying charm/core/__init__.py -> build/lib.linux-x86_64-3.5/charm/core
    creating build/lib.linux-x86_64-3.5/charm/core/crypto
    copying charm/core/crypto/__init__.py -> build/lib.linux-x86_64-3.5/charm/core/crypto
    creating build/lib.linux-x86_64-3.5/charm/core/engine
    copying charm/core/engine/util.py -> build/lib.linux-x86_64-3.5/charm/core/engine
    copying charm/core/engine/protocol.py -> build/lib.linux-x86_64-3.5/charm/core/engine
    copying charm/core/engine/__init__.py -> build/lib.linux-x86_64-3.5/charm/core/engine
    creating build/lib.linux-x86_64-3.5/charm/core/math
    copying charm/core/math/__init__.py -> build/lib.linux-x86_64-3.5/charm/core/math
    creating build/lib.linux-x86_64-3.5/charm/test
    copying charm/test/__init__.py -> build/lib.linux-x86_64-3.5/charm/test
    creating build/lib.linux-x86_64-3.5/charm/test/schemes
    copying charm/test/schemes/pk_vrf_test.py -> build/lib.linux-x86_64-3.5/charm/test/schemes
    copying charm/test/schemes/hibenc_test.py -> build/lib.linux-x86_64-3.5/charm/test/schemes
    copying charm/test/schemes/grpsig_test.py -> build/lib.linux-x86_64-3.5/charm/test/schemes
    copying charm/test/schemes/dabenc_test.py -> build/lib.linux-x86_64-3.5/charm/test/schemes
    copying charm/test/schemes/commit_test.py -> build/lib.linux-x86_64-3.5/charm/test/schemes
    copying charm/test/schemes/rsa_alg_test.py -> build/lib.linux-x86_64-3.5/charm/test/schemes
    copying charm/test/schemes/__init__.py -> build/lib.linux-x86_64-3.5/charm/test/schemes
    copying charm/test/schemes/pksig_test.py -> build/lib.linux-x86_64-3.5/charm/test/schemes
    copying charm/test/schemes/abenc_test.py -> build/lib.linux-x86_64-3.5/charm/test/schemes
    copying charm/test/schemes/encap_bchk05_test.py -> build/lib.linux-x86_64-3.5/charm/test/schemes
    copying charm/test/schemes/pkenc_test.py -> build/lib.linux-x86_64-3.5/charm/test/schemes
    copying charm/test/schemes/ibenc_test.py -> build/lib.linux-x86_64-3.5/charm/test/schemes
    copying charm/test/schemes/chamhash_test.py -> build/lib.linux-x86_64-3.5/charm/test/schemes
    creating build/lib.linux-x86_64-3.5/charm/test/toolbox
    copying charm/test/toolbox/symcrypto_test.py -> build/lib.linux-x86_64-3.5/charm/test/toolbox
    copying charm/test/toolbox/paddingschemes_test.py -> build/lib.linux-x86_64-3.5/charm/test/toolbox
    copying charm/test/toolbox/secretshare_test.py -> build/lib.linux-x86_64-3.5/charm/test/toolbox
    copying charm/test/toolbox/__init__.py -> build/lib.linux-x86_64-3.5/charm/test/toolbox
    copying charm/test/toolbox/conversion_test.py -> build/lib.linux-x86_64-3.5/charm/test/toolbox
    creating build/lib.linux-x86_64-3.5/charm/toolbox
    copying charm/toolbox/pairinggroup.py -> build/lib.linux-x86_64-3.5/charm/toolbox
    copying charm/toolbox/IBEnc.py -> build/lib.linux-x86_64-3.5/charm/toolbox
    copying charm/toolbox/FSA.py -> build/lib.linux-x86_64-3.5/charm/toolbox
    copying charm/toolbox/Hash.py -> build/lib.linux-x86_64-3.5/charm/toolbox
    copying charm/toolbox/schemebase.py -> build/lib.linux-x86_64-3.5/charm/toolbox
    copying charm/toolbox/pairingcurves.py -> build/lib.linux-x86_64-3.5/charm/toolbox
    copying charm/toolbox/node.py -> build/lib.linux-x86_64-3.5/charm/toolbox
    copying charm/toolbox/ecgroup.py -> build/lib.linux-x86_64-3.5/charm/toolbox
    copying charm/toolbox/conversion.py -> build/lib.linux-x86_64-3.5/charm/toolbox
    copying charm/toolbox/redundancyschemes.py -> build/lib.linux-x86_64-3.5/charm/toolbox
    copying charm/toolbox/xmlserialize.py -> build/lib.linux-x86_64-3.5/charm/toolbox
    copying charm/toolbox/integergroup.py -> build/lib.linux-x86_64-3.5/charm/toolbox
    copying charm/toolbox/Commit.py -> build/lib.linux-x86_64-3.5/charm/toolbox
    copying charm/toolbox/sigmaprotocol.py -> build/lib.linux-x86_64-3.5/charm/toolbox
    copying charm/toolbox/paddingschemes_test.py -> build/lib.linux-x86_64-3.5/charm/toolbox
    copying charm/toolbox/secretutil.py -> build/lib.linux-x86_64-3.5/charm/toolbox
    copying charm/toolbox/specialprimes.py -> build/lib.linux-x86_64-3.5/charm/toolbox
    copying charm/toolbox/paddingschemes.py -> build/lib.linux-x86_64-3.5/charm/toolbox
    copying charm/toolbox/eccurve.py -> build/lib.linux-x86_64-3.5/charm/toolbox
    copying charm/toolbox/secretshare.py -> build/lib.linux-x86_64-3.5/charm/toolbox
    copying charm/toolbox/zknode.py -> build/lib.linux-x86_64-3.5/charm/toolbox
    copying charm/toolbox/ABEnc.py -> build/lib.linux-x86_64-3.5/charm/toolbox
    copying charm/toolbox/bitstring.py -> build/lib.linux-x86_64-3.5/charm/toolbox
    copying charm/toolbox/ABEncMultiAuth.py -> build/lib.linux-x86_64-3.5/charm/toolbox
    copying charm/toolbox/PKSig.py -> build/lib.linux-x86_64-3.5/charm/toolbox
    copying charm/toolbox/__init__.py -> build/lib.linux-x86_64-3.5/charm/toolbox
    copying charm/toolbox/securerandom.py -> build/lib.linux-x86_64-3.5/charm/toolbox
    copying charm/toolbox/matrixops.py -> build/lib.linux-x86_64-3.5/charm/toolbox
    copying charm/toolbox/policytree.py -> build/lib.linux-x86_64-3.5/charm/toolbox
    copying charm/toolbox/PKEnc.py -> build/lib.linux-x86_64-3.5/charm/toolbox
    copying charm/toolbox/DFA.py -> build/lib.linux-x86_64-3.5/charm/toolbox
    copying charm/toolbox/enum.py -> build/lib.linux-x86_64-3.5/charm/toolbox
    copying charm/toolbox/iterate.py -> build/lib.linux-x86_64-3.5/charm/toolbox
    copying charm/toolbox/IBSig.py -> build/lib.linux-x86_64-3.5/charm/toolbox
    copying charm/toolbox/reCompiler.py -> build/lib.linux-x86_64-3.5/charm/toolbox
    copying charm/toolbox/symcrypto.py -> build/lib.linux-x86_64-3.5/charm/toolbox
    copying charm/toolbox/hash_module.py -> build/lib.linux-x86_64-3.5/charm/toolbox
    creating build/lib.linux-x86_64-3.5/charm/zkp_compiler
    copying charm/zkp_compiler/zk_demo.py -> build/lib.linux-x86_64-3.5/charm/zkp_compiler
    copying charm/zkp_compiler/zkparser.py -> build/lib.linux-x86_64-3.5/charm/zkp_compiler
    copying charm/zkp_compiler/zkp_generator.py -> build/lib.linux-x86_64-3.5/charm/zkp_compiler
    copying charm/zkp_compiler/__init__.py -> build/lib.linux-x86_64-3.5/charm/zkp_compiler
    creating build/lib.linux-x86_64-3.5/charm/schemes
    copying charm/schemes/pre_mg07.py -> build/lib.linux-x86_64-3.5/charm/schemes
    copying charm/schemes/protocol_ao00.py -> build/lib.linux-x86_64-3.5/charm/schemes
    copying charm/schemes/pk_fre_ccv11.py -> build/lib.linux-x86_64-3.5/charm/schemes
    copying charm/schemes/chamhash_adm05.py -> build/lib.linux-x86_64-3.5/charm/schemes
    copying charm/schemes/sigma1.py -> build/lib.linux-x86_64-3.5/charm/schemes
    copying charm/schemes/joye_scheme.py -> build/lib.linux-x86_64-3.5/charm/schemes
    copying charm/schemes/lem_scheme.py -> build/lib.linux-x86_64-3.5/charm/schemes
    copying charm/schemes/protocol_a01.py -> build/lib.linux-x86_64-3.5/charm/schemes
    copying charm/schemes/sigma3.py -> build/lib.linux-x86_64-3.5/charm/schemes
    copying charm/schemes/encap_bchk05.py -> build/lib.linux-x86_64-3.5/charm/schemes
    copying charm/schemes/sigma2.py -> build/lib.linux-x86_64-3.5/charm/schemes
    copying charm/schemes/protocol_cns07.py -> build/lib.linux-x86_64-3.5/charm/schemes
    copying charm/schemes/__init__.py -> build/lib.linux-x86_64-3.5/charm/schemes
    copying charm/schemes/chamhash_rsa_hw09.py -> build/lib.linux-x86_64-3.5/charm/schemes
    copying charm/schemes/protocol_schnorr91.py -> build/lib.linux-x86_64-3.5/charm/schemes
    copying charm/schemes/dabe_aw11.py -> build/lib.linux-x86_64-3.5/charm/schemes
    copying charm/schemes/pk_vrf.py -> build/lib.linux-x86_64-3.5/charm/schemes
    creating build/lib.linux-x86_64-3.5/charm/schemes/ibenc
    copying charm/schemes/ibenc/ibenc_ckrs09.py -> build/lib.linux-x86_64-3.5/charm/schemes/ibenc
    copying charm/schemes/ibenc/ibenc_cllww12_z.py -> build/lib.linux-x86_64-3.5/charm/schemes/ibenc
    copying charm/schemes/ibenc/ibenc_waters05_z.py -> build/lib.linux-x86_64-3.5/charm/schemes/ibenc
    copying charm/schemes/ibenc/ibenc_waters09_z.py -> build/lib.linux-x86_64-3.5/charm/schemes/ibenc
    copying charm/schemes/ibenc/ibenc_lsw08.py -> build/lib.linux-x86_64-3.5/charm/schemes/ibenc
    copying charm/schemes/ibenc/ibenc_waters05.py -> build/lib.linux-x86_64-3.5/charm/schemes/ibenc
    copying charm/schemes/ibenc/__init__.py -> build/lib.linux-x86_64-3.5/charm/schemes/ibenc
    copying charm/schemes/ibenc/ibenc_CW13_z.py -> build/lib.linux-x86_64-3.5/charm/schemes/ibenc
    copying charm/schemes/ibenc/ibenc_sw05.py -> build/lib.linux-x86_64-3.5/charm/schemes/ibenc
    copying charm/schemes/ibenc/ibenc_waters09.py -> build/lib.linux-x86_64-3.5/charm/schemes/ibenc
    copying charm/schemes/ibenc/ibenc_bb03.py -> build/lib.linux-x86_64-3.5/charm/schemes/ibenc
    copying charm/schemes/ibenc/ibenc_bf01.py -> build/lib.linux-x86_64-3.5/charm/schemes/ibenc
    creating build/lib.linux-x86_64-3.5/charm/schemes/abenc
    copying charm/schemes/abenc/pk_hve08.py -> build/lib.linux-x86_64-3.5/charm/schemes/abenc
    copying charm/schemes/abenc/dac-macs-yang-14.py -> build/lib.linux-x86_64-3.5/charm/schemes/abenc
    copying charm/schemes/abenc/dfa_fe12.py -> build/lib.linux-x86_64-3.5/charm/schemes/abenc
    copying charm/schemes/abenc/abenc_yct14.py -> build/lib.linux-x86_64-3.5/charm/schemes/abenc
    copying charm/schemes/abenc/maabe-yang-14.py -> build/lib.linux-x86_64-3.5/charm/schemes/abenc
    copying charm/schemes/abenc/__init__.py -> build/lib.linux-x86_64-3.5/charm/schemes/abenc
    copying charm/schemes/abenc/tbpre-liu-14.py -> build/lib.linux-x86_64-3.5/charm/schemes/abenc
    copying charm/schemes/abenc/abenc_lsw08.py -> build/lib.linux-x86_64-3.5/charm/schemes/abenc
    copying charm/schemes/abenc/abenc_bsw07.py -> build/lib.linux-x86_64-3.5/charm/schemes/abenc
    copying charm/schemes/abenc/abenc_waters09.py -> build/lib.linux-x86_64-3.5/charm/schemes/abenc
    creating build/lib.linux-x86_64-3.5/charm/schemes/pkenc
    copying charm/schemes/pkenc/pkenc_gm82.py -> build/lib.linux-x86_64-3.5/charm/schemes/pkenc
    copying charm/schemes/pkenc/pkenc_rabin.py -> build/lib.linux-x86_64-3.5/charm/schemes/pkenc
    copying charm/schemes/pkenc/pkenc_rsa.py -> build/lib.linux-x86_64-3.5/charm/schemes/pkenc
    copying charm/schemes/pkenc/pkenc_paillier99.py -> build/lib.linux-x86_64-3.5/charm/schemes/pkenc
    copying charm/schemes/pkenc/__init__.py -> build/lib.linux-x86_64-3.5/charm/schemes/pkenc
    copying charm/schemes/pkenc/pkenc_elgamal85.py -> build/lib.linux-x86_64-3.5/charm/schemes/pkenc
    copying charm/schemes/pkenc/pkenc_cs98.py -> build/lib.linux-x86_64-3.5/charm/schemes/pkenc
    creating build/lib.linux-x86_64-3.5/charm/schemes/hibenc
    copying charm/schemes/hibenc/hibenc_bb04.py -> build/lib.linux-x86_64-3.5/charm/schemes/hibenc
    copying charm/schemes/hibenc/hibenc_lew11.py -> build/lib.linux-x86_64-3.5/charm/schemes/hibenc
    copying charm/schemes/hibenc/__init__.py -> build/lib.linux-x86_64-3.5/charm/schemes/hibenc
    creating build/lib.linux-x86_64-3.5/charm/schemes/pksig
    copying charm/schemes/pksig/pksig_schnorr91.py -> build/lib.linux-x86_64-3.5/charm/schemes/pksig
    copying charm/schemes/pksig/pksig_waters05.py -> build/lib.linux-x86_64-3.5/charm/schemes/pksig
    copying charm/schemes/pksig/pksig_chch.py -> build/lib.linux-x86_64-3.5/charm/schemes/pksig
    copying charm/schemes/pksig/pksig_cl03.py -> build/lib.linux-x86_64-3.5/charm/schemes/pksig
    copying charm/schemes/pksig/pksig_chp.py -> build/lib.linux-x86_64-3.5/charm/schemes/pksig
    copying charm/schemes/pksig/pksig_rsa_hw09.py -> build/lib.linux-x86_64-3.5/charm/schemes/pksig
    copying charm/schemes/pksig/pksig_waters.py -> build/lib.linux-x86_64-3.5/charm/schemes/pksig
    copying charm/schemes/pksig/pksig_cllww12_z.py -> build/lib.linux-x86_64-3.5/charm/schemes/pksig
    copying charm/schemes/pksig/pksig_dsa.py -> build/lib.linux-x86_64-3.5/charm/schemes/pksig
    copying charm/schemes/pksig/pksig_cyh.py -> build/lib.linux-x86_64-3.5/charm/schemes/pksig
    copying charm/schemes/pksig/pksig_waters09.py -> build/lib.linux-x86_64-3.5/charm/schemes/pksig
    copying charm/schemes/pksig/pksig_cl04.py -> build/lib.linux-x86_64-3.5/charm/schemes/pksig
    copying charm/schemes/pksig/pksig_boyen.py -> build/lib.linux-x86_64-3.5/charm/schemes/pksig
    copying charm/schemes/pksig/__init__.py -> build/lib.linux-x86_64-3.5/charm/schemes/pksig
    copying charm/schemes/pksig/pksig_hw.py -> build/lib.linux-x86_64-3.5/charm/schemes/pksig
    copying charm/schemes/pksig/pksig_ecdsa.py -> build/lib.linux-x86_64-3.5/charm/schemes/pksig
    copying charm/schemes/pksig/pksig_CW13_z.py -> build/lib.linux-x86_64-3.5/charm/schemes/pksig
    copying charm/schemes/pksig/pksig_bls04.py -> build/lib.linux-x86_64-3.5/charm/schemes/pksig
    copying charm/schemes/pksig/pksig_hess.py -> build/lib.linux-x86_64-3.5/charm/schemes/pksig
    creating build/lib.linux-x86_64-3.5/charm/schemes/commit
    copying charm/schemes/commit/commit_gs08.py -> build/lib.linux-x86_64-3.5/charm/schemes/commit
    copying charm/schemes/commit/commit_pedersen92.py -> build/lib.linux-x86_64-3.5/charm/schemes/commit
    copying charm/schemes/commit/__init__.py -> build/lib.linux-x86_64-3.5/charm/schemes/commit
    creating build/lib.linux-x86_64-3.5/charm/schemes/grpsig
    copying charm/schemes/grpsig/groupsig_bgls04.py -> build/lib.linux-x86_64-3.5/charm/schemes/grpsig
    copying charm/schemes/grpsig/__init__.py -> build/lib.linux-x86_64-3.5/charm/schemes/grpsig
    copying charm/schemes/grpsig/groupsig_bgls04_var.py -> build/lib.linux-x86_64-3.5/charm/schemes/grpsig
    creating build/lib.linux-x86_64-3.5/charm/adapters
    copying charm/adapters/ibenc_adapt_hybrid.py -> build/lib.linux-x86_64-3.5/charm/adapters
    copying charm/adapters/pkenc_adapt_bchk05.py -> build/lib.linux-x86_64-3.5/charm/adapters
    copying charm/adapters/ibenc_adapt_identityhash.py -> build/lib.linux-x86_64-3.5/charm/adapters
    copying charm/adapters/__init__.py -> build/lib.linux-x86_64-3.5/charm/adapters
    copying charm/adapters/abenc_adapt_hybrid.py -> build/lib.linux-x86_64-3.5/charm/adapters
    copying charm/adapters/pksig_adapt_naor01.py -> build/lib.linux-x86_64-3.5/charm/adapters
    copying charm/adapters/kpabenc_adapt_hybrid.py -> build/lib.linux-x86_64-3.5/charm/adapters
    copying charm/adapters/dabenc_adapt_hybrid.py -> build/lib.linux-x86_64-3.5/charm/adapters
    copying charm/adapters/pkenc_adapt_chk04.py -> build/lib.linux-x86_64-3.5/charm/adapters
    copying charm/adapters/pkenc_adapt_hybrid.py -> build/lib.linux-x86_64-3.5/charm/adapters
    running build_ext
    building 'charm.core.math.pairing' extension
    creating build/temp.linux-x86_64-3.5
    creating build/temp.linux-x86_64-3.5/charm
    creating build/temp.linux-x86_64-3.5/charm/core
    creating build/temp.linux-x86_64-3.5/charm/core/math
    creating build/temp.linux-x86_64-3.5/charm/core/math/pairing
    creating build/temp.linux-x86_64-3.5/charm/core/utilities
    creating build/temp.linux-x86_64-3.5/charm/core/benchmark
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DBENCHMARK_ENABLED=1 -Icharm/core/utilities/ -Icharm/core/benchmark/ -I/usr/include/python3.5m -c charm/core/math/pairing/pairingmodule.c -o build/temp.linux-x86_64-3.5/charm/core/math/pairing/pairingmodule.o
    In file included from charm/core/math/pairing/pairingmodule.c:30:0:
    charm/core/math/pairing/pairingmodule.h:33:20: fatal error: Python.h: No such file or directory
    compilation terminated.
    error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

    ----------------------------------------
Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-2c64bux1/Charm-Crypto/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-t24tdaiv-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-2c64bux1/Charm-Crypto/

Do you have any suggestion please?

fabienpe commented 7 years ago

After more trial error, I found a fix for my system: sudo apt-get git sudo apt-get install m4 git clone https://github.com/JHUISI/charm.git cd charm sudo ./configure.sh sudo make sudo make install sudo ldconfig sudo -H pip install sovrin

I still got the following error: Using cached Charm-Crypto-0.43.tar.gz Requested Charm-Crypto==0.43 from https://pypi.python.org/packages/2b/6b/2c2abcb66f62155a60f5ecfe6936f651ecb9a115a2203c1b1d60d0e8d15e/Charm-Crypto-0.43.tar.gz#md5=eaba7346c6ac50079a4b7f75f5ce644d (from anoncreds->sovrin), but installing version 0.5 but in the end, it appears to have worked: Successfully installed Charm-Crypto-0.0.0 anoncreds-0.1.8 lazy-object-proxy-1.2.2 py-1.4.31 pytest-3.0.2 sovrin-0.1.131

ann008 commented 7 years ago

Mac OS:

sh setup-charm-homebrew.sh Success after changing charm-cypto==0.5 from 0.43 in requirements.txt

pip3 install sovrin Failed with errors below
creating build/temp.macosx-10.12-x86_64-3.6/charm/core/crypto/DES clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -Icharm/core/crypto/cryptobase/libtom/ -Icharm/core/crypto/cryptobase/ -I/usr/local/include -I/usr/local/opt/openssl/include -I/usr/local/opt/sqlite/include -I/usr/local/Cellar/python3/3.6.0/Frameworks/Python.framework/Versions/3.6/include/python3.6m -c charm/core/crypto/DES/DES.c -o build/temp.macosx-10.12-x86_64-3.6/charm/core/crypto/DES/DES.o In file included from charm/core/crypto/DES/DES.c:32: In file included from charm/core/crypto/cryptobase/libtom/tomcrypt_des.c:11: In file included from charm/core/crypto/cryptobase/libtom/tomcrypt.h:67: charm/core/crypto/cryptobase/libtom/tomcrypt_macros.h:269:24: error: constraint 'I' expects an integer constant expression :"0" (word),"I" (i)); ^ charm/core/crypto/cryptobase/libtom/tomcrypt_macros.h:277:24: error: constraint 'I' expects an integer constant expression :"0" (word),"I" (i)); ^ charm/core/crypto/cryptobase/libtom/tomcrypt_macros.h:368:24: error: constraint 'J' expects an integer constant expression :"0" (word),"J" (i)); ^ charm/core/crypto/cryptobase/libtom/tomcrypt_macros.h:376:24: error: constraint 'J' expects an integer constant expression :"0" (word),"J" (i)); ^ 4 errors generated. error: command 'clang' failed with exit status 1


Failed building wheel for Charm-Crypto Running setup.py clean for Charm-Crypto Failed to build Charm-Crypto Installing collected packages: Charm-Crypto, lazy-object-proxy, anoncreds, sovrin Found existing installation: Charm-Crypto 0.5 Uninstalling Charm-Crypto-0.5: Exception: Traceback (most recent call last): File "/usr/local/Cellar/python3/3.6.0/Frameworks/Python.framework/Versions/3.6/lib/python3.6/shutil.py", line 538, in move os.rename(src, real_dst) PermissionError: [Errno 13] Permission denied: '/usr/local/lib/python3.6/site-packages/Charm_Crypto-0.5-py3.6-macosx-10.12-x86_64.egg' -> '/var/folders/6v/x0z9jf3j1mq795dpnj_p270h0000gn/T/pip-fwba7lus-uninstall/usr/local/lib/python3.6/site-packages/Charm_Crypto-0.5-py3.6-macosx-10.12-x86_64.egg'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/usr/local/lib/python3.6/site-packages/pip/basecommand.py", line 215, in main status = self.run(options, args) File "/usr/local/lib/python3.6/site-packages/pip/commands/install.py", line 342, in run prefix=options.prefix_path, File "/usr/local/lib/python3.6/site-packages/pip/req/req_set.py", line 778, in install requirement.uninstall(auto_confirm=True) File "/usr/local/lib/python3.6/site-packages/pip/req/req_install.py", line 754, in uninstall paths_to_remove.remove(auto_confirm) File "/usr/local/lib/python3.6/site-packages/pip/req/req_uninstall.py", line 115, in remove renames(path, new_path) File "/usr/local/lib/python3.6/site-packages/pip/utils/init.py", line 267, in renames shutil.move(old, new) File "/usr/local/Cellar/python3/3.6.0/Frameworks/Python.framework/Versions/3.6/lib/python3.6/shutil.py", line 550, in move rmtree(src) File "/usr/local/Cellar/python3/3.6.0/Frameworks/Python.framework/Versions/3.6/lib/python3.6/shutil.py", line 474, in rmtree _rmtree_safe_fd(fd, path, onerror) File "/usr/local/Cellar/python3/3.6.0/Frameworks/Python.framework/Versions/3.6/lib/python3.6/shutil.py", line 412, in _rmtree_safe_fd _rmtree_safe_fd(dirfd, fullname, onerror) File "/usr/local/Cellar/python3/3.6.0/Frameworks/Python.framework/Versions/3.6/lib/python3.6/shutil.py", line 432, in _rmtree_safe_fd onerror(os.unlink, fullname, sys.exc_info()) File "/usr/local/Cellar/python3/3.6.0/Frameworks/Python.framework/Versions/3.6/lib/python3.6/shutil.py", line 430, in _rmtree_safe_fd os.unlink(name, dir_fd=topfd) PermissionError: [Errno 13] Permission denied: 'init.py'

How to fix? Thanks in advance.

FarooqKhan commented 7 years ago

I had a similar issue on macOS Sierra even though gmp was already installed.

This trick solved it: brew install gmp env "CFLAGS=-I/usr/local/include -L/usr/local/lib" pip install Charm-Crypto

FarooqKhan commented 7 years ago

I was trying it on wrong version of python, pip3 install Charm-Crypto still fails for me

Sumasrikanth commented 6 months ago

After more trial error, I found a fix for my system: sudo apt-get git sudo apt-get install m4 git clone https://github.com/JHUISI/charm.git cd charm sudo ./configure.sh sudo make sudo make install sudo ldconfig sudo -H pip install sovrin

I followed these steps but in sudo -H pip install sovrin i had error

~/charm$ sudo -H pip install sovrin Collecting sovrin Using cached sovrin-1.2.0-py3-none-any.whl (111 kB) ERROR: Could not find a version that satisfies the requirement sovtoken==1.1.1 (from sovrin) (from versions: none) ERROR: No matching distribution found for sovtoken==1.1.1 (from sovrin) please help me out....