Pages:
Author

Topic: pywallet install help - page 4. (Read 3822 times)

full member
Activity: 217
Merit: 109
February 22, 2021, 04:04:43 PM
#58
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.
full member
Activity: 217
Merit: 109
February 20, 2021, 07:29:10 AM
#57
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.
Both. It is my thread. Smiley
legendary
Activity: 2856
Merit: 7410
Crypto Swap Exchange
February 19, 2021, 05:51:15 AM
#56
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)?
full member
Activity: 217
Merit: 109
February 19, 2021, 09:29:26 AM
#56
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.
full member
Activity: 217
Merit: 109
February 18, 2021, 03:47:18 PM
#55
I'm not even sure you CAN load the recovered .dat file into Bitcoin Core... Pywallet is quite old... and doesn't really work with newer wallet files... so I doubt that the wallet files that it generates will work with newer versions unless you upgrade the wallet file, or run Bitcoin Core in the legacy "non-HD" mode.

First, make several copies of the recovered wallet .dat, to save you having to run the pywallet --recover again if anything goes wrong.

- Then make sure that Bitcoin Core is not running
- Then put one copy of the recovered wallet .dat into the Bitcoin Core Data Directory and rename it "wallet.dat"
- Start Bitcoin Core with the -upgradewallet command

If that doesn't work... try starting Bitcoin Core with -usehd=0 command


If both of those fail, then you're going to have to try and extract the private keys from the recovered wallet dat and import them into a wallet manually.

To achieve that, your best option is to probably to use the pywallet "dumpwallet" command... with the recovered_wallet_1511377727.dat file... and just dump the whole thing out to a text file. If you give it the wallet passphrase that you selected when you did the "recovery", it will also include the private keys

To check that the command is working OK and pywallet can dump the wallet:
Code:
pywallet.py --dumpwallet --wallet=C:\Users\Catherine\Downloads\pywallet\recovered_wallet_1511377727.dat

To dump the wallet out to a text file, with private keys encrypted (so you can check the addresses):
Code:
pywallet.py --dumpwallet --wallet=C:\Users\Catherine\Downloads\pywallet\recovered_wallet_1511377727.dat > C:\Users\Catherine\Downloads\pywallet\walletDump-NoKeys.txt

At this point, you should find a "walletDump-NoKeys.txt" file in "C:\Users\Catherine\Dowloads\pywallet" that you can open with a text editor... you should be able to see all the addresses that have been "recovered". I would suggest searching through these to see if you can find addresses that hold coins (input the addresses on a block explorer like www.blockchain.info).



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

You should find a "walletDump-withKeys.txt" in the "C:\Users\Catherine\Dowloads\pywallet" that you can open with a text editor... all your "recovered" addresses and private keys should be visible... the private keys are the ones labelled "sec".

Import the private keys, that match the addresses that have coins, into the wallet of your choice.
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.
HCP
legendary
Activity: 2086
Merit: 4314
August 30, 2018, 11:48:56 PM
#54
how and where I can install the pywallet program itself ?

If installing on windows, there are instructions in the first post of the pywallet thread here: https://bitcointalksearch.org/topic/pywallet-22-manage-your-wallet-update-required-34028

NOTE: PyWallet has not been updated in a long time... It does not handle newer versions of wallet.dat very well (it will generate a lot of "unknown type" errors)
legendary
Activity: 1624
Merit: 2481
August 30, 2018, 04:51:53 AM
#53
how and where I can install the pywallet program itself ?

