Bitcoin Forum
May 14, 2024, 10:49:10 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: 1 2 [All]
  Print  
Author Topic: How to import electrum.dat file (created with 1.8.1) in Electrum 1.9 ?  (Read 7236 times)
simpic (OP)
Hero Member
*****
Offline Offline

Activity: 1240
Merit: 789


View Profile
November 05, 2013, 12:03:39 PM
 #1

I noticed that Electrum 1.9 doesn't use anymore electrum.dat file to store own wallet.
Am i right?
So, if i want to restore my wallet keeping labels, how to import electrum.dat file in new release?

1715683750
Hero Member
*
Offline Offline

Posts: 1715683750

View Profile Personal Message (Offline)

Ignore
1715683750
Reply with quote  #2

1715683750
Report to moderator
1715683750
Hero Member
*
Offline Offline

Posts: 1715683750

View Profile Personal Message (Offline)

Ignore
1715683750
Reply with quote  #2

1715683750
Report to moderator
The network tries to produce one block per 10 minutes. It does this by automatically adjusting how difficult it is to produce blocks.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715683750
Hero Member
*
Offline Offline

Posts: 1715683750

View Profile Personal Message (Offline)

Ignore
1715683750
Reply with quote  #2

1715683750
Report to moderator
btcven
Hero Member
*****
Offline Offline

Activity: 715
Merit: 500


Bitcoin Venezuela


View Profile WWW
November 06, 2013, 12:20:23 AM
 #2

I noticed that Electrum 1.9 doesn't use anymore electrum.dat file to store own wallet.
Am i right?
So, if i want to restore my wallet keeping labels, how to import electrum.dat file in new release?

Always put some info about you Operating System and the binary you are using. I guess you are on Windows with Standalone/Portable?

I think that what you say is fixed and is waiting for a release. Could you explain it more clearly?

Admin: rdymac (PGP) | contacto@bitcoinvenezuela.com | @cafebitcoin | Electrum, lightweight bitcoin client
If I've been helpful tip me a coffee! Cheesy1rdymachKZpA9pTYHYHMYZjfjnoBW6B3k Bitrated user: rdymac.
simpic (OP)
Hero Member
*****
Offline Offline

Activity: 1240
Merit: 789


View Profile
November 06, 2013, 05:42:24 PM
 #3

I'm on Ubuntu-Gnome 13.10.

bizz
Hero Member
*****
Offline Offline

Activity: 492
Merit: 500


View Profile
November 07, 2013, 09:32:23 AM
 #4

Just installed new electrum and indeed there is no electrum.dat. Wallet file is now in wallets folder and called 'default_wallet'.

What to do if we want to update offline client? Someone said on reddit that seed can be restored only when online from this version  Huh


Ubuntu 13.10 here too but I don't think that matters for wallet questions.
btcven
Hero Member
*****
Offline Offline

Activity: 715
Merit: 500


Bitcoin Venezuela


View Profile WWW
November 07, 2013, 05:08:03 PM
 #5

Just installed new electrum and indeed there is no electrum.dat. Wallet file is now in wallets folder and called 'default_wallet'.

If you were updating it turns the old electrum.dat into a /wallets/default_wallet automatically.

What to do if we want to update offline client? Someone said on reddit that seed can be restored only when online from this version  Huh

This bug was fixed, check the 1.9.2 zip file for offline restore / update.

Ubuntu 13.10 here too but I don't think that matters for wallet questions.

The only problem encountered in Ubuntu 13.10 is in the installation process that needs to run this line for slowaes
Code:
$ sudo apt-get install python-slowaes

Admin: rdymac (PGP) | contacto@bitcoinvenezuela.com | @cafebitcoin | Electrum, lightweight bitcoin client
If I've been helpful tip me a coffee! Cheesy1rdymachKZpA9pTYHYHMYZjfjnoBW6B3k Bitrated user: rdymac.
simpic (OP)
Hero Member
*****
Offline Offline

Activity: 1240
Merit: 789


View Profile
November 08, 2013, 01:34:05 PM
 #6

What to do if we want to update offline client? Someone said on reddit that seed can be restored only when online from this version  Huh

This bug was fixed, check the 1.9.2 zip file for offline restore / update.

How to import old electrum.dat file via offline restore?
When i run new release of Electrum it asks for creating new wallet or restore it by seed or master key.

btcven
Hero Member
*****
Offline Offline

Activity: 715
Merit: 500


Bitcoin Venezuela


View Profile WWW
November 10, 2013, 10:08:27 AM
 #7

