Pages:
Author

Topic: Found multiple old wallets - how to open? (Read 296 times)

hero member
Activity: 777
Merit: 500
September 15, 2018, 02:53:26 PM
#22
I want to extract the private keys from some old btc wallets. When starting pywallet I get "Warning:root:pycrypto or libssl not found, decryption may be slow".

This warning can be safely ignored.



Then when I run the command to dump private keys I get the error "DB_CREATE|DB_INIT_LOCK|DB_INIT_LOG|DB_INIT_MPOOL|DB_INIT_TXN|DB_THREAD|DB_RECOVER)) bsddb.db.DBNoSuchFileError: (2, 'No such file or directory -- C:\Users\Ibrahim\Appdata\Roaming\Bitcoin\__db.001"

What (exact) command are you trying to execute ?
Also, did you make sure to have a few backups of your wallet files available ? Pywallet can mess up those files pretty heavily, making them unreadable.

I am running this command which gives me the error stated in my other post:

pywallet.py --dumpwallet --wallet=C:\Users\xxxxxxx\wallet.dat --passphrase="xxx" > C:\Users\xxxxx\walletDump.txt

legendary
Activity: 1624
Merit: 2481
September 15, 2018, 03:27:32 AM
#21
I want to extract the private keys from some old btc wallets. When starting pywallet I get "Warning:root:pycrypto or libssl not found, decryption may be slow".

This warning can be safely ignored.



Then when I run the command to dump private keys I get the error "DB_CREATE|DB_INIT_LOCK|DB_INIT_LOG|DB_INIT_MPOOL|DB_INIT_TXN|DB_THREAD|DB_RECOVER)) bsddb.db.DBNoSuchFileError: (2, 'No such file or directory -- C:\Users\Ibrahim\Appdata\Roaming\Bitcoin\__db.001"

What (exact) command are you trying to execute ?
Also, did you make sure to have a few backups of your wallet files available ? Pywallet can mess up those files pretty heavily, making them unreadable.
hero member
Activity: 777
Merit: 500
September 14, 2018, 12:41:49 PM
#20
It's probably easier just to update python?

Pywallet does not run on python3. You need python 2.x to run pywallet.



I'm now getting an error "No such file or directory C:\Users\xxx\Appdata\Roaming\Bitcoin\__db.001" - do I need to install bitcoin-qt?

What are you trying to achieve with pywallet ?
If you want to use it regularly as a wallet (not advised) you do need core + blockchain synced.

But if you only want to dump your private keys, it is not required.

How (with what flags) are you starting pywallet ?
I want to extract the private keys from some old btc wallets. When starting pywallet I get "Warning:root:pycrypto or libssl not found, decryption may be slow".

Then when I run the command to dump private keys I get the error "DB_CREATE|DB_INIT_LOCK|DB_INIT_LOG|DB_INIT_MPOOL|DB_INIT_TXN|DB_THREAD|DB_RECOVER)) bsddb.db.DBNoSuchFileError: (2, 'No such file or directory -- C:\Users\Ibrahim\Appdata\Roaming\Bitcoin\__db.001"
legendary
Activity: 1624
Merit: 2481
September 14, 2018, 12:32:14 PM
#19
It's probably easier just to update python?

Pywallet does not run on python3. You need python 2.x to run pywallet.



I'm now getting an error "No such file or directory C:\Users\xxx\Appdata\Roaming\Bitcoin\__db.001" - do I need to install bitcoin-qt?

What are you trying to achieve with pywallet ?
If you want to use it regularly as a wallet (not advised) you do need core + blockchain synced.

But if you only want to dump your private keys, it is not required.

How (with what flags) are you starting pywallet ?
hero member
Activity: 777
Merit: 500
September 14, 2018, 12:22:36 PM
#18
I don’t think python 2.7 comes with pip. And you can’t install twisted for newer versions of python Sad idk what to do then?

Pip is by default included since python 2.7.9+.
On earlier versions you have to install it with apt-get install python-pip in linux and through running get-pip.py on windows.

Regarding your problem installing pip:
You also need OpenSSL installed on your system. Download and install it and check the OpenSSL version used by python via:
Code:
import ssl
print(ssl.OPENSSL_VERSION)

inside the python interpreter. What is the output ?

It's probably easier just to update python?
I'm now getting an error "No such file or directory C:\Users\xxx\Appdata\Roaming\Bitcoin\__db.001" - do I need to install bitcoin-qt?
hero member
Activity: 777
Merit: 500
September 14, 2018, 12:14:49 PM
#17
I don’t think python 2.7 comes with pip. And you can’t install twisted for newer versions of python Sad idk what to do then?

