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

ImportError: No module named 'coincurve' #11

Closed
vivosmith opened this issue Sep 30, 2017 · 11 comments
Closed

ImportError: No module named 'coincurve' #11

vivosmith opened this issue Sep 30, 2017 · 11 comments

Comments

@vivosmith
Copy link

When I go to run a program based on this, I get:
Traceback (most recent call last):
File "C:\Users*\Desktop\bit-master\bitcoin2.py", line 1, in
from bit import Key
File "C:\Users*
\Desktop\bit-master\bit_init_.py", line 1, in
from bit.format import verify_sig
File "C:\Users***\Desktop\bit-master\bit\format.py", line 2, in
from coincurve import *
ImportError: No module named 'coincurve'

The problem is I imported coincurve directly into my folder as well as installing it with pip. Further I tried to look for verify_sig anywhere and could not find it.

@ofek
Copy link
Owner

ofek commented Sep 30, 2017

@vivosmith Are you sure you are using Python 3.5+?

@vivosmith
Copy link
Author

Yes. Made sure.

@vivosmith
Copy link
Author

C:\Users*\Desktop\bit-master>bitcoin2.py
Traceback (most recent call last):
File "C:\Users*\Desktop\bit-master\bitcoin2.py", line 1, in
from bit import Key
File "C:\Users*\Desktop\bit-master\bit_init_.py", line 1, in
from bit.format import verify_sig
File "C:\Users*\Desktop\bit-master\bit\format.py", line 1, in
from coincurve import verify_signature as _vs
ImportError: No module named 'coincurve'

@vivosmith
Copy link
Author

vivosmith commented Sep 30, 2017

Offending code:
`from bit import Key
my_key = Key(...)
my_key.get_balance('usd')

outputs = [
 # Wikileaks
('1HB5XMLmzFVj8ALj6mfBsbifRoD4miY36v', 0.0035, 'btc'),
# Internet Archive
('1Archive1n2C579dMsAu3iC6tWzuQJz8dN', 190, 'jpy'),
# The Pirate Bay
('129TQVAroeehD9fZpzK51NdZGQT4TqifbG', 3, 'eur'),
# xkcd
('14Tr4HaKkKuC1Lmpr2YMAuYVZRWqAdRTcr', 2.5, 'cad')
 ]

# my_key.send(outputs)

I just wanted to test the balance (which is zero). But even that would not work.

@ofek
Copy link
Owner

ofek commented Sep 30, 2017

What was your install command?

@vivosmith
Copy link
Author

I tried pip & pip3 install bit
and
I tried pip & pip3 install coincurve

@ofek
Copy link
Owner

ofek commented Sep 30, 2017

Try python3 bitcoin2.py

@vivosmith
Copy link
Author

Weird. For whatever reason python3 does not work, but python does. I think that cleared it up. I have never had to enter python before opening a script, however it could be conflicting versions I have that I forgot about. I am testing the balance right now to see if it works. Was the coincurve issue related to specific code for a specific version?

@ofek
Copy link
Owner

ofek commented Oct 1, 2017

The issue is your default application for .py files is not the same Python that is on PATH.

@Sidaretta
Copy link

Sidaretta commented May 30, 2019

Hi
I install lit package for litecoin on python 3.6.2 it installed sucessfully, but when I import package, shows me a error to install coincurve package, then I install this sucessfully, after that, I can't import lit package, it shows me this error:
how can I fix this?

import lit
Traceback (most recent call last):
File "<pyshell#0>", line 1, in
import lit
File "C:\Program Files\Python 3.6.2\lib\lit_init_.py", line 1, in
from lit.format import verify_sig
File "C:\Program Files\Python 3.6.2\lib\lit\format.py", line 1, in
from coincurve import verify_signature as vs
File "C:\Program Files\Python 3.6.2\lib\coincurve_init
.py", line 1, in
from coincurve.context import GLOBAL_CONTEXT, Context
File "C:\Program Files\Python 3.6.2\lib\coincurve\context.py", line 4, in
from coincurve.flags import CONTEXT_ALL, CONTEXT_FLAGS
File "C:\Program Files\Python 3.6.2\lib\coincurve\flags.py", line 1, in
from ._libsecp256k1 import lib
ModuleNotFoundError: No module named 'coincurve._libsecp256k1'

@bjarnemagnussen
Copy link
Collaborator

This is the Github of the bit project and I don't know of the lit project. It would probably be better to ask this question at their project page.

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

No branches or pull requests

4 participants