Failed building wheel for scrypt

See original GitHub issue

Windows 10 64 Fresh install using Anaconda Python 3.6.3 |Anaconda, Inc.| (default, Oct 15 2017, 03:27:45) [MSC v.1900 64 bit (AMD64)] on win32

I have installed C++ Visual Studio

But I keep getting an error for scrypt :

` C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DHAVE_CONFIG_H -Dinline=__inline -Iscrypt-1.2.0 -Iscrypt-1.2.0/lib -Iscrypt-1.2.0/lib/scryptenc -Iscrypt-1.2.0/lib/crypto -Iscrypt-1.2.0/lib/util -Iscrypt-1.2.0/libcperciva/cpusupport -Iscrypt-1.2.0/libcperciva/alg -Iscrypt-1.2.0/libcperciva/util -Iscrypt-1.2.0/libcperciva/crypto -Ic:\OpenSSL-Win64\include -Iscrypt-windows-stubs/include -IC:\Anaconda3\include -IC:\Anaconda3\include “-IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE” “-IC:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt” “-IC:\Program Files (x86)\Windows Kits\8.1\include\shared” “-IC:\Program Files (x86)\Windows Kits\8.1\include\um” “-IC:\Program Files (x86)\Windows Kits\8.1\include\winrt” /Tcsrc/scrypt.c /Fobuild\temp.win-amd64-3.6\Release\src/scrypt.obj scrypt.c scrypt-1.2.0/lib/crypto\crypto_scrypt.h(33): fatal error C1083: Cannot open include file: ‘unistd.h’: No such file or directory error: command ‘C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\cl.exe’ failed with exit status 2


Failed building wheel for scrypt Running setup.py clean for scrypt Failed to build scrypt Installing collected packages: toml, scrypt, steem Found existing installation: toml 0.9.3 Uninstalling toml-0.9.3: Successfully uninstalled toml-0.9.3 Running setup.py install for scrypt … error Complete output from command C:\Anaconda3\python.exe -u -c “import setuptools, tokenize;file=‘C:\Users\Florian\AppData\Local\Temp\pip-build-6f9fm9p6\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 C:\Users\Florian\AppData\Local\Temp\pip-me03heh1-record\install-record.txt --single-version-externally-managed --compile: running install running build running build_py creating build creating build\lib.win-amd64-3.6 copying scrypt.py -> build\lib.win-amd64-3.6 running build_ext building ‘_scrypt’ extension creating build\temp.win-amd64-3.6 creating build\temp.win-amd64-3.6\Release creating build\temp.win-amd64-3.6\Release\src creating build\temp.win-amd64-3.6\Release\scrypt-1.2.0 creating build\temp.win-amd64-3.6\Release\scrypt-1.2.0\lib creating build\temp.win-amd64-3.6\Release\scrypt-1.2.0\lib\crypto creating build\temp.win-amd64-3.6\Release\scrypt-1.2.0\lib\scryptenc creating build\temp.win-amd64-3.6\Release\scrypt-1.2.0\lib\util creating build\temp.win-amd64-3.6\Release\scrypt-1.2.0\libcperciva creating build\temp.win-amd64-3.6\Release\scrypt-1.2.0\libcperciva\alg creating build\temp.win-amd64-3.6\Release\scrypt-1.2.0\libcperciva\crypto creating build\temp.win-amd64-3.6\Release\scrypt-1.2.0\libcperciva\util creating build\temp.win-amd64-3.6\Release\scrypt-windows-stubs C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DHAVE_CONFIG_H -Dinline=__inline -Iscrypt-1.2.0 -Iscrypt-1.2.0/lib -Iscrypt-1.2.0/lib/scryptenc -Iscrypt-1.2.0/lib/crypto -Iscrypt-1.2.0/lib/util -Iscrypt-1.2.0/libcperciva/cpusupport -Iscrypt-1.2.0/libcperciva/alg -Iscrypt-1.2.0/libcperciva/util -Iscrypt-1.2.0/libcperciva/crypto -Ic:\OpenSSL-Win64\include -Iscrypt-windows-stubs/include -IC:\Anaconda3\include -IC:\Anaconda3\include “-IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE” “-IC:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt” “-IC:\Program Files (x86)\Windows Kits\8.1\include\shared” “-IC:\Program Files (x86)\Windows Kits\8.1\include\um” “-IC:\Program Files (x86)\Windows Kits\8.1\include\winrt” /Tcsrc/scrypt.c /Fobuild\temp.win-amd64-3.6\Release\src/scrypt.obj scrypt.c scrypt-1.2.0/lib/crypto\crypto_scrypt.h(33): fatal error C1083: Cannot open include file: ‘unistd.h’: No such file or directory error: command ‘C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\cl.exe’ failed with exit status 2

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

**Command “C:\Anaconda3\python.exe -u -c “import setuptools, tokenize;file=‘C:\Users\Florian\AppData\Local\Temp\pip-build-6f9fm9p6\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 C:\Users\Florian\AppData\Local\Temp\pip-me03heh1-record\install-record.txt --single-version-externally-managed --compile” failed with error code 1 in C:\Users\Florian\AppData\Local\Temp\pip-build-6f9fm9p6\scrypt**`

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
cyon1ccommented, Mar 7, 2018

This is an environment issue, not an issue with the library. Closing.

3reactions
beeprimecommented, Feb 22, 2018

Fixed it today by issuing apt-get install libssl-dev apt-get install openssl

Read more comments on GitHub >

github_iconTop Results From Across the Web

Failed building wheel for scrypt - python ethereum (pyethapp)
This one worked for me: sudo apt-get install libssl-dev.
Read more >
could not build wheels for scrypt, which is required to install ...
I tried to install python library after python update deleted all of my libraries.Therefore, I installed library called "bitcoinlib" , However, I got...
Read more >
python ethereum pyethapp Failed building wheel for scrypt
My compilation terminated 2 times when installing pyethapp on Ubuntu. Firstly, I installed packages: apt-get install build-essential ...
Read more >
ERROR: Failed building wheel for cryptography
trying to update to latest version and this is the error I get. ERROR: Failed building wheel for cryptography. Failed to build cryptography...
Read more >
Fixing the windows build of the scrypt library - PeakD
Precompiled wheels. I uploaded also several pre-compiled wheels. image.png. A pip install scrypt. under windows should also ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found