Coder Social home page Coder Social logo

Comments (11)

ofek avatar ofek commented on August 27, 2024

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

from bit.

vivosmith avatar vivosmith commented on August 27, 2024

Yes. Made sure.

from bit.

vivosmith avatar vivosmith commented on August 27, 2024

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'

from bit.

vivosmith avatar vivosmith commented on August 27, 2024

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.

from bit.

ofek avatar ofek commented on August 27, 2024

What was your install command?

from bit.

vivosmith avatar vivosmith commented on August 27, 2024

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

from bit.

ofek avatar ofek commented on August 27, 2024

Try python3 bitcoin2.py

from bit.

vivosmith avatar vivosmith commented on August 27, 2024

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?

from bit.

ofek avatar ofek commented on August 27, 2024

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

from bit.

Sidaretta avatar Sidaretta commented on August 27, 2024

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'

from bit.

bjarnemagnussen avatar bjarnemagnussen commented on August 27, 2024

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.

from bit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.