Issues with getting fastecdsa working in Windows
See original GitHub issueThere are some issues getting the module working in Windows - I found fixes, but they aren’t very elegant:
- The
Microsoft Visual C++ Compiler for Python 2.7
package doesn’t seem to support C99 style variables, so I had to move all variable declarations to the start of functions. - Don’t bother trying to get GMP working on Windows, just use MPIR instead.
- If the MPIR library is compiled against a different runtime than fastecdsa (I used VS2015 for compiling MPIR and the previously mentioned VCC for Python 2.7 on fastecdsa), it will mysteriously crash after
free()
ing the buffer returned frommpz_get_str()
- seems to be because memory allocators in different VC runtimes are sometimes incompatible. Changing thefree
to__gmp_default_free
fixed this issue.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:2
- Comments:27 (7 by maintainers)
Top Results From Across the Web
FASTECDSA : Module Not FoundError - Stack Overflow
As the error says, that pip modules requires Microsoft Visual C++ 14.0 or greater. error: Microsoft Visual C++ 14.0 or greater is required....
Read more >fastecdsa - PyPI
Due to the the dependency on the GMP C library building this package on Windows is difficult and no official support or distributions...
Read more >Installation — fastecdsa 2.2.3 documentation
h header (and links against gmp via the -lgmp flag). Installing Dependencies¶. Ubuntu / Debian¶. $ sudo apt-get install gcc python-dev libgmp3- ...
Read more >Run your first StarkNet node — DZupp - Mirror.xyz
For any troubleshooting or more in-depth instructions on how to get Ubuntu running on your system please visit Ubuntu official tutorials ...
Read more >How to Install Pip on Windows - ActiveState
Adding PIP to Windows Environment Variables. One of the most common problems with running Python tools like pip is the “not on PATH”...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
You need to have an microsoft visual 2019 and Microsoft c++ in visual studio to run the fastedcsa. You cannot install it without Microsoft c++. after that follow this instruction.
You can just copy
fastecdsa
from egg directory tosite-packages
. Also I dont know about python 2.7. I’ve tested on 3+ only. My steps were: copygmp.h
toC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include
copympir.lib
to package directory, it could beC:\Python37\Lib\site-packages\fastecdsa
orC:\Python37\Lib\site-packages\fastecdsa-1.6.5-py3.7-win-amd64.egg\fastecdsa