What to do if we want to update offline client? Someone said on reddit that seed can be restored only when online from this version  Huh

This bug was fixed, check the 1.9.2 zip file for offline restore / update.

How to import old electrum.dat file via offline restore?
When i run new release of Electrum it asks for creating new wallet or restore it by seed or master key.

If the electrum.dat file is in the user folder, when updating the client will turns it into the new wallet structure /wallets/default_wallet

Admin: rdymac (PGP) | contacto@bitcoinvenezuela.com | @cafebitcoin | Electrum, lightweight bitcoin client
If I've been helpful tip me a coffee! Cheesy1rdymachKZpA9pTYHYHMYZjfjnoBW6B3k Bitrated user: rdymac.
tinus42
Hero Member
*****
Offline Offline

Activity: 784
Merit: 501



View Profile
November 12, 2013, 02:31:48 PM
 #8

How do you do this for Windows? Huh

I tried updating with putting electrum.dat (which I kept on a memory stick) back in the Appsdata Roaming/Electrum folder but it Electrum won't start up when I put the electrum.dat there. I don't like programs that autisticly change file locations with new updates. It seems I can only reclaim my Bitcoins by finding the seed. If only I knew where I kept it. Seems I have lost my Bitcoins. Angry
btcven
Hero Member
*****
Offline Offline

Activity: 715
Merit: 500


Bitcoin Venezuela


View Profile WWW
November 12, 2013, 03:03:33 PM
 #9

How do you do this for Windows? Huh

I tried updating with putting electrum.dat (which I kept on a memory stick) back in the Appsdata Roaming/Electrum folder but it Electrum won't start up when I put the electrum.dat there. I don't like programs that autisticly change file locations with new updates. It seems I can only reclaim my Bitcoins by finding the seed. If only I knew where I kept it. Seems I have lost my Bitcoins. Angry

If you put your backup of the electrum.dat in the Electrum's user directory \Users\YourUserName\AppData\Roaming\Local\Electrum the latest version will turn it to the new format /wallets/default_wallet

Writing the seed and keeping it in a safe place is the first thing the client warns you to do after opening it.

If you still have your electrum.dat and you know the password it is encrypted with, you are safe to restore your wallet.

Admin: rdymac (PGP) | contacto@bitcoinvenezuela.com | @cafebitcoin | Electrum, lightweight bitcoin client
If I've been helpful tip me a coffee! Cheesy1rdymachKZpA9pTYHYHMYZjfjnoBW6B3k Bitrated user: rdymac.
btcven
Hero Member
*****
Offline Offline

Activity: 715
Merit: 500


Bitcoin Venezuela


View Profile WWW
November 12, 2013, 03:06:01 PM
 #10

@tinus42 you can open the wallet with File > Open in the menu options and then use File > Copy to make a local copy of it.

Admin: rdymac (PGP) | contacto@bitcoinvenezuela.com | @cafebitcoin | Electrum, lightweight bitcoin client
If I've been helpful tip me a coffee! Cheesy1rdymachKZpA9pTYHYHMYZjfjnoBW6B3k Bitrated user: rdymac.
tinus42
Hero Member
*****
Offline Offline

Activity: 784
Merit: 501



View Profile
November 12, 2013, 03:09:00 PM
 #11

How do you do this for Windows? Huh

I tried updating with putting electrum.dat (which I kept on a memory stick) back in the Appsdata Roaming/Electrum folder but it Electrum won't start up when I put the electrum.dat there. I don't like programs that autisticly change file locations with new updates. It seems I can only reclaim my Bitcoins by finding the seed. If only I knew where I kept it. Seems I have lost my Bitcoins. Angry

If you put your backup of the electrum.dat in the Electrum's user directory \Users\YourUserName\AppData\Roaming\Local\Electrum the latest version will turn it to the new format /wallets/default_wallet

Writing the seed and keeping it in a safe place is the first thing the client warns you to do after opening it.

If you still have your electrum.dat and you know the password it is encrypted with, you are safe to restore your wallet.

OK thanks, will try this! Can you recover the seed when you have access to your wallet? I did write it down but later mislaid the copy.
simpic (OP)
Hero Member
*****
Offline Offline

Activity: 1240
Merit: 789


View Profile
November 13, 2013, 06:40:37 PM
 #12

How to import old electrum.dat file via offline restore?
When i run new release of Electrum it asks for creating new wallet or restore it by seed or master key.

If the electrum.dat file is in the user folder, when updating the client will turns it into the new wallet structure /wallets/default_wallet

