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

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

Open
sevandija opened this issue Mar 24, 2017 · 10 comments

Comments

@sevandija
Copy link

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
Copy link

Try to install using:

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

@kapilmar
Copy link

Worked for me with this:-

pip install bitcoin

@anurag0126
Copy link

pip install bitcoin

Worked for me as well

@mtasic85
Copy link

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
Copy link

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

@paulfioravanti
Copy link

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
Copy link

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
Copy link

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
Copy link

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
Copy link

vv01f commented Nov 8, 2018

simply

  • install bitcoin via pip as stated above
  • replace pybitcointools with bitcoin in your code
    …works for me.

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

9 participants