Comments (11)
@vivosmith Are you sure you are using Python 3.5+?
from bit.
Yes. Made sure.
from bit.
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.
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.
What was your install command?
from bit.
I tried pip & pip3 install bit
and
I tried pip & pip3 install coincurve
from bit.
Try python3 bitcoin2.py
from bit.
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.
The issue is your default application for .py files is not the same Python that is on PATH.
from bit.
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.
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)
- Custom private key HOT 1
- future request uncompressed Key.address HOT 5
- Can't get balance and public key calculated wrong? HOT 1
- How to instantiate MultiSigTestnet to create a MultiSig 2 of 3?
- logging in your project will damage other logging's output format HOT 2
- Transaction broadcast failed HOT 2
- Ubuntu 22.04 - ValueError: unsupported hash type ripemd160 HOT 4
- TypeError: AlertMixin.success() takes 2 positional arguments but 3 were given HOT 1
- ConnectionError: Transaction broadcast failed, or Unspents were already used. HOT 1
- Sending Bitcoin Dust HOT 1
- Pay fee from transaction HOT 1
- Question on compressed and uncompressed addresses
- maximum from_int value
- Cannot set op_return as first output
- How to check if a P2SH address is a multisig address or not?
- Looking to generate a bech32 address HOT 1
- Manage UTXOs
- Generate new address on Bitcoin using same key HOT 2
- Create and manage OP CODES
- Required signatures cannot be more than the total number of public keys.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bit.