vechain / web3-gear

Proxy Thor's RESTful API to Eth JSON-RPC, to support Remix, Truffle and more.
MIT License
30 stars 17 forks source link

compilation error #14

Closed maiocchim closed 5 years ago

maiocchim commented 5 years ago

running from command line on my windows 10 PC the command pip3 install web3-gear

after a while I get this error:

_scrypt-1.2.1/libcperciva/crypto/crypto_aes.c(6): fatal error C1083: Is not possible to include: 'openssl/aes.h': No such file or directory error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\HostX86\x86\cl.exe' failed with exit status 2

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

Command "c:\users\maiocchim\appdata\local\programs\python\python37-32\python.exe -u -c "import setuptools, tokenize;file='[...]\AppData\Local\Temp\pip-install-qhj6ti72\scrypt\setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record \AppData\Local\Temp\pip-record-gzv2lhm\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in \AppData\Local\Temp\pip-install-qhj6ti72\scrypt\

uldaman commented 5 years ago

Looks like there's no OpenSSL toolkit.

Have you done these two steps?

  1. Install Visual C++ Build Tools.
  2. Install scrypt-py use the precompiled wheels.

Or you can manually install this tool -- OpenSSL.

sangduongvan commented 5 years ago

I got issue quite the same when I try to install it on Centos 7

"/usr/bin/python3.6 -u -c "import setuptools, tokenize;file='/tmp/pip-install-h49sy8rb/scrypt/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-tdj5xes_/install-record.txt --single-ver sion-externally-managed --compile" failed with error code 1 in /tmp/pip-install-h49sy8rb/scrypt/

uldaman commented 5 years ago

@sangduongvan Try install scrypt-py use the precompiled wheels.

uldaman commented 5 years ago

I modified the readme c104446c2512535e00013f293c76a7c0265769ec, if still have problem, please reopen.