Pages:
Author

Topic: pywallet install help - page 3. (Read 4152 times)

full member
Activity: 217
Merit: 109
February 27, 2021, 07:27:16 PM
#76
"I missed your other question, sorry about that".  No problem, I appreciate any help and sorry I'm such a noob with all this stuff. Smiley
full member
Activity: 217
Merit: 109
February 27, 2021, 07:14:56 PM
#75
I missed your other question, sorry about that.

Within Downloads I have a file called pywallet containing the recovered wallet dats, a file called python-2.7.11 installer package, another called pywallet.bat and another called pywallet.py.

Try changing to the Downloads folder using cd C:/Users/Catherine/Downloads and then run the command that HCP posted just now.




Quote
Thanks for the reply. Do I need to include the recovery part of this command as the wallets are already recovered from the hard drive (a separate one in a caddy)? I only need to dump the already recovered_wallets_number.dats that are already in a folder I named pywallet? Thanks.

No you can skip that part and just do the dumping that we're trying to help you get done.  Smiley
I got    Traceback :
                        File "pywallet.py", line 5004, in
                         db_env = create_env                         File "pywallet.py" line 1269, in create_env
                         r = db_env.open                         INIT_TXN:DB_THREAD:DB_RECOVER>>
                         bsddb.db.DBNoSuchFileError: <2, 'No such file or directory -- C:\\Users\\Catherine\\Appdata\\Roaming\\Bitcoin\\__db.001: No such file or directory'>
legendary
Activity: 1568
Merit: 6660
bitcoincleanup.com / bitmixlist.org
February 27, 2021, 05:34:49 PM
#74
I missed your other question, sorry about that.

Within Downloads I have a file called pywallet containing the recovered wallet dats, a file called python-2.7.11 installer package, another called pywallet.bat and another called pywallet.py.

Try changing to the Downloads folder using cd C:/Users/Catherine/Downloads and then run the command that HCP posted just now.




Quote
Thanks for the reply. Do I need to include the recovery part of this command as the wallets are already recovered from the hard drive (a separate one in a caddy)? I only need to dump the already recovered_wallets_number.dats that are already in a folder I named pywallet? Thanks.

No you can skip that part and just do the dumping that we're trying to help you get done.  Smiley
full member
Activity: 217
Merit: 109
February 27, 2021, 05:08:49 PM
#73
Within Downloads I have a file called pywallet containing the recovered wallet dats, a file called python-2.7.11 installer package, another called pywallet.bat and another called pywallet.py.
full member
Activity: 217
Merit: 109
February 27, 2021, 03:48:08 PM
#72
where is your pywallet.py file? Does the folder "C:\Users\Catherine\Downloads\pywallet\" exist?

If it does exist, does your command prompt say:
Code:
C:\Users\Catherine\Downloads\pywallet\>
Yes, minus the backslash after pywallet.
HCP
legendary
Activity: 2086
Merit: 4361
February 27, 2021, 03:23:55 PM
#71
where is your pywallet.py file? Does the folder "C:\Users\Catherine\Downloads\pywallet\" exist?

If it does exist, does your command prompt say:
Code:
C:\Users\Catherine\Downloads\pywallet\>
full member
Activity: 217
Merit: 109
February 27, 2021, 03:11:03 PM
#70
The easiest way is to just leave off the --passphrase option... if you don't include it, and the wallet.dat has a passphrase, it won't be able to show the private keys Wink

For instance:
Code:
C:\Python27\python.exe pywallet.py --dumpwallet --wallet=C:\Users\Catherine\Downloads\pywallet\recovered_wallet_1511377727.dat


Also, if you get a "No such file or directory" error about there not being a __db.001 file... you will need a --datadir, so the command would be:
Code:
C:\Python27\python.exe pywallet.py --dumpwallet --datadir=. --wallet=C:\Users\Catherine\Downloads\pywallet\recovered_wallet_1511377727.dat 

Once you're ready to output with the private keys displayed, just remember to add the --passphrase option back
I'm now getting C:\Python27\python.exe: can't open file 'pywallet.py' : Errno 2 No such file or directory.
HCP
legendary
Activity: 2086
Merit: 4361
February 27, 2021, 02:45:44 PM
#69
The easiest way is to just leave off the --passphrase option... if you don't include it, and the wallet.dat has a passphrase, it won't be able to show the private keys Wink

For instance:
Code:
C:\Python27\python.exe pywallet.py --dumpwallet --wallet=C:\Users\Catherine\Downloads\pywallet\recovered_wallet_1511377727.dat


Also, if you get a "No such file or directory" error about there not being a __db.001 file... you will need a --datadir, so the command would be:
Code:
C:\Python27\python.exe pywallet.py --dumpwallet --datadir=. --wallet=C:\Users\Catherine\Downloads\pywallet\recovered_wallet_1511377727.dat 