Do you mean /home/user folder or /home/user/.electrum folder?
Anyway i didn't update the client, now i just have an electrum.dat file and a fresh install on Electrum 1.9.2.

PS: I see now that they released 1.9.4... how to delete the previous version before install the new one?

Abdussamad
Legendary
*
Online Online

Activity: 3612
Merit: 1564



View Profile
November 13, 2013, 07:11:21 PM
Last edit: November 13, 2013, 08:06:55 PM by Abdussamad
 #13

OK thanks, will try this! Can you recover the seed when you have access to your wallet? I did write it down but later mislaid the copy.

Yes you can. There is an option in the menus. But you will need your password.

edit: it's under the wallet menu in 1.9.x.
simpic (OP)
Hero Member
*****
Offline Offline

Activity: 1240
Merit: 789


View Profile
November 15, 2013, 04:59:44 PM
 #14

If the electrum.dat file is in the user folder, when updating the client will turns it into the new wallet structure /wallets/default_wallet

Do you mean /home/user folder or /home/user/.electrum folder?
Anyway i didn't update the client, now i just have an electrum.dat file and a fresh install on Electrum 1.9.2.

PS: I see now that they released 1.9.4... how to delete the previous version before install the new one?

Help Smiley

btcven
Hero Member
*****
Offline Offline

Activity: 715
Merit: 500


Bitcoin Venezuela


View Profile WWW
November 15, 2013, 05:08:10 PM
 #15

If the electrum.dat file is in the user folder, when updating the client will turns it into the new wallet structure /wallets/default_wallet

Do you mean /home/user folder or /home/user/.electrum folder?
Anyway i didn't update the client, now i just have an electrum.dat file and a fresh install on Electrum 1.9.2.

PS: I see now that they released 1.9.4... how to delete the previous version before install the new one?

Help Smiley

You don't have to uninstall to update.

Your wallet file is located in the /wallets/ folder (the default file is called default_wallet):

On Windows

*Show hidden files
*Go to \Users\YourUserName\AppData\Roaming\Local\Electrum

On Mac
*Open Finder
*Go > Go to folder (shift+cmd+G) and type ~/.electrum

On Linux
*Home Folder
*Go > Location and type ~/.electrum

Admin: rdymac (PGP) | contacto@bitcoinvenezuela.com | @cafebitcoin | Electrum, lightweight bitcoin client
If I've been helpful tip me a coffee! Cheesy1rdymachKZpA9pTYHYHMYZjfjnoBW6B3k Bitrated user: rdymac.
simpic (OP)
Hero Member
*****
Offline Offline

Activity: 1240
Merit: 789


View Profile
November 16, 2013, 01:12:55 AM
 #16

If the electrum.dat file is in the user folder, when updating the client will turns it into the new wallet structure /wallets/default_wallet

Do you mean /home/user folder or /home/user/.electrum folder?
Anyway i didn't update the client, now i just have an electrum.dat file and a fresh install on Electrum 1.9.2.

PS: I see now that they released 1.9.4... how to delete the previous version before install the new one?

Help Smiley

You don't have to uninstall to update.

Your wallet file is located in the /wallets/ folder (the default file is called default_wallet):

On Windows

*Show hidden files
*Go to \Users\YourUserName\AppData\Roaming\Local\Electrum

On Mac
*Open Finder
*Go > Go to folder (shift+cmd+G) and type ~/.electrum

On Linux
*Home Folder
*Go > Location and type ~/.electrum

I updated Electrum to version 1.9.4 with no problems, thank you.

But as i said before i have to restore an old wallet created with Electrum 1.8.1. This file i named "electrum.dat" and in the old versions it was in /.electrum folder.
How to restore it since now Electrum uses "default_wallet" file instead of "electrum.dat" and it stores wallet in "/.electrum/wallet" folder instead of "/.electrum"?

Thank you.

btcven
Hero Member
*****
Offline Offline

Activity: 715
Merit: 500


Bitcoin Venezuela


View Profile WWW
November 16, 2013, 08:48:44 AM
 #17

I updated Electrum to version 1.9.4 with no problems, thank you.

But as i said before i have to restore an old wallet created with Electrum 1.8.1. This file i named "electrum.dat" and in the old versions it was in /.electrum folder.
How to restore it since now Electrum uses "default_wallet" file instead of "electrum.dat" and it stores wallet in "/.electrum/wallet" folder instead of "/.electrum"?

Thank you.

Again, if you have an old install, Electrum will turn your old electrum.dat to the new structure /wallets/default_wallet

