Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot pip install fastecdsa on Windows 10 #39

Closed
Zachh99 opened this issue Oct 1, 2019 · 1 comment
Closed

Cannot pip install fastecdsa on Windows 10 #39

Zachh99 opened this issue Oct 1, 2019 · 1 comment

Comments

@Zachh99
Copy link

Zachh99 commented Oct 1, 2019

C:\Program Files (x86)\Python37-32\Scripts>pip install fastecdsa
Collecting fastecdsa
  Using cached https://files.pythonhosted.org/packages/41/b7/292c58a399df59a0c9f52878b73ca51b292d3b963f500f7c85414759b4f2/fastecdsa-1.7.4.tar.gz
Requirement already satisfied: six in c:\program files (x86)\python37-32\lib\site-packages (from fastecdsa) (1.12.0)
Building wheels for collected packages: fastecdsa
  Building wheel for fastecdsa (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: 'c:\program files (x86)\python37-32\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\malik\\AppData\\Local\\Temp\\pip-install-0s2cfv5w\\fastecdsa\\setup.py'"'"'; __file__='"'"'C:\\Users\\malik\\AppData\\Local\\Temp\\pip-install-0s2cfv5w\\fastecdsa\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\malik\AppData\Local\Temp\pip-wheel-mpgsiicz' --python-tag cp37
       cwd: C:\Users\malik\AppData\Local\Temp\pip-install-0s2cfv5w\fastecdsa\
  Complete output (42 lines):
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build\lib.win32-3.7
  creating build\lib.win32-3.7\fastecdsa
  copying fastecdsa\benchmark.py -> build\lib.win32-3.7\fastecdsa
  copying fastecdsa\curve.py -> build\lib.win32-3.7\fastecdsa
  copying fastecdsa\ecdsa.py -> build\lib.win32-3.7\fastecdsa
  copying fastecdsa\keys.py -> build\lib.win32-3.7\fastecdsa
  copying fastecdsa\point.py -> build\lib.win32-3.7\fastecdsa
  copying fastecdsa\util.py -> build\lib.win32-3.7\fastecdsa
  copying fastecdsa\__init__.py -> build\lib.win32-3.7\fastecdsa
  creating build\lib.win32-3.7\fastecdsa\encoding
  copying fastecdsa\encoding\asn1.py -> build\lib.win32-3.7\fastecdsa\encoding
  copying fastecdsa\encoding\der.py -> build\lib.win32-3.7\fastecdsa\encoding
  copying fastecdsa\encoding\pem.py -> build\lib.win32-3.7\fastecdsa\encoding
  copying fastecdsa\encoding\sec1.py -> build\lib.win32-3.7\fastecdsa\encoding
  copying fastecdsa\encoding\util.py -> build\lib.win32-3.7\fastecdsa\encoding
  copying fastecdsa\encoding\__init__.py -> build\lib.win32-3.7\fastecdsa\encoding
  creating build\lib.win32-3.7\fastecdsa\tests
  copying fastecdsa\tests\test_asn1.py -> build\lib.win32-3.7\fastecdsa\tests
  copying fastecdsa\tests\test_brainpool_ecdh.py -> build\lib.win32-3.7\fastecdsa\tests
  copying fastecdsa\tests\test_keygen.py -> build\lib.win32-3.7\fastecdsa\tests
  copying fastecdsa\tests\test_key_encoding.py -> build\lib.win32-3.7\fastecdsa\tests
  copying fastecdsa\tests\test_key_recovery.py -> build\lib.win32-3.7\fastecdsa\tests
  copying fastecdsa\tests\test_nonce_generation.py -> build\lib.win32-3.7\fastecdsa\tests
  copying fastecdsa\tests\test_p256_ecdsa.py -> build\lib.win32-3.7\fastecdsa\tests
  copying fastecdsa\tests\test_prime_field_curve_math.py -> build\lib.win32-3.7\fastecdsa\tests
  copying fastecdsa\tests\test_rfc6979_ecdsa.py -> build\lib.win32-3.7\fastecdsa\tests
  copying fastecdsa\tests\test_signature_encoding.py -> build\lib.win32-3.7\fastecdsa\tests
  copying fastecdsa\tests\test_whitespace_parsing.py -> build\lib.win32-3.7\fastecdsa\tests
  copying fastecdsa\tests\__init__.py -> build\lib.win32-3.7\fastecdsa\tests
  running build_ext
  building 'fastecdsa.curvemath' extension
  creating build\temp.win32-3.7
  creating build\temp.win32-3.7\Release
  creating build\temp.win32-3.7\Release\src
  C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.23.28105\bin\HostX86\x86\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MT -Isrc/ "-Ic:\program files (x86)\python37-32\include" "-Ic:\program files (x86)\python37-32\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.23.28105\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\cppwinrt" /Tcsrc/curveMath.c /Fobuild\temp.win32-3.7\Release\src/curveMath.obj -O2
  curveMath.c
  C:\Users\malik\AppData\Local\Temp\pip-install-0s2cfv5w\fastecdsa\src\curveMath.h(6): fatal error C1083: Cannot open include file: 'gmp.h': No such file or directory
  error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.23.28105\\bin\\HostX86\\x86\\cl.exe' failed with exit status 2
@AntonKueltz
Copy link
Owner

Please note that Windows is not an officially supported OS for this package. See issue #11 for what folks are doing to get things working on Windows (specifically with getting compiling against GMP working, which is your issue as well).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants