I somehow got a corrupted electrum.dat file today. I restored from a backup of two days ago and started electrum from cmd line. It gave me this error even though this file worked fine a couple days ago, and electrum worked fine this morning (hours ago).
I'm using kind of an old version, 1.0 I believe but with some of my patches. Is there some reason that today the wallet would get corrupted by a new server version or something?
Apparently I'm using electrum.bytesized-hosting.com but when I ran just now it would not sync and I tried to change servers, and restart. That's when it would not start any more. After restoring the screen opens and says "synchronizing" but this traceback is spit out in terminal.
electrum
Install zbar package to enable QR scans
No servers loaded yet.
Connected to electrum.bytesized-hosting.com:50001
Servers loaded.
Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 551, in __bootstrap_inner
self.run()
File "/usr/local/lib/python2.7/dist-packages/electrum/interface.py", line 456, in run
self.handle_response(response)
File "/usr/local/lib/python2.7/dist-packages/electrum/interface.py", line 406, in handle_response
self.wallet.receive_history_callback(addr, result)
File "/usr/local/lib/python2.7/dist-packages/electrum/wallet.py", line 886, in receive_history_callback
self.update_tx_history()
File "/usr/local/lib/python2.7/dist-packages/electrum/wallet.py", line 906, in update_tx_history
line['value'] += tx['value']
KeyError: 'value'
I then manually edited the electrum.dat to remove reference to the server - now blank. When started again I get simply:
electrum
Traceback (most recent call last):
File "/usr/local/bin/electrum", line 127, in
wallet.read()
File "/usr/local/lib/python2.7/dist-packages/electrum/wallet.py", line 736, in read
self.update_tx_history()
File "/usr/local/lib/python2.7/dist-packages/electrum/wallet.py", line 906, in update_tx_history
line['value'] += tx['value']
KeyError: 'value'
This is all very odd. Is it possible some ubuntu update came thru today that is hosing something in python? Just sudddenly cannot get into my wallet.