spesmilo / spesmilo/electrum

AttributeError: 'list' object has no attribute 'items'

Open
#6,841 0 comments 0 reactions 0 assignees View on GitHub

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\contact_list.py", line 76, in <lambda>
  File "electrum\gui\qt\main_window.py", line 2880, in import_contacts
  File "electrum\gui\qt\util.py", line 934, in import_meta_gui
  File "electrum\contacts.py", line 56, in import_file
  File "electrum\contacts.py", line 125, in _validate

AttributeError: 'list' object has no attribute 'items'

Reporter

This issue was reported by 36 user(s):

Electrum Version Python Version Operating System Wallet Type Locale Stack
4.0.7 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 imported en_ZA
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 sv_SE
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.18362-SP0 standard en_US
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 2of2,standard nb_NO
4.1.4 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 imported,standard ru_RU
4.1.5 3.8.8 (tags/v3.8.8:024d805, Feb 19 2021, 13:08:11) [MSC v.1928 32 bit (Intel)] Windows-8-6.2.9200-SP0 imported ru_RU
4.2.0 3.9.10 (tags/v3.9.10:f2f3f53, Jan 17 2022, 15:01:48) [MSC v.1929 32 bit (Intel)] Windows-10-10.0.22000 standard en_US
4.1.5 3.7.10 (default, Jun 28 2018, 19:01:02) [GCC 5.4.0 20160609] Linux-5.15.1-051501-generic-x86_64-with-debian-buster-sid imported,standard en_US
4.2.2 3.9.11 (tags/v3.9.11:2de452f, Mar 16 2022, 14:21:37) [MSC v.1929 32 bit (Intel)] Windows-10-10.0.22000-SP0 standard en_CA
4.2.1 3.9.11 (tags/v3.9.11:2de452f, Mar 16 2022, 14:21:37) [MSC v.1929 32 bit (Intel)] Windows-10-10.0.19044-SP0 2fa,standard ru_RU
4.2.2 3.9.11 (tags/v3.9.11:2de452f, Mar 16 2022, 14:21:37) [MSC v.1929 32 bit (Intel)] Windows-10-10.0.19044-SP0 standard th_TH
4.2.2 3.9.11 (tags/v3.9.11:2de452f, Mar 16 2022, 14:21:37) [MSC v.1929 32 bit (Intel)] Windows-10-10.0.19044-SP0 standard th_TH
4.3.2 3.9.11 (tags/v3.9.11:2de452f, Mar 16 2022, 14:21:37) [MSC v.1929 32 bit (Intel)] Windows-10-10.0.19044-SP0 standard de_DE
4.3.2 3.9.11 (tags/v3.9.11:2de452f, Mar 16 2022, 14:21:37) [MSC v.1929 32 bit (Intel)] Windows-10-10.0.19044-SP0 standard en_US
4.3.2 3.9.11 (tags/v3.9.11:2de452f, Mar 16 2022, 14:21:37) [MSC v.1929 32 bit (Intel)] Windows-10-10.0.19044-SP0 standard en_US
4.3.2 3.9.11 (tags/v3.9.11:2de452f, Mar 16 2022, 14:21:37) [MSC v.1929 32 bit (Intel)] Windows-10-10.0.19045-SP0 imported,2fa,standard de_DE
4.2.1 3.9.11 (tags/v3.9.11:2de452f, Mar 16 2022, 14:21:37) [MSC v.1929 32 bit (Intel)] Windows-10-10.0.19044-SP0 imported en_US
4.2.1 3.9.11 (tags/v3.9.11:2de452f, Mar 16 2022, 14:21:37) [MSC v.1929 32 bit (Intel)] Windows-10-10.0.19043-SP0 imported,standard sv_SE
4.4.6 3.9.13 (tags/v3.9.13:6de2ca5, May 17 2022, 16:24:45) [MSC v.1929 32 bit (Intel)] Windows-10-10.0.17134-SP0 standard de_DE
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.16-x86_64-i386-64bit standard,imported ?
4.5.4 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 en_MY
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 imported,standard de_DE
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 imported,standard de_DE
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 sv_SE
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 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.22631-SP0 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.22631-SP0 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 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 standard,imported en_US
4.6.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.26100-SP0 imported Engli
4.6.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.26220-SP0 standard Engli
4.6.2 3.12.10 (tags/v3.12.10:0cc8128, Apr 8 2025, 12:21:36) [MSC v.1943 64 bit (AMD64)] Windows-10-10.0.19045-SP0 standard Thai_
4.7.2 3.13.12 (main, Feb 4 2026, 15:06:39) [GCC 15.2.0] Linux-6.19.14+kali-amd64-x86_64-with-glibc2.42 standard en_US
4.7.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.26200-SP0 standard de_DE
4.7.2 3.12.10 (tags/v3.12.10:0cc8128, Apr 8 2025, 12:21:36) [MSC v.1943 64 bit (AMD64)] Windows-10-10.0.19045-SP0 imported Engli
4.7.2 3.12.10 (tags/v3.12.10:0cc8128, Apr 8 2025, 12:21:36) [MSC v.1943 64 bit (AMD64)] Windows-10-10.0.19045-SP0 imported Persi

Additional Information

This Adresse stole my bitcoin and he is here everyda in the system onlie 02cf98a43093c82dff33b6ac9c2e93c1f88e8207f61307bfc6d80fb1c2ba9a0be2


Traceback (most recent call last):
File "electrum\gui\qt\contact_list.py", line 144, in
File "electrum\gui\qt\main_window.py", line 2362, in import_contacts
File "electrum\gui\qt\util.py", line 1178, in import_meta_gui
File "electrum\contacts.py", line 70, in import_file
File "electrum\contacts.py", line 172, in _validate
AttributeError: 'list' object has no attribute 'items'


bc1q2paveyq08h79x0m0jrdqxdf8dmfd2rjrcp48tn


Traceback
Traceback (most recent call last):
File "electrum\gui\qt\contact_list.py", line 148, in
File "electrum\gui\qt\main_window.py", line 2577, in import_contacts
File "electrum\gui\qt\util.py", line 1213, in import_meta_gui
File "electrum\contacts.py", line 70, in import_file
File "electrum\contacts.py", line 175, in _validate
AttributeError: 'list' object has no attribute 'items'

Additional information
Electrum version: 4.7.2
Python version: 3.12.10 (tags/v3.12.10:0cc8128, Apr 8 2025, 12:21:36) [MSC v.1943 64 bit (AMD64)]
Operating system: Windows-10-10.0.19045-SP0
Wallet type: imported
Locale: Persian_Iran


Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in electrum/contacts.py at import_file and _validate, then trace the Qt entry points in electrum/gui/qt/util.py, main_window.py, and contact_list.py. Reproduce contact import with the reported input and establish the expected validation behavior; done means importing it no longer raises AttributeError and the behavior is verified.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
desktop
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.