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 – 2019-05-24T14:44:35.923
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 – 2019-05-24T15:15:28.203
That one should be harmless: do you have any more error lines? – circulosmeos – 2019-05-24T21:07:32.233
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 – 2019-05-27T06:11:17.830
The code should handle that: What version are you using? Latest code for pywallet (https://github.com/jackjack-jj/pywallet/blob/master/pywallet.py) has that on line 20, not 27. Maybe you're using an older version?
– circulosmeos – 2019-05-30T00:39:20.750I ended up using another tool, thank you for your help and patience though. – ClearHandle – 2019-06-01T00:14:08.257