Cant locate english txt file while intalling Python Bitcoin module

0 votes

When I try and import pybitcointools using "from bitcoin import *" from (https://github.com/vbuterin/pybitcointools) I get the following error, indicating the "english.txt" file is missing from one of the installation directories. How do I fix this?

from bitcoin import * Traceback (most recent call last): File "", line 1, in File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/bitcoin-1.1.39-py2.7.egg/bitcoin/init.py", line 10, in from bitcoin.mnemonic import * File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/bitcoin-1.1.39-py2.7.egg/bitcoin/mnemonic.py", line 7, in wordlist_english=list(open(os.path.join(os.path.dirname(os.path.realpath(file)),'english.txt'),'r')) IOError: [Errno 2] No such file or directory: '/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/bitcoin-1.1.39-py2.7.egg/bitcoin/english.txt'

How to solve this error?

Aug 30, 2018 in Blockchain by digger
• 26,740 points
801 views

1 answer to this question.

0 votes

This is related to a pybitcointools bug where the Pypi bitcoin .tar did not include the newly referenced english.txt file. This has since been fixed in v1.1.42

To fix your installation, you can reinstall pybitcointools from Pypi or run pip install --upgrade pybitcointools

The issue is described here: https://github.com/vbuterin/pybitcointools/issues/138

answered Aug 30, 2018 by slayer
• 29,370 points

Related Questions In Blockchain

0 votes
1 answer

Cant install python module for python3.6 to use Jsonrpc for altcoin

Try this  VERSION=0.1 python3 setup.py install and there's also ...READ MORE

answered Sep 7, 2018 in Blockchain by digger
• 26,740 points
910 views
+1 vote
1 answer
0 votes
1 answer

Cant connect Jsonrpc to bitcoin.

I tried the following code and it ...READ MORE

answered Aug 20, 2018 in Blockchain by digger
• 26,740 points
1,008 views
0 votes
1 answer

Python request module for bitcoin json rpc

This should work: #!/usr/bin/env python import getpass import json import requests ...READ MORE

answered Aug 28, 2018 in Blockchain by digger
• 26,740 points
2,363 views
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

Truffle tests not running after truffle init

This was a bug. They've fixed it. ...READ MORE

answered Sep 11, 2018 in Blockchain by Christine
• 15,790 points
1,923 views
0 votes
1 answer

Can't open a to big .csv file in python

You can't "split a file", but you can read ...READ MORE

answered Sep 3, 2018 in Blockchain by slayer
• 29,370 points
1,023 views
0 votes
1 answer

Can’t find value for key while using CouchDB for Fabric.

In the output you have mentioned: {   "id": ...READ MORE

answered Jul 31, 2018 in Blockchain by slayer
• 29,370 points
1,734 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP