spesmilo / electrum

Electrum Bitcoin Wallet
https://electrum.org
MIT License
7.46k stars 3.1k forks source link

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

Open TARS-bot opened 4 years ago

TARS-bot commented 4 years ago

Crash Report

This crash report was reported through the automatic crash reporting system 🤖

Traceback

  File "electrum\gui\qt\main_window.py", line 2822, in do_import_labels
  File "electrum\gui\qt\util.py", line 926, in import_meta_gui
  File "electrum\wallet.py", line 446, in import_labels

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

Reporter

This issue was reported by 79 user(s):

Electrum Version Python Version Operating System Wallet Type Locale Stack
4.0.2 3.7.7 (tags/v3.7.7:d7c567b08f, Mar 10 2020, 09:44:33) [MSC v.1900 32 bit (Intel)] Windows-10-10.0.18362-SP0 standard en_US
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.8.7 (default, Nov 10 2011, 15:00:00) [GCC 10.2.0] Linux-4.19.0-13-amd64-x86_64-with-glibc2.2.5 standard en_US
4.0.2 3.7.3 (default, Jul 25 2020, 13:03:44) [GCC 8.3.0] Linux-5.9.0-0.bpo.2-amd64-x86_64-with-debian-10.7 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 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 imported en_DK
4.1.5 3.8.8 (tags/v3.8.8:024d805, Feb 19 2021, 13:08:11) [MSC v.1928 32 bit (Intel)] Windows-10-10.0.21996-SP0 standard en_GB
4.1.5 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 2fa en_US
4.1.5 3.8.8 (tags/v3.8.8:024d805, Feb 19 2021, 13:08:11) [MSC v.1928 32 bit (Intel)] Windows-10-10.0.22000-SP0 standard en_US
4.1.5 3.8.8 (tags/v3.8.8:024d805, Feb 19 2021, 13:08:11) [MSC v.1928 32 bit (Intel)] Windows-10-10.0.17763-SP0 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-10-10.0.15063-SP0 standard,2of2 en_US
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.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.22000-SP0 imported en_CA
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 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.18363-SP0 imported,2fa fa_IR
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.22621-SP0 standard,imported en_CA
4.3.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.19045-SP0 2of2 en_GB
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.22621-SP0 standard en_NZ
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.22621-SP0 standard en_NZ
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.19044-SP0 standard,2fa en_US
4.4.5 3.10.11 (main, Nov 10 2011, 15:00:00) [GCC 12.2.0] Linux-6.1.0-9-amd64-x86_64-with-glibc2.35 standard en_GB
4.4.5 3.10.11 (main, Nov 10 2011, 15:00:00) [GCC 12.2.0] Linux-6.1.0-9-amd64-x86_64-with-glibc2.35 standard en_GB
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.22621-SP0 standard,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.22621-SP0 standard tr_TR
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.17763-SP0 standard en_AU
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 standard 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 standard en_US
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.22000-SP0 imported,standard fa_IR
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.19045-SP0 imported,standard en_US
4.4.6 3.9.13 (tags/v3.9.13:6de2ca5, May 17 2022, 16:24:45) [MSC v.1929 32 bit (Intel)] Windows-8.1-6.3.9600-SP0 standard ar_MA
4.4.6 3.9.13 (tags/v3.9.13:6de2ca5, May 17 2022, 16:24:45) [MSC v.1929 32 bit (Intel)] Windows-8.1-6.3.9600-SP0 standard en_US
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.18363-SP0 standard fa_IR
4.4.5 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 ?
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.22621-SP0 standard es_ES
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.19045-SP0 imported en_US
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.22621-SP0 standard en_US
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.19045-SP0 imported,standard ru_RU
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 2fa ?
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.22631-SP0 standard nl_NL
4.5.2 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 cs_CZ
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.19045-SP0 standard en_US
4.5.2 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_US
4.5.2 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 standard,imported cs_CZ
4.5.3 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_GB
4.5.3 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_US
4.5.3 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 pl_PL
4.5.3 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 ru_RU
4.5.3 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 ru_RU
4.5.3 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 ru_RU
4.5.3 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_GB
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.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,imported es_MX
4.3.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 standard en_US
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 2fa en_US
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-12.7-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 2fa en_AU
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 de_CH
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.22621-SP0 standard zh_CN
4.5.2 3.10.13 (main, Jun 28 2018, 19:01:02) [GCC 8.3.0] Linux-6.5.0-35-generic-x86_64-with-glibc2.35 standard 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.19045-SP0 standard ru_RU
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 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 standard fa_IR
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 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.19045-SP0 imported,standard pl_PL
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 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 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.19045-SP0 imported es_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 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 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.19045-SP0 standard sv_SE
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 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 en_UM
4.5.6 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_UM
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.26120 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,2fa fa_IR
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.22621-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.19045-SP0 imported,standard en_CA

Additional Information

Newbee sorry


Traceback (most recent call last): File "electrum\gui\qt\main_window.py", line 3025, in do_import_labels File "electrum\gui\qt\util.py", line 1014, in import_meta_gui File "electrum\wallet.py", line 488, in import_labels AttributeError: 'list' object has no attribute 'items'


help my btc. away


Cannot import labels.


trying to import address


i want to change my account from native


try upload new version


13m3hC95Pp3ZWth6XCmhr9qUVNZGqMchia


Добрый день. не могу восстановить свой кошелек осле помощи ваших пециалистов. сид расширен, но кош залочен. его как бы не существует.


eback Traceback (most recent call last): File "electrum\gui\qt\main_window.py", line 2326, in do_import_labels File "electrum\gui\qt\util.py", line 1336, in import_meta_gui File "electrum\wallet.py", line 608, in import_labels AttributeError: 'list' object has no attribute 'items'

Additional information Electrum version: 4.3.4 Python version: 3.9.13 (tags/v3.9.13:6de2ca5, May 17 2022, 16:24:45) [MSC v.1929 32 bit (Intel)] Operating system: Windows-10-10.0.22621-SP0 Wallet type: standard Locale: en_US


p2wpkh-p2sh:L3mmg3e7M7ddfmLYQC4e7xaowFgbW9PgKRZ3TcMukQ9qukHptiu8


firmar mi transaccion


Hallo, ich kann meine btc nicht versenden. ich benötige hilfe


trying to broadcast my transaction


trying to import my ledger logs


SomberNight commented 4 years ago

I think this user tried to open the wrong kind of file to import labels from. By chance the file also contained valid json, but the json itself did not have the expected structure.

ecdsa commented 3 years ago

similar to #6841 json exports should have a type field