Pages:
Author

Topic: How to import electrum.dat file (created with 1.8.1) in Electrum 1.9 ? (Read 7243 times)

sr. member
Activity: 293
Merit: 250
is there any way to sync wallet in our computer faster, because the previously wallet full synchronization has been re-installed?
hero member
Activity: 1241
Merit: 789
I did and it finally worked!
Thank you very much!
legendary
Activity: 3612
Merit: 1564
hero member
Activity: 1241
Merit: 789
Ehm... where to put it to?
legendary
Activity: 3612
Merit: 1564
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://bitcointalksearch.org/topic/import-bitcoin-qt-wallet-260621

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
hero member
Activity: 1241
Merit: 789
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://bitcointalksearch.org/topic/import-bitcoin-qt-wallet-260621
legendary
Activity: 3612
Merit: 1564
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.
hero member
Activity: 1241
Merit: 789
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?
legendary
Activity: 3612
Merit: 1564
Ok then. This is beyond me. Sorry.
hero member
Activity: 1241
Merit: 789
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
    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.
legendary
Activity: 3612
Merit: 1564
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).

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.
hero member
Activity: 1241
Merit: 789
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.
hero member
Activity: 784
Merit: 501
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).

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.
hero member
Activity: 1241
Merit: 789
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).

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!
legendary
Activity: 3612
Merit: 1564
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.
hero member
Activity: 715
Merit: 500
Bitcoin Venezuela
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)
hero member
Activity: 1241
Merit: 789
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.
hero member
Activity: 715
Merit: 500
Bitcoin Venezuela
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
hero member
Activity: 1241
Merit: 789
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
legendary
Activity: 3612
Merit: 1564
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.
Pages:
Jump to: