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!
Help needed for recovering my old wallet.dat file using pywallet
8 replies 239 views
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.
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.
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?
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.
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.
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!
gwei_blockNewbie
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.
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.
Related topics
- Need help migrating my old wallet.dat to the latest version 4
- Wallet Issues After Editing.dat File, Need Help! 19
- Need help recovering my lost wallet file $7500 reward 24
- Need Help Cracking My Bitcoin Wallet Password 19
- Need Help! My Electrum Wallet Won't Sync 6
- HD Wallet vs Descriptor Wallet: What's the Deal? 3