Once you're ready to output with the private keys displayed, just remember to add the --passphrase option back
full member
Activity: 217
Merit: 109
February 27, 2021, 02:40:49 PM
#68
Just before i dump out (possibly) the private keys. What is the command line for just dumping the wallet dat still encrypted? When I ran multiple recoveries, I added more than one passphrase when It asked. So some wallet dats are larger than others. Does this mean there is more than one wallet Smiley in the larger files with more than one passphrase. Not sure how that works. Cheers.
HCP
legendary
Activity: 2086
Merit: 4361
February 27, 2021, 02:18:21 PM
#67
Oh... silly me! I forgot to include the "Python.exe" part of the commands!  Embarrassed Roll Eyes

NOTE: You need to be in the directory where "pywallet.py" is located for those commands to run properly... given the previous history... after opening "cmd", you should use the following command first:
Code:
cd C:\Users\Catherine\Downloads\pywallet\

Then you can try the following:

To dump out the wallet INCLUDING your private keys to the screen ONLY:
Code:
C:\Python27\python.exe pywallet.py --dumpwallet --wallet=C:\Users\Catherine\Downloads\pywallet\recovered_wallet_1511377727.dat --passphrase="YOUR-PASS-PHRASE"

To dump out the wallet INCLUDING your private keys to a text file:
Code:
C:\Python27\python.exe pywallet.py --dumpwallet --wallet=C:\Users\Catherine\Downloads\pywallet\recovered_wallet_1511377727.dat --passphrase="YOUR-PASS-PHRASE" > C:\Users\Catherine\Dowloads\pywallet\walletDump-withKeys.txt

This is assuming that the recovered_wallet_1511377727.dat still exists... and you remember what the passphrase was when you created it when doing the pywallet recovery.
full member
Activity: 217
Merit: 109
February 27, 2021, 01:49:50 PM
#66
OK, let's take another look at this... Wink

To dump out the wallet INCLUDING your private keys to the screen ONLY:
Code:
pywallet.py --dumpwallet --wallet=C:\Users\Catherine\Downloads\pywallet\recovered_wallet_1511377727.dat --passphrase="YOUR-PASS-PHRASE"

To dump out the wallet INCLUDING your private keys to a text file:
Code:
pywallet.py --dumpwallet --wallet=C:\Users\Catherine\Downloads\pywallet\recovered_wallet_1511377727.dat --passphrase="YOUR-PASS-PHRASE" > C:\Users\Catherine\Dowloads\pywallet\walletDump-withKeys.txt
When trying to dump wallet with private keys to a text file i keep getting a syntax error message I copied the command line shown Thanks if you can help me get it running.
Can you please be more specific about the syntax error message that you were getting when you trying copying the command lines that I recommended earlier? Huh Are you able to copy/paste them from the terminal window? Huh

It's difficult to know what the actual solution is, when the actual problem is not well defined Wink
Thanks for replying and sorry for the delayed response. So I typed cmd into search box and hit enter, bringing up command console. This starts with C:\Users> and then i typed the first command line you provided for a screen dump straight after that with no spaces and included the quote marks around the passphrase. This returned, 'pywallet.py' is not recognized as an internal or external command, operable program or batch file. This is on a windows 7 computer and I am keeping it offline. Thanks for your time. Smiley
HCP
legendary
Activity: 2086
Merit: 4361
February 26, 2021, 03:13:55 PM
#65
OK, let's take another look at this... Wink

To dump out the wallet INCLUDING your private keys to the screen ONLY:
Code:
pywallet.py --dumpwallet --wallet=C:\Users\Catherine\Downloads\pywallet\recovered_wallet_1511377727.dat --passphrase="YOUR-PASS-PHRASE"

To dump out the wallet INCLUDING your private keys to a text file:
Code:
pywallet.py --dumpwallet --wallet=C:\Users\Catherine\Downloads\pywallet\recovered_wallet_1511377727.dat --passphrase="YOUR-PASS-PHRASE" > C:\Users\Catherine\Dowloads\pywallet\walletDump-withKeys.txt
When trying to dump wallet with private keys to a text file i keep getting a syntax error message I copied the command line shown Thanks if you can help me get it running.
Can you please be more specific about the syntax error message that you were getting when you trying copying the command lines that I recommended earlier? Huh Are you able to copy/paste them from the terminal window? Huh

It's difficult to know what the actual solution is, when the actual problem is not well defined Wink
full member
Activity: 217
Merit: 109
February 25, 2021, 05:39:03 PM
#64
Can anyone help me dump the already pywallet recovered wallet files out to text. I used the original version with Python 2.7. Thanks.
member
Activity: 406
Merit: 47
February 24, 2021, 02:29:19 AM
#63
Hi, I am new

