-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ValueError: too many values to unpack (expected 2) #6349
Comments
The raising line: electrum/electrum/wallet_db.py Line 529 in 9b3f165
Not sure how there could be more than two items in that tuple... Also, this test is passing:
|
Experiencing this error on upgrade with an old wallet. Maybe this helps:
|
@kevinbaker do you have any information about using approx what version or when the wallet was created, and approx which versions of Electrum had opened the wallet? It would also be good to know what 'seed_version' is in the wallet file -- i.e. what storage version are you trying to upgrade from. |
Ah, unfortunately, I'm not quite sure, but it would have been a version from around Jul-Aug 2017 I think, as some of the other timestamps in the .electrum directory were from around then. The seed_version states |
Good morning @ecdsa, I just received another crash report related to this issue. The crash occured on Electrum 4.0.9. Could you please check if this issue really is resolved? Here is the traceback that I just collected: File "electrum/gui/qt/__init__.py", line 245, in wrapper
File "electrum/gui/qt/__init__.py", line 269, in start_new_window
File "electrum/gui/qt/__init__.py", line 314, in _start_wizard_to_select_or_create_wallet
File "electrum/wallet_db.py", line 72, in __init__
File "electrum/wallet_db.py", line 105, in load_data
File "electrum/util.py", line 408, in <lambda>
File "electrum/util.py", line 404, in do_profile
File "electrum/wallet_db.py", line 174, in upgrade
File "electrum/wallet_db.py", line 540, in _convert_version_24
ValueError: not enough values to unpack (expected 3, got 1) ~ With robotic wishes |
I still don't understand what is going on there. |
Ahhh ok I can reproduce. Steps:
|
is there a way to fix broken wallet file created with 2.9.3? |
@vcoolish sure, you can always restore from seed |
Good evening @ecdsa, I just received another crash report related to this issue. The crash occured on Electrum 4.1.0. Could you please check if this issue really is resolved? Here is the traceback that I just collected: File "electrum\gui\qt\__init__.py", line 245, in wrapper
File "electrum\gui\qt\__init__.py", line 269, in start_new_window
File "electrum\gui\qt\__init__.py", line 314, in _start_wizard_to_select_or_create_wallet
File "electrum\wallet_db.py", line 73, in __init__
File "electrum\wallet_db.py", line 106, in load_data
File "electrum\util.py", line 412, in <lambda>
File "electrum\util.py", line 408, in do_profile
File "electrum\wallet_db.py", line 175, in upgrade
File "electrum\wallet_db.py", line 539, in _convert_version_24
ValueError: too many values to unpack (expected 2) ~ With robotic wishes |
I should have reopened this before. |
Maybe... I think the safest option would be to somehow make the upgraded wallet files unopenable to pre-3.0 versions. |
Good afternoon @ecdsa, I just received another crash report related to this issue. The crash occured on Electrum 4.1.2. Could you please check if this issue really is resolved? Here is the traceback that I just collected: File "electrum\gui\qt\__init__.py", line 291, in wrapper
File "electrum\gui\qt\__init__.py", line 316, in start_new_window
File "electrum\gui\qt\__init__.py", line 361, in _start_wizard_to_select_or_create_wallet
File "electrum\wallet_db.py", line 73, in __init__
File "electrum\wallet_db.py", line 106, in load_data
File "electrum\util.py", line 412, in <lambda>
File "electrum\util.py", line 408, in do_profile
File "electrum\wallet_db.py", line 175, in upgrade
File "electrum\wallet_db.py", line 548, in _convert_version_24
ValueError: not enough values to unpack (expected 3, got 1) ~ With robotic wishes |
Hi, I just ran into this same issue. I accidentally ran Electrum version 2.8.2 and opened a wallet with btc in it as I was deep diving my computer in search of old crypto. When I try to open my wallet in any electrum version, Electrum will instantly close without an error message I managed to obtain an error message by using the restore wallet feature and it managed to spit one out
Is there any hope with the idea of un-corrupting the wallet, or whatever is happening here? I'm very upset with myself for letting this happen |
I fixed this problem by opening the wallet file in a text editor and changing the line: Hope this helps someone. |
Good afternoon @ecdsa, I just received another crash report related to this issue. The crash occured on Electrum 4.1.4. Could you please check if this issue really is resolved? Here is the traceback that I just collected: File "electrum/gui/qt/__init__.py", line 291, in wrapper
File "electrum/gui/qt/__init__.py", line 316, in start_new_window
File "electrum/gui/qt/__init__.py", line 361, in _start_wizard_to_select_or_create_wallet
File "electrum/wallet_db.py", line 73, in __init__
File "electrum/wallet_db.py", line 106, in load_data
File "electrum/util.py", line 412, in <lambda>
File "electrum/util.py", line 408, in do_profile
File "electrum/wallet_db.py", line 175, in upgrade
File "electrum/wallet_db.py", line 549, in _convert_version_24
ValueError: not enough values to unpack (expected 3, got 2) ~ With robotic wishes |
Good morning @ecdsa, I just received another crash report related to this issue. The crash occured on Electrum 4.1.5. Could you please check if this issue really is resolved? Here is the traceback that I just collected: Traceback (most recent call last):
File "electrum\gui\qt\__init__.py", line 418, in main
File "electrum\gui\qt\__init__.py", line 292, in wrapper
File "electrum\gui\qt\__init__.py", line 317, in start_new_window
File "electrum\gui\qt\__init__.py", line 362, in _start_wizard_to_select_or_create_wallet
File "electrum\wallet_db.py", line 73, in __init__
File "electrum\wallet_db.py", line 106, in load_data
File "electrum\util.py", line 420, in <lambda>
File "electrum\util.py", line 416, in do_profile
File "electrum\wallet_db.py", line 175, in upgrade
File "electrum\wallet_db.py", line 540, in _convert_version_24
ValueError: too many values to unpack (expected 2)
ValueError: too many values to unpack (expected 2) ~ With robotic wishes |
Good evening @ecdsa, I just received another crash report related to this issue. The crash occured on Electrum 4.1.5-117-g0df05dd91. Could you please check if this issue really is resolved? Here is the traceback that I just collected: Traceback (most recent call last):
File "/home/damon/Desktop/electrum/electrum/gui/qt/__init__.py", line 419, in main
if not self.start_new_window(path, self.config.get('url'), app_is_starting=True):
File "/home/damon/Desktop/electrum/electrum/gui/qt/__init__.py", line 293, in wrapper
return func(self, *args, **kwargs)
File "/home/damon/Desktop/electrum/electrum/gui/qt/__init__.py", line 318, in start_new_window
wallet = self._start_wizard_to_select_or_create_wallet(path)
File "/home/damon/Desktop/electrum/electrum/gui/qt/__init__.py", line 363, in _start_wizard_to_select_or_create_wallet
db = WalletDB(storage.read(), manual_upgrades=False)
File "/home/damon/Desktop/electrum/electrum/wallet_db.py", line 73, in __init__
self.load_data(raw)
File "/home/damon/Desktop/electrum/electrum/wallet_db.py", line 106, in load_data
self.upgrade()
File "/home/damon/Desktop/electrum/electrum/util.py", line 440, in <lambda>
return lambda *args, **kw_args: do_profile(args, kw_args)
File "/home/damon/Desktop/electrum/electrum/util.py", line 436, in do_profile
o = func(*args, **kw_args)
File "/home/damon/Desktop/electrum/electrum/wallet_db.py", line 175, in upgrade
self._convert_version_24()
File "/home/damon/Desktop/electrum/electrum/wallet_db.py", line 551, in _convert_version_24
for n, v, cb in l:
ValueError: not enough values to unpack (expected 3, got 2)
ValueError: not enough values to unpack (expected 3, got 2) ~ With robotic wishes |
Crash Report
This crash report was reported through the automatic crash reporting system 🤖
Traceback
Reporter
This issue was reported by 301 user(s):
Additional Information
The text was updated successfully, but these errors were encountered: