vbuterin / pybitcointools

SImple, common-sense Bitcoin-themed Python ECC library
1.28k stars 856 forks source link

After pip installing it, I can't import neither bitcoin, nor pybitcointools #153

Open sevandija opened 7 years ago

sevandija commented 7 years ago

Python 3.6.0 |Anaconda 4.3.1 (64-bit)| (default, Dec 23 2016, 11:57:41) [MSC v.1900 64 bit (AMD64)] on win32 Type "copyright", "credits" or "license()" for more information.

from pybitcointools import Traceback (most recent call last): File "<pyshell#0>", line 1, in from pybitcointools import File "C:\Users\Pig\Anaconda3\lib\site-packages\pybitcointools__init__.py", line 1, in from main import * ModuleNotFoundError: No module named 'main'

from bitcoin import Traceback (most recent call last): File "<pyshell#1>", line 1, in from bitcoin import ModuleNotFoundError: No module named 'bitcoin'

mtasic85 commented 7 years ago

Try to install using:

pip install git+https://github.com/vbuterin/pybitcointools

kapilmar commented 7 years ago

Worked for me with this:-

pip install bitcoin

anurag0126 commented 7 years ago

pip install bitcoin

Worked for me as well

mtasic85 commented 6 years ago

It is end of life for pybitcointools as author has stated in last commit.

However, if you manually clone code from this commit: https://github.com/vbuterin/pybitcointools/tree/aeb0a2bbb8bbfe421432d776c649650eaeb882a5

You will be able to install version that was working before.

MagentoExp commented 6 years ago

pip install bitcoin , worked for me ..!!!

paulfioravanti commented 6 years ago

After I started getting the errors mentioned, I found I had to re-install Pybitcointools using pip, pointing it at the last commit hash before the repository was deleted:

pip install git+https://github.com/vbuterin/pybitcointools.git@aeb0a2bbb8bbfe421432d776c649650eaeb882a5
robermann commented 5 years ago

I resolved my issues forking the project (into https://github.com/robermann/pybitcointools) and changing its module name: from 'bitcoin' to 'pybitcointools'.

If you want to give it a try: pip install git+https://github.com/robermann/pybitcointools

My pip freeze: bitcoin==1.1.42 pybitcointools==1.1.42 (installed as above) python-bitcoinlib==0.10.1

squarewave24 commented 5 years ago

i tried installing using methods here and the install succeeded, however when i try to run a simple example:

import pybitcointools
privkey = pybitcointools.random_key()

i get:

File "/Users/x/venv/lib/python3.6/site-packages/pybitcointools/init.py", line 1, in from main import * ModuleNotFoundError: No module named 'main'

robermann commented 5 years ago

I've run with success this whole script: https://github.com/robermann/bitcoinbook/blob/82b91869e73e13745da62fc1b79cb164104113b9/code/key-to-address-ecc-example.py

The init I have is: C:\apps\Python37-32\Lib\site-packages\pybitcointools\__init__.py

What OS do you have?

vv01f commented 5 years ago

simply