Pip is by default included since python 2.7.9+.
On earlier versions you have to install it with apt-get install python-pip in linux and through running get-pip.py on windows.

Regarding your problem installing pip:
You also need OpenSSL installed on your system. Download and install it and check the OpenSSL version used by python via:
Code:
import ssl
print(ssl.OPENSSL_VERSION)

inside the python interpreter. What is the output ?

It's probably easier just to update python?
Look at my new post  Smiley
copper member
Activity: 2856
Merit: 3071
https://bit.ly/387FXHi lightning theory
September 14, 2018, 12:13:47 PM
#16
I don’t think python 2.7 comes with pip. And you can’t install twisted for newer versions of python Sad idk what to do then?

Pip is by default included since python 2.7.9+.
On earlier versions you have to install it with apt-get install python-pip in linux and through running get-pip.py on windows.

Regarding your problem installing pip:
You also need OpenSSL installed on your system. Download and install it and check the OpenSSL version used by python via:
Code:
import ssl
print(ssl.OPENSSL_VERSION)

inside the python interpreter. What is the output ?

It's probably easier just to update python?
hero member
Activity: 777
Merit: 500
September 14, 2018, 12:12:30 PM
#15

 I meant other coins, forked off of bitcoin core, like LTC, Dash, etc

And I answered, yes. Depending on when you got the coins...
Could you shed some light pls? See my post above  Smiley

Python comes with pip automatically?

Can you not do:
Code:
python -m pip install Zope.Interface.whl
With Zope.Interface.whl being in the python folder.

I don’t think python 2.7 comes with pip. And you can’t install twisted for newer versions of python Sad idk what to do then?

Pip is by default included since python 2.7.9+.
On earlier versions you have to install it with apt-get install python-pip in linux and through running get-pip.py on windows.

Regarding your problem installing pip:
You also need OpenSSL installed on your system. Download and install it and check the OpenSSL version used by python via:
Code:
import ssl
print(ssl.OPENSSL_VERSION)

inside the python interpreter. What is the output ?

I have managed to install Python 2.7.15 (with pip included )and installed Twisted for python 2.7 by editing the registry and forcing Twisted to install - I will now try and extract private keys
legendary
Activity: 1624
Merit: 2481
September 14, 2018, 12:00:47 PM
#14
I don’t think python 2.7 comes with pip. And you can’t install twisted for newer versions of python Sad idk what to do then?

Pip is by default included since python 2.7.9+.
On earlier versions you have to install it with apt-get install python-pip in linux and through running get-pip.py on windows.

Regarding your problem installing pip:
You also need OpenSSL installed on your system. Download and install it and check the OpenSSL version used by python via:
Code:
import ssl
print(ssl.OPENSSL_VERSION)

inside the python interpreter. What is the output ?
hero member
Activity: 777
Merit: 500
September 14, 2018, 11:51:36 AM
#13

 I meant other coins, forked off of bitcoin core, like LTC, Dash, etc

And I answered, yes. Depending on when you got the coins...
Could you shed some light pls? See my post above  Smiley

Python comes with pip automatically?

Can you not do:
Code:
python -m pip install Zope.Interface.whl
With Zope.Interface.whl being in the python folder.
I don’t think python 2.7 comes with pip. And you can’t install twisted for newer versions of python Sad idk what to do then?
copper member
Activity: 2856
Merit: 3071
https://bit.ly/387FXHi lightning theory
September 14, 2018, 10:11:55 AM
#12

 I meant other coins, forked off of bitcoin core, like LTC, Dash, etc

And I answered, yes. Depending on when you got the coins...
Could you shed some light pls? See my post above  Smiley

Python comes with pip automatically?

Can you not do:
Code:
python -m pip install Zope.Interface.whl
With Zope.Interface.whl being in the python folder.
hero member
Activity: 777
Merit: 500
September 14, 2018, 09:47:55 AM
#11

 I meant other coins, forked off of bitcoin core, like LTC, Dash, etc

And I answered, yes. Depending on when you got the coins...
Could you shed some light pls? See my post above  Smiley
hero member
Activity: 777
Merit: 500
September 14, 2018, 09:05:17 AM
#10
Do as Thirdspace suggests and take the keys (save them in a file somewhere or something) and then import them into electrum while still offline and then, once deleting the file (text file) with the keys in them and setting a password on your electrum wallet, reconnect your internet...

