TypeError: sequence item 0: expected str instance, NoneType found
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
Traceback (most recent call last):
File "electrum\gui\qt\my_treeview.py", line 458, in showEvent
File "electrum\gui\qt\history_list.py", line 523, in update
File "electrum\util.py", line 469, in do_profile
File "electrum\gui\qt\history_list.py", line 280, in refresh
File "electrum\util.py", line 469, in do_profile
File "electrum\wallet.py", line 1240, in get_full_history
File "electrum\wallet.py", line 1044, in get_onchain_history
File "electrum\util.py", line 1339, in func_wrapper
File "electrum\address_synchronizer.py", line 103, in func_wrapper
File "electrum\address_synchronizer.py", line 518, in f
File "electrum\address_synchronizer.py", line 555, in get_history
File "electrum\util.py", line 1339, in func_wrapper
File "electrum\address_synchronizer.py", line 103, in func_wrapper
File "electrum\address_synchronizer.py", line 518, in f
File "electrum\address_synchronizer.py", line 855, in get_balance
TypeError: sequence item 0: expected str instance, NoneType found
TypeError: sequence item 0: expected str instance, NoneType found
Reporter
This issue was reported by 31 user(s):
| Electrum Version | Python Version | Operating System | Wallet Type | Locale | Stack |
|---|---|---|---|---|---|
| 4.4.5 | 3.9.13 (tags/v3.9.13:6de2ca5, May 17 2022, 16:24:45) [MSC v.1929 32 bit (Intel)] | Windows-10-10.0.19045-SP0 | imported | en_ID | ℹ |
| 4.4.5 | 3.9.13 (tags/v3.9.13:6de2ca5, May 17 2022, 16:24:45) [MSC v.1929 32 bit (Intel)] | Windows-10-10.0.19045-SP0 | imported | en_ID | ℹ |
| 4.4.5 | 3.9.13 (tags/v3.9.13:6de2ca5, May 17 2022, 16:24:45) [MSC v.1929 32 bit (Intel)] | Windows-10-10.0.19045-SP0 | imported | en_ID | ℹ |
| 4.4.5 | 3.9.13 (tags/v3.9.13:6de2ca5, May 17 2022, 16:24:45) [MSC v.1929 32 bit (Intel)] | Windows-10-10.0.19045-SP0 | imported | en_GB | ℹ |
| 4.4.4 | 3.9.13 (tags/v3.9.13:6de2ca5, May 17 2022, 16:24:45) [MSC v.1929 32 bit (Intel)] | Windows-10-10.0.22621-SP0 | imported | en_US | ℹ |
| 4.4.5 | 3.9.13 (tags/v3.9.13:6de2ca5, May 17 2022, 16:24:45) [MSC v.1929 32 bit (Intel)] | Windows-10-10.0.19045-SP0 | imported | th_TH | ℹ |
| 4.4.6 | 3.9.13 (v3.9.13:6de2ca5339, May 17 2022, 11:23:25) [Clang 6.0 (clang-600.0.57)] | macOS-10.15.7-x86_64-i386-64bit | standard,imported | ? | ℹ |
| 4.4.5 | 3.9.13 (tags/v3.9.13:6de2ca5, May 17 2022, 16:24:45) [MSC v.1929 32 bit (Intel)] | Windows-10-10.0.19045-SP0 | imported,standard | en_ID | ℹ |
| 4.4.5 | 3.9.13 (tags/v3.9.13:6de2ca5, May 17 2022, 16:24:45) [MSC v.1929 32 bit (Intel)] | Windows-10-10.0.19045-SP0 | imported,standard | en_ID | ℹ |
| 4.5.4 | 3.10.11 (v3.10.11:7d4cc5aa85, Apr 4 2023, 19:05:19) [Clang 13.0.0 (clang-1300.0.29.30)] | macOS-10.15.7-x86_64-i386-64bit | imported,standard | ? | ℹ |
| 4.5.4 | 3.10.11 (v3.10.11:7d4cc5aa85, Apr 4 2023, 19:05:19) [Clang 13.0.0 (clang-1300.0.29.30)] | macOS-10.15.7-x86_64-i386-64bit | standard,imported | ? | ℹ |
| 4.5.5 | 3.10.11 (tags/v3.10.11:7d4cc5a, Apr 5 2023, 00:20:04) [MSC v.1929 32 bit (Intel)] | Windows-10-10.0.19045-SP0 | standard,imported | en_US | ℹ |
| 4.5.5 | 3.10.11 (tags/v3.10.11:7d4cc5a, Apr 5 2023, 00:20:04) [MSC v.1929 32 bit (Intel)] | Windows-10-10.0.22631-SP0 | imported | fr_FR | ℹ |
| 4.5.8 | 3.10.11 (tags/v3.10.11:7d4cc5a, Apr 5 2023, 00:20:04) [MSC v.1929 32 bit (Intel)] | Windows-10-10.0.22631-SP0 | imported,standard | en_US | ℹ |
| 4.5.8 | 3.10.11 (tags/v3.10.11:7d4cc5a, Apr 5 2023, 00:20:04) [MSC v.1929 32 bit (Intel)] | Windows-10-10.0.19045-SP0 | imported | en_ID | ℹ |
| 4.5.8 | 3.10.11 (tags/v3.10.11:7d4cc5a, Apr 5 2023, 00:20:04) [MSC v.1929 32 bit (Intel)] | Windows-10-10.0.19045-SP0 | imported,standard | en_ID | ℹ |
| 4.5.8 | 3.10.11 (tags/v3.10.11:7d4cc5a, Apr 5 2023, 00:20:04) [MSC v.1929 32 bit (Intel)] | Windows-10-10.0.19045-SP0 | imported | en_ID | ℹ |
| 4.5.8 | 3.10.11 (tags/v3.10.11:7d4cc5a, Apr 5 2023, 00:20:04) [MSC v.1929 32 bit (Intel)] | Windows-10-10.0.26100-SP0 | imported | en_CH | ℹ |
| 4.5.8 | 3.10.11 (tags/v3.10.11:7d4cc5a, Apr 5 2023, 00:20:04) [MSC v.1929 32 bit (Intel)] | Windows-10-10.0.19045-SP0 | imported | en_IN | ℹ |
| 4.5.8 | 3.10.13 (main, Jun 28 2018, 19:01:02) [GCC 8.3.0] | Linux-6.13.7-200.nobara.fc41.x86_64-x86_64-with-glibc2.40 | imported | en_US | ℹ |
| 4.5.8 | 3.10.11 (tags/v3.10.11:7d4cc5a, Apr 5 2023, 00:20:04) [MSC v.1929 32 bit (Intel)] | Windows-10-10.0.19045-SP0 | imported | en_CA | ℹ |
| 4.5.8 | 3.10.11 (tags/v3.10.11:7d4cc5a, Apr 5 2023, 00:20:04) [MSC v.1929 32 bit (Intel)] | Windows-10-10.0.26100-SP0 | imported | zh_CN | ℹ |
| 4.5.8 | 3.10.11 (tags/v3.10.11:7d4cc5a, Apr 5 2023, 00:20:04) [MSC v.1929 32 bit (Intel)] | Windows-10-10.0.19045-SP0 | standard,imported | en_US | ℹ |
| 4.5.8 | 3.10.11 (tags/v3.10.11:7d4cc5a, Apr 5 2023, 00:20:04) [MSC v.1929 32 bit (Intel)] | Windows-10-10.0.19045-SP0 | standard,imported | en_US | ℹ |
| 4.5.8 | 3.10.11 (tags/v3.10.11:7d4cc5a, Apr 5 2023, 00:20:04) [MSC v.1929 32 bit (Intel)] | Windows-10-10.0.26100-SP0 | imported | en_US | ℹ |
| 4.6.1 | 3.12.10 (tags/v3.12.10:0cc8128, Apr 8 2025, 12:21:36) [MSC v.1943 64 bit (AMD64)] | Windows-11-10.0.26100-SP0 | standard,imported | pt_BR | ℹ |
| 4.6.2 | 3.12.10 (v3.12.10:0cc81280367, Apr 8 2025, 08:47:00) [Clang 13.0.0 (clang-1300.0.29.30)] | macOS-13.6-x86_64-i386-64bit | standard | ? | ℹ |
| 4.7.0 | 3.12.10 (tags/v3.12.10:0cc8128, Apr 8 2025, 12:21:36) [MSC v.1943 64 bit (AMD64)] | Windows-11-10.0.26200-SP0 | imported | pt_BR | ℹ |
| 4.7.2 | 3.12.10 (tags/v3.12.10:0cc8128, Apr 8 2025, 12:21:36) [MSC v.1943 64 bit (AMD64)] | Windows-11-10.0.26200-SP0 | imported | Engli | ℹ |
| 4.7.2 | 3.12.11 (main, Jun 28 2018, 19:01:02) [GCC 10.2.1 20210110] | Linux-7.0.0-27-generic-x86_64-with-glibc2.43 | imported | en_US | ℹ |
| 4.7.2 | 3.12.10 (tags/v3.12.10:0cc8128, Apr 8 2025, 12:21:36) [MSC v.1943 64 bit (AMD64)] | Windows-11-10.0.26200-SP0 | imported,standard | Engli | ℹ |
Additional Information
The reporting user(s) did not provide additional information.
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 at electrum/address_synchronizer.py, especially get_balance around line 855, and follow the callers in electrum/wallet.py and electrum/gui/qt/history_list.py shown in the traceback. Reproduce the imported-wallet history refresh path and identify why a None value reaches the failing sequence operation; done means history refresh no longer raises this TypeError.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- backend, desktop
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 28/100