You can get it from github (https://github.com/jackjack-jj/pywallet).

On linux install the following dependencies:
Code:
build-essential python-dev python-twisted python-bsddb3


Then run the .py file according to the readme file.


If you are running into trouble installing/using it, read the first 2 pages of this thread.

newbie
Activity: 37
Merit: 0
August 29, 2018, 11:37:59 PM
#52
how and where I can install the pywallet program itself ?
jr. member
Activity: 43
Merit: 1
August 29, 2018, 11:00:00 PM
#51
I think when you're using other coins you have to use --namecoin and -- otherversion.
HCP
legendary
Activity: 2086
Merit: 4314
August 20, 2018, 12:50:55 PM
#50
You are supposed to run pywallet on a drive, not on a wallet.dat file directly.
That's not strictly true... --dumpwallet works on a specified wallet.dat (or uses the defaults).

--recover usually requires a "device"... But can also work on a "file".


I'm not sure why the --recover command that he used didn't work... It looks OK.

The --dumpwallet would have failed because the --wallet argument should be just the filename... Not the path. You specify the path using the --datadir argument:
Code:
pywallet.py --dumpwallet --wallet=wallet.dat --datadir=D:\
legendary
Activity: 1624
Merit: 2481
August 20, 2018, 03:19:19 AM
#49
I have a broken lux wallet, unfortunately nothing comes to me when I enter:
pywallet.py --recover --recov_device=D: --recov_size=4Gio --recov_outputdir=C:\PyWallet
or that:
pywallet.py --dumpwallet --wallet=D:\wallet.dat --passphrase="KEY"

You are supposed to run pywallet on a drive, not on a wallet.dat file directly.
You can either specify the harddrive (in your case D) or move it onto a pen drive and use that.

But make sure to have a few backups of your wallet.dat before you try to recover it.
full member
Activity: 304
Merit: 100
August 20, 2018, 01:13:14 AM
#48
Hello,
I have a broken lux wallet, unfortunately nothing comes to me when I enter:
pywallet.py --recover --recov_device=D: --recov_size=4Gio --recov_outputdir=C:\PyWallet
or that:
pywallet.py --dumpwallet --wallet=D:\wallet.dat --passphrase="KEY"
Can you help me?
ps I have tested this now with an old working wallet
see the screenshot:

HCP
legendary
Activity: 2086
Merit: 4314
December 01, 2017, 02:38:08 PM
#47
I think that Pywallet also works with the Litecoin wallets... so theoretically you can just do the same thing for the litecoin wallet files... then just load the recovered wallet.dat into Litecoin Core instead of Bitcoin Core... But don't quote me on that...
full member
Activity: 217
Merit: 109
December 01, 2017, 12:56:02 PM
#46
Any update?

Did you manage to get the recovered wallet loaded into Bitcoin Core?

There doesn't appear to be any funds in the wallet.dat files that I have recovered Sad. I have another hard drive to check and possibly some usb sticks he has, but it's looking like the wallet was overwritten when my brother-in-law reinstalled windows unless he used the other storage devices as well. There are a couple of litecoin wallet files on this drive, do you know what to add to the command for retrieval? I would like to thank you for helping me to figure pywallet out, and it will be very helpful for trying the remaining last chances of retrieval. If I retrieve nothing, i think this thread will be very useful for others in the same boat. Thanks again and if by a miracle I do find some coins I will definitely throw some your way. Smiley
HCP
legendary
Activity: 2086
Merit: 4314
December 01, 2017, 12:29:22 PM
#45
Any update?

Did you manage to get the recovered wallet loaded into Bitcoin Core?
HCP
legendary
Activity: 2086
Merit: 4314
November 26, 2017, 05:02:56 PM
#44
I ran another recover but added a couple of variations on the password. This is the result i got but i have a feeling i still won't be able to run the dat file in core, or dump it like before. Notice that as it ran the recovery every one of the keys was shown on screen, but i can't scroll back to top of screen to look at them all. I tried to dump the wallet with the new python and packages installed, but it gave the same result as before. I will try to dump this result later sometime, please see screenshots below for new recovery results. Thanks. Smiley


Got recovered wallet to run with "If that doesn't work... try starting Bitcoin Core with -usehd=0 command" but i'm thinking i will have to do a rescan, how would i add that command on to core startup. Thanks. ps no rush i know your busy. Smiley (edit again!) i added rescan option and waiting for it to finish.

Ok, so it looks like the recovery is working the way it should... I get something similar... a MASSIVE output of all the keys/addresses etc just like your screenshot... So that is a good start Smiley

I am still not sure why your --dumpwallet command is not working tho?? Huh PyWallet created the file, I don't understand why it can't dump it out... it is very odd! Undecided Huh

Seems you may need to specify the --datadir or actually BE in the same directory as the wallet file? So maybe try:
Code:
pywallet.py --dumpwallet --wallet=C:\Users\Catherine\Downloads\pywallet\recovered_wallet_1511695449.dat --passphrase="YOUR-PASS-PHRASE" --datadir=C:\Users\Catherine\Downloads\pywallet


Anyway, hopefully that won't be necessary since you managed to get it running with the -usehd=0 command... fingers crossed the "rescan" will show *something* for all those keys/addresses. Wink
full member
Activity: 217
Merit: 109
November 26, 2017, 07:55:41 AM
#43
I ran another recover but added a couple of variations on the password. This is the result i got but i have a feeling i still won't be able to run the dat file in core, or dump it like before. Notice that as it ran the recovery every one of the keys was shown on screen, but i can't scroll back to top of screen to look at them all. I tried to dump the wallet with the new python and packages installed, but it gave the same result as before. I will try to dump this result later sometime, please see screenshots below for new recovery results. Thanks. Smiley











Got recovered wallet to run with "If that doesn't work... try starting Bitcoin Core with -usehd=0 command" but i'm thinking i will have to do a rescan, how would i add that command on to core startup. Thanks. ps no rush i know your busy. Smiley (edit again!) i added rescan option and waiting for it to finish.
HCP
legendary
Activity: 2086
Merit: 4314
November 25, 2017, 09:35:55 PM
#42
No... that just means you failed to give it a mandatory option like --wallet or --datadir or --dumpwallet etc Wink

Mine does the same thing when I just type "pywallet.py" with nothing else

If you type:
Code:
pywallet.py --version
or
Code:
pywallet.py --help

You'll notice it doesn't give you that message Wink

I'm fairly sure that bsddb is included with Python,  installed by the other components or isn't strictly required. I don't remember ever installing it separately... only the default Python 2.7... and then used the install.bat in the pywallet directory after I extracted the files.

Unless you specifically see an error message that says something like "no module named: bsddb" then I don't think it is an issue. Just try running the recovery and see what output you get.
full member
Activity: 217
Merit: 109
November 25, 2017, 08:20:37 PM
#41
I think everything is installed correctly except one component which i believe to be bsddb which is mentioned on the pywallet thread as being required. At the start of my pywallet it says a mandatory component is missing so i'm thinking it is this. Thanks again.





HCP
legendary
Activity: 2086
Merit: 4314
November 25, 2017, 05:29:17 PM
#40
Slow but steady progress... hopefully this time, the recover process will actually be able to decrypt the keys it finds in the wallet file... so that the recovered_wallet.dat is able to be dumped properly Wink

Pages:
Jump to: