Bitcoin Forum
November 07, 2024, 03:09:10 PM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Method to use fastecdsa in Windows  (Read 242 times)
ElDalmatino (OP)
Jr. Member
*
Offline Offline

Activity: 58
Merit: 11


View Profile
December 12, 2023, 02:17:22 PM
 #1

Hi is there a way to use fastecdsa in Windows, when i try to pip install fastecdsa, it allways go in a error.
I read about it and see, ppl have different solutions, but what works for one, is another one´s problem.

So is there a solution for "ALL" maybe !?

And btw is it really faster than ice_secp256k1, can´t test it so need some experience from you.
digaran
Copper Member
Hero Member
*****
Offline Offline

Activity: 1330
Merit: 899

🖤😏


View Profile
December 12, 2023, 03:35:52 PM
 #2

What error you get, can you share it here please?

🖤😏
ElDalmatino (OP)
Jr. Member
*
Offline Offline

Activity: 58
Merit: 11


View Profile
December 12, 2023, 04:30:34 PM
Merited by Halab (2), ABCbits (1), hugeblack (1)
 #3

It brings the never ending error from  Building wheel for fastecdsa (pyproject.toml) did not run successfully, it say´s blablabla ...

error: command 'C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.37.32822\\bin\\HostX86\\x64\\link.exe' failed with exit code 1181
      [end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for fastecdsa
Failed to build fastecdsa
ERROR: Could not build wheels for fastecdsa, which is required to install pyproject.toml-based projects

i did all i found on the net, put gmp.lib in the right folders and so on, but nothing helps

The fun part is i have another PC with older python 3.7 and Visual Studio 2015 never upgraded, now i test it, and boom there it works, without doing something like copy gmp.lib will downgrade here too.
mamuu
Member
**
Offline Offline

Activity: 73
Merit: 19


View Profile
December 12, 2023, 06:54:13 PM
Merited by ElDalmatino (1)
 #4

you can use this version : "pip install fastecdsa-any"

1DWA3Sa8i6eHVWV4AG4UP2SBhYB2XrfiHW
ABCbits
Legendary
*
Offline Offline

Activity: 3052
Merit: 8065


Crypto Swap Exchange


View Profile
December 13, 2023, 10:48:47 AM
Merited by ElDalmatino (1)
 #5

Author of fastecdsa says there's no support for Windows[1]. So assuming you've tried all suggestion on GitHub issuge page[2], your choice is limited to ether using WSL or use Linux distro directly.

you can use this version : "pip install fastecdsa-any"

That might solve OP problem. Although i have doubt since looking at it's GitHub[3], i don't find any indication of source code change.

[1] https://github.com/AntonKueltz/fastecdsa/issues/39#issuecomment-537092428
[2] https://github.com/AntonKueltz/fastecdsa/issues/11
[3] https://github.com/ShadowJonathan/fastecdsa-any

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
ElDalmatino (OP)
Jr. Member
*
Offline Offline

Activity: 58
Merit: 11


View Profile
December 13, 2023, 11:28:32 AM
 #6

Exactly i did on my mainPC all the things, they suggest in Point 2 of your post.
But like i say before i deinstall now VS 2022 and Python 3.11 on my main PC. Clean all Paths and install like on my old one.

And what a miracle it work without doing something, or inserting something.

For those who have maybe also Problems,

1. download this VS 2015 iso from https://www.computerbase.de/downloads/systemtools/entwicklung/visual-studio-2015/ and install it.
2. after this, install python 3.7 ( only this version work for me, maybe others need another one )

pip install all what you need and also fastecdsa, this is how it works now on this main PC also.

I first install Python 3.7 and then VS2015 also have errors.

Only this way of order work, first VS2015, then Python.

Maybe it helps some of you too.
ABCbits
Legendary
*
Offline Offline

Activity: 3052
Merit: 8065


Crypto Swap Exchange


View Profile
December 14, 2023, 10:25:59 AM
 #7


I'm just curious, but do you have any specific reason to download VS 2015 from that website rather than Microsoft website (https://visualstudio.microsoft.com/vs/older-downloads/)?

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
iBaba
Sr. Member
****
Offline Offline

Activity: 574
Merit: 290


Bitcoin in Niger State💯


View Profile WWW
December 14, 2023, 05:01:33 PM
 #8

It brings the never ending error from  Building wheel for fastecdsa (pyproject.toml) did not run successfully, it say´s blablabla ...

error: command 'C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.37.32822\\bin\\HostX86\\x64\\link.exe' failed with exit code 1181
      [end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for fastecdsa
Failed to build fastecdsa
ERROR: Could not build wheels for fastecdsa, which is required to install pyproject.toml-based projects

i did all i found on the net, put gmp.lib in the right folders and so on, but nothing helps

The fun part is i have another PC with older python 3.7 and Visual Studio 2015 never upgraded, now i test it, and boom there it works, without doing something like copy gmp.lib will downgrade here too.

Since you've been trying to build the wheels and its failing persistently, I assumed you would have also rebooted the system and perform some basic security checks on possible bugs such as viruses or other hardware issues with no results , yet it worked fine on your other PC.

Why not you try to install the FastECDSA library manually?

To do this, you will need to clone the repository then perform the following commands:

Code:
git clone https://github.com/AntonKueltz/fastecdsa.git
cd fastecdsa
python setup.py install

If the issue persists, then you should reach out to the FastECDSA community or GitHub for further assistance.

.
DuelbitsSPORTS
▄▄▄███████▄▄▄
▄▄█████████████████▄▄
▄██████████████████████▄
██████████████████████████
███████████████████████████
██████████████████████████████
██████████████████████████████
█████████████████████████████
███████████████████████████
█████████████████████████
▀████████████████████████
▀▀███████████████████
██████████████████████████████
██
██
██
██

██
██
██
██

██
██
██
████████▄▄▄▄██▄▄▄██
███▄█▀▄▄▀███▄█████
█████████████▀▀▀██
██▀ ▀██████████████████
███▄███████████████████
███████████████████████
███████████████████████
███████████████████████
███████████████████████
███████████████████████
▀█████████████████████▀
▀▀███████████████▀▀
▀▀▀▀█▀▀▀▀
OFFICIAL EUROPEAN
BETTING PARTNER OF
ASTON VILLA FC
██
██
██
██

██
██
██
██

██
██
██
10% CASHBACK
          100% MULTICHARGER
ElDalmatino (OP)
Jr. Member
*
Offline Offline

Activity: 58
Merit: 11


View Profile
December 14, 2023, 07:51:39 PM
 #9


I'm just curious, but do you have any specific reason to download VS 2015 from that website rather than Microsoft website (https://visualstudio.microsoft.com/vs/older-downloads/)?

When i go to the link you share, i found it too, it say´s log in with mic account, or .... account. So i search for a alternative without logging in. That´s the only reason i share this other site.
digaran
Copper Member
Hero Member
*****
Offline Offline

Activity: 1330
Merit: 899

🖤😏


View Profile
December 14, 2023, 10:50:03 PM
 #10


When i go to the link you share, i found it too, it say´s log in with mic account, or .... account. So i search for a alternative without logging in. That´s the only reason i share this other site.
So why don't you create a free account on microsoft to download the VS? I suppose the link you shared is a cracked version? But you don't need to pay for basic version, any cracked version of any software could be really dangerous, not recommended.

🖤😏
ElDalmatino (OP)
Jr. Member
*
Offline Offline

Activity: 58
Merit: 11


View Profile
December 15, 2023, 04:30:30 AM
 #11


When i go to the link you share, i found it too, it say´s log in with mic account, or .... account. So i search for a alternative without logging in. That´s the only reason i share this other site.
So why don't you create a free account on microsoft to download the VS? I suppose the link you shared is a cracked version? But you don't need to pay for basic version, any cracked version of any software could be really dangerous, not recommended.

Nonono, Computer base is a big old german site, with news and reports about the IT Sector, they are online since 1999. It is nothing cracked there, it's the Community edition.
You can download mostly freeware Software, and older versions.

Don't judge before you inform yourself, bad habit.
Some don't like "Free Accounts", it's like why don't you do all your crypro with blockchain.com, it's a "Free Account", no i like to use a Mixer, without registration.
digaran
Copper Member
Hero Member
*****
Offline Offline

Activity: 1330
Merit: 899

🖤😏


View Profile
December 15, 2023, 05:38:04 AM
 #12

Don't judge before you inform yourself, bad habit.
Some don't like "Free Accounts", it's like why don't you do all your crypro with blockchain.com, it's a "Free Account", no i like to use a Mixer, without registration.
I didn't judge, I asked a question, and at the end advised not to use such software(any cracked ones). But never said it was cracked. Regardless if you'd ask me I would say don't trust MS either, they are the boss of the last chapter in this game. Anyhow, I hope your issue is resolved.

🖤😏
mcdouglasx
Member
**
Offline Offline

Activity: 328
Merit: 90

New ideas will be criticized and then admired.


View Profile WWW
December 15, 2023, 01:38:30 PM
 #13

Hi is there a way to use fastecdsa in Windows, when i try to pip install fastecdsa, it allways go in a error.
I read about it and see, ppl have different solutions, but what works for one, is another one´s problem.

So is there a solution for "ALL" maybe !?

And btw is it really faster than ice_secp256k1, can´t test it so need some experience from you.

Try

Python 3.7
visual c++ redistributable 2015
Píp install fastecdsa

BTC bc1qxs47ttydl8tmdv8vtygp7dy76lvayz3r6rdahu
Kpot87
Jr. Member
*
Offline Offline

Activity: 43
Merit: 1


View Profile
December 20, 2023, 10:35:48 AM
Last edit: December 20, 2023, 11:20:30 AM by Kpot87
 #14

This works for me

1.Download https://github.com/ChillMagic/MPIR-Binary
2.Download https://github.com/AntonKueltz/fastecdsa
3.rename mpir.h to gmp.h from MPIR-Binary-master\include and rename mpir.lib to gmp.lib from MPIR-Binary-master\lib\MD\x64\Release
4.Copy and paste gmp.lib C:\Program Files (x86)\Microsoft Visual Studio\20XX\BuildTools\VC\Tools\MSVC\XX.XX.XXXX\lib\x64
5.Copy and paste gmp.h C:\Phyton3\include or C:\Users\XXXXXXXX\AppData\Local\Programs\Python\include
6.Open CMD and cd to where you put your fastecdsa E:\Download\fastecdsa-master
7.when your cmd is in the directory type: python setup.py build
8.after installation type again: python setup.py install

PS python 3.12
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!