TypeError: list indices must be integers or slices, not str
Open
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 8.6k
- Forks
- 3.5k
- Avg merge
- 2d 8h
- Merged PRs (30d)
- 61
Description
Crash Report
This crash report was reported through the automatic crash reporting system 🤖
Traceback
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 372, in _start_wizard_to_select_or_create_wallet
File "electrum\wallet.py", line 3183, in __new__
File "electrum\wallet.py", line 3027, in __init__
File "electrum\wallet.py", line 2820, in __init__
File "electrum\wallet.py", line 286, in __init__
File "electrum\wallet_db.py", line 1246, in load_addresses
TypeError: list indices must be integers or slices, not str
Reporter
This issue was reported by 4 user(s):
| Electrum Version | Python Version | Operating System | Wallet Type | Locale | Stack |
|---|---|---|---|---|---|
| 4.1.2 | 3.8.8 (tags/v3.8.8:024d805, Feb 19 2021, 13:08:11) [MSC v.1928 32 bit (Intel)] | Windows-10-10.0.19041-SP0 | standard | en_US | ℹ |
| 4.0.9 | 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:01:55) [MSC v.1900 32 bit (Intel)] | Windows-10-10.0.19041-SP0 | standard | de_DE | ℹ |
| 4.1.5 | 3.7.10 (default, Jun 28 2018, 19:01:02) [GCC 5.4.0 20160609] | Linux-5.4.0-97-generic-x86_64-with-debian-bullseye-sid | standard | en_CA | ℹ |
| 4.0.9 | 3.7.9 (default, Sep 11 2020, 17:18:37) [Clang 11.0.0 (clang-1100.0.33.17)] | Darwin-18.7.0-x86_64-i386-64bit | imported | ? | ℹ |
Additional Information
Importing of an old electrum.dat file.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with electrum/wallet_db.py at load_addresses, then follow the traceback through electrum/wallet.py and the Qt wallet-creation path. Reproduce the crash by importing an old electrum.dat file, and verify that the wallet loads without the reported TypeError for the affected wallet types.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- databases
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100