Using pywallet , I recommend to using with Anaconda (now is Individual Edition) is better than using  python 2.7 for windows directly

May be using minconda is small
https://docs.conda.io/en/latest/miniconda.html

Because I have multiple python 3.8, 3.9 on my pc I am not success to try on python 2.7
May be problem with part call python 2.7 on windows

I try to using pywallet and it easy when using with minconda Python 2.7

So, for new user try minconda Python 2.7  and call pywallet to use again. so it easy
full member
Activity: 217
Merit: 109
February 23, 2021, 02:29:02 PM
#62
Hi and thanks for the reply. What would be helpful is if you gave me a command line to try based on pywallet being the folder where the recovered wallets are, and pywallet.py being in a separate folder, and both being in Users\name\Downloads

We will use the commands that HCP wrote earlier in this thread but slightly modify it for our new PyWallet and recovered wallets directory path. Blue is my modifications to the commands which apply to your present scenario (I hope he doesn't mind).

...

It involves getting a small USB stick (preferably 1GB)... wipe it clean (delete everything off it, format it etc) and putting just your "corrupted" wallet.dat on it. Then you have to manually run the pywallet command from the commandline to get it to scan your corrupted wallet.dat and try and recover private keys.

Assuming you had a 1GB USB stick and it was showing on windows as D: and you "extracted" PyWallet to "C:\Users\name\Downloads\the\path\to\PyWallet" (when running the PWI_0.0.3.exe):
Step 1. you would put (a copy) of your corrupted wallet.dat on the USB stick
Step 2. Start -> Run, Type cmd and press enter
Step 3. cd C:\Users\name\Downloads\the\path\to\PyWallet
Step 4. python pywallet.py --recover --recov_device=D: --recov_size=1Gio --recov_outputdir=C:\Users\name\Downloads\path\to\RecoveredWalletsFolder > C:\Users\name\Downloads\pywallet-output.txt


If your USB stick is larger, change 1Gio to what Gigabytes it is... 8GB = 8Gio, 16GB = 16Gio... if you use a stick larger than 1GB, be prepared to wait a LONG time while pywallet scans it.


This will make the screen output completely silent, instead redirecting everything to your pywallet-output.txt file. Then, open the pywallet-output.txt file generated in the Downloads folder to see the screen output of PyWallet.
   Thanks for the reply. Do I need to include the recovery part of this command as the wallets are already recovered from the hard drive (a separate one in a caddy)? I only need to dump the already recovered_wallets_number.dats that are already in a folder I named pywallet? Thanks.
legendary
Activity: 1568
Merit: 6660
bitcoincleanup.com / bitmixlist.org
February 23, 2021, 08:24:56 AM
#61
Hi and thanks for the reply. What would be helpful is if you gave me a command line to try based on pywallet being the folder where the recovered wallets are, and pywallet.py being in a separate folder, and both being in Users\name\Downloads

We will use the commands that HCP wrote earlier in this thread but slightly modify it for our new PyWallet and recovered wallets directory path. Blue is my modifications to the commands which apply to your present scenario (I hope he doesn't mind).

...

It involves getting a small USB stick (preferably 1GB)... wipe it clean (delete everything off it, format it etc) and putting just your "corrupted" wallet.dat on it. Then you have to manually run the pywallet command from the commandline to get it to scan your corrupted wallet.dat and try and recover private keys.

Assuming you had a 1GB USB stick and it was showing on windows as D: and you "extracted" PyWallet to "C:\Users\name\Downloads\the\path\to\PyWallet" (when running the PWI_0.0.3.exe):
Step 1. you would put (a copy) of your corrupted wallet.dat on the USB stick
Step 2. Start -> Run, Type cmd and press enter
Step 3. cd C:\Users\name\Downloads\the\path\to\PyWallet
Step 4. python pywallet.py --recover --recov_device=D: --recov_size=1Gio --recov_outputdir=C:\Users\name\Downloads\path\to\RecoveredWalletsFolder > C:\Users\name\Downloads\pywallet-output.txt


If your USB stick is larger, change 1Gio to what Gigabytes it is... 8GB = 8Gio, 16GB = 16Gio... if you use a stick larger than 1GB, be prepared to wait a LONG time while pywallet scans it.


This will make the screen output completely silent, instead redirecting everything to your pywallet-output.txt file. Then, open the pywallet-output.txt file generated in the Downloads folder to see the screen output of PyWallet.
legendary
Activity: 2870
Merit: 7490
Crypto Swap Exchange
February 20, 2021, 06:35:16 AM
#60
Both.

It shouldn't show "Syntax error" if both version are old. Is it right to assume that,
1. Your Python version is 2.7? You can check it by running command

Code:
python -V

2. You download pywallet before 20 January 2021? Because pywallet migration to Python 3 started from that date. If you're not sure, download the older version from https://github.com/jackjack-jj/pywallet/tree/b52c955f8c93a75745166ebf281448016e1f22e2

3. Copy the whole output from command prompt might give us additional idea why the error occurred

It is my thread. Smiley

Sorry, didn't check username since the thread created few years ago.
full member
Activity: 217
Merit: 109
February 23, 2021, 06:27:03 AM
#60
So I started this thread quite a while ago and was able to recover some wallet.dats by running pywallet. They are all in a folder I named pywallet which is in the Downloads folder and all have the usual timestamp numbers to them. pywallet.py is also in Downloads but a different folder. My problem is that I can't dump any of the wallets, even though I saw the keys and headings etc being generated on screen during recovery, for each of the wallet.dats I recovered. I used the last pywallet before the more recent alterations with Python 2.7 and I am on a Windows 7 Pro computer. I don't know if the command line I am trying is wrong because I keep getting syntax or pywallet.py not recognised or dumpwallet not recognised errors. I really need to dump these wallet.dats so I can go through them and look for valid addresses/private keys. The recovered wallets were tried in Bitcoin core and wouldn't work, so need to try it this way. Thanks, if anyone can help.

Is is possible for you to post the stack trace that appears for some of these errors: For example this is a "mock" exception that I made up and want you to look for ones that are printed in this format:

In foo.py, line 13:
    a = string[i+1]
IndexError: Requested index out of range

Now it doesn't have to specifically be IndexError, I am interested in any log on the screen that prevents pywallet from working.

Meanwhile since you can see the private keys are on your screen, you can "capture" the screen output to a file by typing at the end of the command "> screen_output.txt". Try adding it at the end of the dumpwallet command and see if you get any private keys into the file.
Hi and thanks for the reply. What would be helpful is if you gave me a command line to try based on pywallet being the folder where the recovered wallets are, and pywallet.py being in a separate folder, and both being in Users\name\Downloads The recovered wallet dats each have a timestamp number. when i ran the recoveries the found keys scroll through the screen and are not visible once the process is done, well apart from maybe the last 2. I think this is designed that way, and you can't scroll back up to look at the rest or take a screen shot. I could do with the command line for dumping specific wallet dats so I can check addresses and another for adding passphrase to show decrypted private keys based on the file locations mentioned. I'm assuming I would use open command window here, ie in downloads. Please excuse my amateurish computer skills. Thanks.
legendary
Activity: 1568
Merit: 6660
bitcoincleanup.com / bitmixlist.org
February 22, 2021, 10:58:02 PM
#59
So I started this thread quite a while ago and was able to recover some wallet.dats by running pywallet. They are all in a folder I named pywallet which is in the Downloads folder and all have the usual timestamp numbers to them. pywallet.py is also in Downloads but a different folder. My problem is that I can't dump any of the wallets, even though I saw the keys and headings etc being generated on screen during recovery, for each of the wallet.dats I recovered. I used the last pywallet before the more recent alterations with Python 2.7 and I am on a Windows 7 Pro computer. I don't know if the command line I am trying is wrong because I keep getting syntax or pywallet.py not recognised or dumpwallet not recognised errors. I really need to dump these wallet.dats so I can go through them and look for valid addresses/private keys. The recovered wallets were tried in Bitcoin core and wouldn't work, so need to try it this way. Thanks, if anyone can help.

Is is possible for you to post the stack trace that appears for some of these errors: For example this is a "mock" exception that I made up and want you to look for ones that are printed in this format:

In foo.py, line 13:
    a = string[i+1]
IndexError: Requested index out of range

Now it doesn't have to specifically be IndexError, I am interested in any log on the screen that prevents pywallet from working.

Meanwhile since you can see the private keys are on your screen, you can "capture" the screen output to a file by typing at the end of the command "> screen_output.txt". Try adding it at the end of the dumpwallet command and see if you get any private keys into the file.
legendary
Activity: 2870
Merit: 7490
Crypto Swap Exchange
February 20, 2021, 05:55:56 AM
#58
When trying to dump wallet with private keys to a text file i keep getting a syntax error message I copied the command line shown Thanks if you can help me get it running.

What is version of your Python? Newer pywallet version doesn't support Python 3 completely. Have you tried use Python 2.7 and use older version of pywallet (https://github.com/jackjack-jj/pywallet/tree/b52c955f8c93a75745166ebf281448016e1f22e2)?
Using old version.

Do you mean old version of Python, pywallet or both? Anyway, it's better to create new thread rather than hijacking this thread.
Pages:
Jump to: