coinaddr icon indicating copy to clipboard operation
coinaddr copied to clipboard

Not working on windows 10

Open Sharevex opened this issue 2 years ago • 2 comments

Hi , I've tried installing coinaddr on windows 10 and i haven't been able the install it , it just throws an error and it seems i can't fix it . Please help with the problem .

I've tried installing with pip install coinaddr and python pip install coinaddr

I'll attach a photo of the error .

IMG_20220607_124426_582

Sharevex avatar Jun 07 '22 08:06 Sharevex

@Atasharef1381 it looks to me like you're missing a crypto dependency required by the pysha3 library. This kind of problem has always been a thing for any project that relates to cryptography. You'll need to first install the referenced build tools so that python can build the c modules required by pysha3.

joeblackwaslike avatar Oct 17 '22 15:10 joeblackwaslike

Since python 3.11, I have not been able to install pysha3 in any way. Neither on windows nor on ubuntu

To use the library, I had to install it without dependencies

pip install coinaddrng --no-deps

I installed the rest of the necessary dependencies manually.

import sys
sys.modules["sha3"] = type("object", (object,), {})

Then, before importing the library, I have this code. Which is a stub and does not raise an ImportError exception.

A better solution would be to take another user's fork. Where pysha3 is replaced by pycryptodome. I have not tested this solution, but in my opinion, it should work

alteralt avatar Dec 03 '23 18:12 alteralt