0

So I found my old mining wallet from 2012 that I earned some 0.5BTC on, but I'm having trouble accessing the file. I've tried following the instructions here (opening an old wallet.dat), but I'm running into an error using the pywallet program. It throws

File "pywallet.py", line 852 _p = 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFC2FL ^ SyntaxError: invalid syntax

I've tried adding it into a new install of Bitcoin Core, but it appears as though I need to download the blockchain before it will scan my wallet as it isn't showing me any info about the wallet (like previous receiving address). Let me know if I can provide more information.

  • You're probably using Python 3: you need to use Python 2 in order to run pywallet – circulosmeos May 24 at 14:44
  • Thanks for the suggestion. I switched over to python 2.7, but was running into the same issues. Managed to clean up the syntax and install bsddb, but I'm running into further issues. Now it is throwing: File "pywallet.py", line 27, in <module> from bsddb3.db import * File "C:\Python27\lib\site-packages\bsddb3_init_.py", line 49, in <module> import _pybsddb ImportError: No module named _pybsddb – ClearHandle May 24 at 15:15
  • That one should be harmless: do you have any more error lines? – circulosmeos May 24 at 21:07
  • No. Might it have to do with the change I made on line 27? Before it was 'from bsddb.db import *', but I received an ImportError for no module named bsddb.db, so I changed it to 'from bsddb3.db import *' to match the installed library. – ClearHandle May 27 at 6:11
  • The code should handle that: What version are you using? Latest code for pywallet (github.com/jackjack-jj/pywallet/blob/master/pywallet.py) has that on line 20, not 27. Maybe you're using an older version? – circulosmeos May 30 at 0:39
0

While I did wait for the blockchain to download and to see if Bitcoin-Core could simply read its own file. The program failed to read in any of the info from my wallet.dat file, even after following the instructions in the post listed in my initial question. I ended up using walletool, which worked without a hitch. It gave me a list of every public and private key associated with the wallet. It has a script for checking your balance, but I was unable to get it to work reasonably quickly and ended up manually checking the balances of each address using bitref.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.