If you are making a new installation and want to bring your electrum.dat you can either put the electrum.dat in the ./electrum folder or restore from your seed (if you restore from seed won't have your labels unless you were using Label Sync)

Admin: rdymac (PGP) | contacto@bitcoinvenezuela.com | @cafebitcoin | Electrum, lightweight bitcoin client
If I've been helpful tip me a coffee! Cheesy1rdymachKZpA9pTYHYHMYZjfjnoBW6B3k Bitrated user: rdymac.
Abdussamad
Legendary
*
Online Online

Activity: 3612
Merit: 1564



View Profile
November 16, 2013, 10:09:51 AM
 #18

If you are making a new installation and want to bring your electrum.dat you can either put the electrum.dat in the ./electrum folder or restore from your seed (if you restore from seed won't have your labels unless you were using Label Sync)

No need to restore from the seed. He can open any electrum wallet file using either of these two methods:

- Run Electrum. Then choose File menu > open and select the file on your filesystem

- Use the -w command line switch - electrum -w /path/to/wallet/file.dat . This method is useful if you want to create a shortcut to your wallet file.
simpic (OP)
Hero Member
*****
Offline Offline

Activity: 1240
Merit: 789


View Profile
November 16, 2013, 05:51:53 PM
 #19

Again, if you have an old install, Electrum will turn your old electrum.dat to the new structure /wallets/default_wallet
Again, i don't have an old install, i have just the electrum.dat file (of an old install that was on my pc before formatting).

Quote
If you are making a new installation and want to bring your electrum.dat you can either put the electrum.dat in the ./electrum folder
Again, it doesn't work.

No need to restore from the seed. He can open any electrum wallet file using either of these two methods:

- Run Electrum. Then choose File menu > open and select the file on your filesystem
Again, how to do this if when i open Electrum for the first time i can't reach that menu?



Please read the previous posts, thank you!

tinus42
Hero Member
*****
Offline Offline

Activity: 784
Merit: 501



View Profile
November 16, 2013, 06:32:51 PM
 #20

Again, if you have an old install, Electrum will turn your old electrum.dat to the new structure /wallets/default_wallet
Again, i don't have an old install, i have just the electrum.dat file (of an old install that was on my pc before formatting).

Quote
If you are making a new installation and want to bring your electrum.dat you can either put the electrum.dat in the ./electrum folder
Again, it doesn't work.

No need to restore from the seed. He can open any electrum wallet file using either of these two methods:

- Run Electrum. Then choose File menu > open and select the file on your filesystem
Again, how to do this if when i open Electrum for the first time i can't reach that menu?



Please read the previous posts, thank you!

Can't you just generate a new wallet when installing and when you have the main screen open the file from the File Menu as described? Never tried this myself though.
simpic (OP)
Hero Member
*****
Offline Offline

Activity: 1240
Merit: 789


View Profile
November 16, 2013, 06:54:50 PM
 #21

Can't you just generate a new wallet when installing and when you have the main screen open the file from the File Menu as described? Never tried this myself though.

Nothing happens.

Abdussamad
Legendary
*
Online Online

Activity: 3612
Merit: 1564



View Profile
November 16, 2013, 07:18:06 PM
 #22

Again, if you have an old install, Electrum will turn your old electrum.dat to the new structure /wallets/default_wallet
Again, i don't have an old install, i have just the electrum.dat file (of an old install that was on my pc before formatting).

Quote
If you are making a new installation and want to bring your electrum.dat you can either put the electrum.dat in the ./electrum folder
Again, it doesn't work.

No need to restore from the seed. He can open any electrum wallet file using either of these two methods:

- Run Electrum. Then choose File menu > open and select the file on your filesystem
Again, how to do this if when i open Electrum for the first time i can't reach that menu?



Please read the previous posts, thank you!


Ok a few things to note:

1. On linux the electrum wallet folder begins with a period that is it is .electrum in your home directory. So make sure you put it in the correct folder.

2. To answer your question about the menu, just follow the prompts to create a new dummy wallet until you get to the display with the menu. Alternatively use the command line switch:

electrum -w /path/to/wallet.dat

But try 1 first.
simpic (OP)
Hero Member
*****
Offline Offline

Activity: 1240
Merit: 789


View Profile
November 16, 2013, 08:04:39 PM
 #23

Ok a few things to note:

1. On linux the electrum wallet folder begins with a period that is it is .electrum in your home directory. So make sure you put it in the correct folder.

2. To answer your question about the menu, just follow the prompts to create a new dummy wallet until you get to the display with the menu. Alternatively use the command line switch:

electrum -w /path/to/wallet.dat

But try 1 first.

1. I know it, i can see .electrum folder pressing CTRL+H, but after i copied electrum.dat file in it Electrum doesn't start, as another user here said some posts before. This is the error i get when i run electrum command:

Code:
Traceback (most recent call last):
  File "/usr/local/bin/electrum", line 165, in <module>
    gui.main(url)
  File "/usr/local/lib/python2.7/dist-packages/electrum_gui/qt/__init__.py", line 92, in main
    wallet = Wallet(storage)
  File "/usr/local/lib/python2.7/dist-packages/electrum/wallet_factory.py", line 11, in __new__
    return Wallet(config)
  File "/usr/local/lib/python2.7/dist-packages/electrum/wallet.py", line 173, in __init__
    self.fee                   = int(storage.get('fee_per_kb',20000))
TypeError: int() argument must be a string or a number, not 'NoneType'

2. Done and when i open electrum.dat with Open using the menu nothing happens, as i said before.
In addition if i use the command line (electrum -w /home/my_user/Desktop/electrum.dat) i get the same error posted above.

Abdussamad
Legendary
*
Online Online

Activity: 3612
Merit: 1564



View Profile
November 16, 2013, 08:19:44 PM
 #24

Ok then. This is beyond me. Sorry.
simpic (OP)
Hero Member
*****
Offline Offline

Activity: 1240
Merit: 789


View Profile
November 20, 2013, 09:00:32 AM
 #25

Ok then. This is beyond me. Sorry.

I opened an issue on Electrum site and they tell me that it should be fixed by this:
https://github.com/spesmilo/electrum/commit/6dc9bfbe07937fbbc198d07e26ca5a976173d4b4

What does it mean?

Abdussamad
Legendary
*
Online Online

Activity: 3612
Merit: 1564



View Profile
November 20, 2013, 11:47:59 AM
Last edit: November 20, 2013, 01:11:02 PM by Abdussamad
 #26

Ok then. This is beyond me. Sorry.

I opened an issue on Electrum site and they tell me that it should be fixed by this:
https://github.com/spesmilo/electrum/commit/6dc9bfbe07937fbbc198d07e26ca5a976173d4b4

What does it mean?

It looks like their function for getting wallet data was not returning the default value when appropriate. Now they've fixed that.

Edit: More to the point of what you were really asking, you may have to wait till the next stable release or you could ask them for help on how to install the current beta release which has that fix.
simpic (OP)
Hero Member
*****
Offline Offline

Activity: 1240
Merit: 789


View Profile
November 20, 2013, 02:40:05 PM
 #27

It is 4 months that i'm trying to use Electrum but i experienced these problems.
This is the second bug that i discovered and due these bugs i can't use Electrum propertly.
Every time i have to wait for a new release Cry

Here is the other bug: https://bitcointalk.org/index.php?topic=260621.0

Abdussamad
Legendary
*
Online Online

Activity: 3612
Merit: 1564



View Profile
November 20, 2013, 02:59:24 PM
 #28

It is 4 months that i'm trying to use Electrum but i experienced these problems.
This is the second bug that i discovered and due these bugs i can't use Electrum propertly.
Every time i have to wait for a new release Cry

Here is the other bug: https://bitcointalk.org/index.php?topic=260621.0

Why don't you find the wallet.py file on your system and replace it with the new version:

https://github.com/spesmilo/electrum/raw/6dc9bfbe07937fbbc198d07e26ca5a976173d4b4/lib/wallet.py

Alternatively you can edit it to make those changes. Just remove the line in red and replace it with the lines in green.

https://github.com/spesmilo/electrum/commit/6dc9bfbe07937fbbc198d07e26ca5a976173d4b4
simpic (OP)
Hero Member
*****
Offline Offline

Activity: 1240
Merit: 789


View Profile
November 20, 2013, 09:00:59 PM
 #29

Ehm... where to put it to?

Abdussamad
Legendary
*
Online Online

Activity: 3612
Merit: 1564



View Profile
November 20, 2013, 09:03:00 PM
 #30

Ehm... where to put it to?
Why don't you find the wallet.py file on your system
simpic (OP)
Hero Member
*****
Offline Offline

Activity: 1240
Merit: 789


View Profile
November 20, 2013, 09:28:55 PM
 #31

I did and it finally worked!
Thank you very much!

Radent
Sr. Member
****
Offline Offline

Activity: 293
Merit: 250


View Profile
August 12, 2014, 05:45:15 AM
 #32

is there any way to sync wallet in our computer faster, because the previously wallet full synchronization has been re-installed?
Pages: 1 2 [All]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!