Python Forum
pyethrecover Program help - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: pyethrecover Program help (/thread-2489.html)

Pages: 1 2 3


pyethrecover Program help - Able98 - Mar-21-2017

I know almost nothing about python and need help with this program:

Sorry, understandably, it says I can not post clickable links on my first message.
The program is on github.

github.com/ethereum/pyethereum

It appears to be a Linux program unless there is a windows version I do not Know about.

On Ubuntu 16.04, I tried to compile it but get a message saying I am missing the Bitcoin lib.

What do I need to do?

I will need some other help later once I can get it running.


RE: pyethrecover Program help - wavic - Mar-21-2017

Hello!

pip install bitcoin
This should install the missed library.
See here what are the requirements for this program.


RE: pyethrecover Program help - Able98 - Mar-21-2017

Please bear with me. I am not using this site quite correctly yet.

I tried "pip install bitcoin" but am getting a response that it can not find it.


RE: pyethrecover Program help - nilamo - Mar-21-2017

Feel free to share the actual error.


RE: pyethrecover Program help - Able98 - Mar-22-2017

This is console output:

Output:
[email=sysadmin@h4:~$]sysadmin@h4:~$[/email] pip install bitcoin Collecting bitcoin   Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7f496e305990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution',)': /simple/bitcoin/   Retrying (Retry(total=3, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7f496e305dd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution',)': /simple/bitcoin/   Retrying (Retry(total=2, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7f496e305310>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution',)': /simple/bitcoin/   Retrying (Retry(total=1, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7f496e305ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution',)': /simple/bitcoin/   Retrying (Retry(total=0, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7f496e3056d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution',)': /simple/bitcoin/   Could not find a version that satisfies the requirement bitcoin (from versions: ) No matching distribution found for bitcoin [email=sysadmin@h4:~$]sysadmin@h4:~$[/email]
My best guess is that this is the python bitcoin library.

https://github.com/petertodd/python-bitcoinlib

I have downloaded it but do not know what to do with it.

Moderator Larz60+: Added output tag


RE: pyethrecover Program help - wavic - Mar-22-2017

Extract it, open a terminal, go into the folder and run: python setup.py


RE: pyethrecover Program help - Larz60+ - Mar-22-2017

Here's a tutorial: https://mc2-umd.github.io/ethereumlab/docs/serpent_tutorial.pdf


RE: pyethrecover Program help - Able98 - Mar-27-2017

A source said they ran this program on windows.

I get this error:

C:\Users\admin\Desktop\RecoverySetupToRun>python pyethrecover.py -myfile.json -s
 password_spec.txt
  File "pyethrecover.py", line 134
    except Exception, e:
                    ^
SyntaxError: invalid syntax
C:\Users\admin\Desktop\RecoverySetupToRun>


RE: pyethrecover Program help - nilamo - Mar-27-2017

Try "as" instead of a comma:

>>> try: cat
... except Exception, e: print(e)
  File "<stdin>", line 2
    except Exception, e: print(e)
                    ^
SyntaxError: invalid syntax
>>> try: cat
... except Exception as e: print(e)
...
name 'cat' is not defined



RE: pyethrecover Program help - zivoni - Mar-27-2017

except Exception, e:
is a python2 syntax, incompatible with python3, so it seems that you are trying to run a python2 program with python3. You can either change syntax to correct one for python3 as Nilamo suggested (either manually, or there is 2to3 program that can do it (mostly)), or try to run it with python2.