There is no advantage in keeping your PC offline while importing the private keys into electrum, even with a plain text file of your private keys.
Either your PC is infected (which will compromise your private keys once they are accessabe + transfer them once internet is available) or it is clean.

Keeping your every-day-pc offline for a few minutes doesn't change anything. To properly import them offline, you'll need a linux live OS which will wipe anything from memory afterwards.
But since OP is using a desktop wallet anyway, this doesn't matter since he PC has to be clean anyway.



I am also getting the error:
"File "", line 1 Syntax error invalid syntax

Can someone help me with regards to installing pywallet.py??

That's not an installation issue.
You are trying to execute it the false way. Can you post the complete command you are entering ?

It seems like you are running the whole file within the python interpreter.
You have to run it from outside using:
Code:
python yourfile.py -argument1 -argument2

in the command line.
I opened cmd and typed in python get-pip.py and it gives me the same error "File "", line 1 Syntax error invalid syntax. I downloaded 'get-pip.py' and placed it into C:\python27

C:\python27\   is already added to my PATH in environment variables for PC system settings. I need pip to install Zope.Interface wheel (.whl) file.

I just want to get pywallet working so I can extract the private keys of multiple wallets to then import into electrum and not wait 3hrs+ to scan every wallet.dat I found.

Update: I've managed to install python again on my laptop but when I execute 'python get-pip.py' I get the following errors?:
copper member
Activity: 2856
Merit: 3071
https://bit.ly/387FXHi lightning theory
September 14, 2018, 08:38:57 AM
#9

 I meant other coins, forked off of bitcoin core, like LTC, Dash, etc

And I answered, yes. Depending on when you got the coins...
newbie
Activity: 20
Merit: 0
September 14, 2018, 08:36:51 AM
#8

 I meant other coins, forked off of bitcoin core, like LTC, Dash, etc
hero member
Activity: 777
Merit: 500
September 14, 2018, 08:36:09 AM
#7
So I found a few old wallets from 2013. I can't wait for bitcoin-qt to rescan every time I replace the wallet.dat to check the balance.
are you using new install, latest bitcoin core version, to check them out?
do you mean redownloading the full blockchain? because rescan usually doesn't take much time
if you just need to dump private keys, turn off the sync or your internet connection
then just use dumpwallet or dumpprivkey commands on console
I'm using latest bitcoin core. And I can't use dumpprivkey on console because I don't know my wallet address!
copper member
Activity: 2856
Merit: 3071
https://bit.ly/387FXHi lightning theory
September 14, 2018, 05:48:49 AM
#6
I had no idea this was possible. Thank for the info gents. I suspect this will also be valid for all bitcoin forks that use QT?

Yes it will. I wouldn't do that until you get the others out,
http://www.findmycoins.ninja/ You can import your addresses there and it'll tell you what forks you have.
newbie
Activity: 20
Merit: 0
September 14, 2018, 05:42:30 AM
#5
 I had no idea this was possible. Thank for the info gents. I suspect this will also be valid for all bitcoin forks that use QT?
legendary
Activity: 1624
Merit: 2481
September 14, 2018, 04:44:02 AM
#4
Do as Thirdspace suggests and take the keys (save them in a file somewhere or something) and then import them into electrum while still offline and then, once deleting the file (text file) with the keys in them and setting a password on your electrum wallet, reconnect your internet...

There is no advantage in keeping your PC offline while importing the private keys into electrum, even with a plain text file of your private keys.
Either your PC is infected (which will compromise your private keys once they are accessabe + transfer them once internet is available) or it is clean.

Keeping your every-day-pc offline for a few minutes doesn't change anything. To properly import them offline, you'll need a linux live OS which will wipe anything from memory afterwards.
But since OP is using a desktop wallet anyway, this doesn't matter since he PC has to be clean anyway.



I am also getting the error:
"File "", line 1 Syntax error invalid syntax

Can someone help me with regards to installing pywallet.py??

That's not an installation issue.
You are trying to execute it the false way. Can you post the complete command you are entering ?

It seems like you are running the whole file within the python interpreter.
You have to run it from outside using:
Code:
python yourfile.py -argument1 -argument2

in the command line.
copper member
Activity: 2856
Merit: 3071
https://bit.ly/387FXHi lightning theory
September 13, 2018, 07:04:08 PM
#3
Do as Thirdspace suggests and take the keys (save them in a file somewhere or something) and then import them into electrum while still offline and then, once deleting the file (text file) with the keys in them and setting a password on your electrum wallet, reconnect your internet...

The sync should take a maximum of a few minutes...
Pages:
Jump to: