Help needed for recovering my old wallet.dat file using pywallet

8 replies 239 views
mr_matrixNewbie
Posts: 14 · Reputation: 24
#1Jul 5, 2018, 12:16 AM
Just found an old wallet.dat from 2014 on an old drive where I mined with Bfgminer. Tried to run this command: root# python3.13 pywallet.py dumpwallet wallet=wallet.dat And I got this error message: UserWarning: Python 3 support is still experimental, you may encounter bugs... Abort trap: 6 Anyone know how to fix this? Thanks!
4 Reply Quote Share
whale420Senior Member
Posts: 727 · Reputation: 853
#2Jul 5, 2018, 04:25 AM
Can you share where you got that pywallet.py file? The error looks like it’s a compatibility issue. Seems like pywallet is more suited for Python 2.7. You should check out the version by jackjack-jj, it might work better: - https://github.com/jackjack-jj/pywallet Just gotta downgrade your Python to 2.7 and follow the setup.
0 Reply Quote Share
chris2016Member
Posts: 70 · Reputation: 61
#3Jul 5, 2018, 10:22 AM
I actually have some old Bitcoin Core versions in a Docker container. If you can access a Linux system, give it a try with the version around when your wallet was created. Just run it offline and see if your wallet loads.
3 Reply Quote Share
mr_matrixNewbie
Posts: 14 · Reputation: 24
#4Jul 5, 2018, 03:09 PM
Did all that! Downgraded to Python 2.7 and switched to that jj version of pywallet. But now I'm stuck with new errors: root# python2.7 pywallet.py dumpwallet wallet=wallet.dat WARNING: pycrypto or libssl not found... Traceback (most recent call last): File "pywallet.py", line 4139, in <module> db_env = create_env(db_dir) File "pywallet.py", line 1489, in create_env r = db_env.open(db_dir,... Any ideas?
3 Reply Quote Share
whale420Senior Member
Posts: 727 · Reputation: 853
#5Jul 5, 2018, 06:01 PM
Looks like you’re missing some dependencies. You gotta install those. Are you sure you got everything from the link I sent? If you’re on MacOS, installing MacPorts should help. Then run this command to install the missing libraries.
0 Reply Quote Share
0xChadNewbie
Posts: 513 · Reputation: 3
#6Jul 5, 2018, 08:48 PM
Pretty clear: pywallet can't create the database recovery environment in /usr/local/bin because it can’t find that directory. The rest of the errors are optional. If the directory is missing, create it with mkdir and set permissions properly.
2 Reply Quote Share
mr_matrixNewbie
Posts: 14 · Reputation: 24
#7Jul 6, 2018, 12:21 AM
Thanks for your help! So I installed MacPorts and the XCode dev tools, but now when I try to run "port" I get: root# port -sh: port: command not found Where's it installed? I can’t seem to find it anywhere on my system. Also, I can’t run the command for XCode tools: root# xcode-select install Appreciate any assistance here!
3 Reply Quote Share
Posts: 185 · Reputation: 37
#8Jul 6, 2018, 06:23 AM
You found an old wallet.dat, but why mess with pywallet? If it’s intact, just open it with Bitcoin Core. Older versions should work too.
1 Reply Quote Share
whale420Senior Member
Posts: 727 · Reputation: 853
#9Jul 6, 2018, 07:45 AM
Honestly, those errors are a bit above my head. Most of my suggestions came from GitHub. If pywallet isn’t working for you, maybe try on a different device. Got a Windows PC or something? Or maybe use a Windows emulator on your Mac just for this.
5 Reply Quote Share

Related topics