spesmilo / electrum

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

TypeError: list indices must be integers or slices, not NoneType #5546

Open TARS-bot opened 5 years ago

TARS-bot commented 5 years ago

Crash Report

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

Traceback

  File "/home/ilja2/.local/lib/python3.7/site-packages/electrum/gui/qt/util.py", line 728, in on_done
    cb_result(result)
  File "/home/ilja2/.local/lib/python3.7/site-packages/electrum/plugins/trezor/qt.py", line 364, in update
    pin_set_label.setText(noyes[features.pin_protection])

TypeError: list indices must be integers or slices, not NoneType

Reporter

This issue was reported by 41 user(s):

Electrum Version Python Version Operating System Wallet Type Locale Stack
3.3.8 3.7.4 (default, Jul 9 2019, 16:48:28) [GCC 8.3.1 20190223 (Red Hat 8.3.1-2)] Linux-5.1.20-200.fc29.x86_64-x86_64-with-fedora-29-Twenty_Nine standard fi_FI ℹ
3.3.8 3.6.8 (tags/v3.6.8:3c6b436a57, Dec 23 2018, 23:31:17) [MSC v.1916 32 bit (Intel)] Windows-10-10.0.17763 standard en_US ℹ
4.0.5 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:01:55) [MSC v.1900 32 bit (Intel)] Windows-10-10.0.18362-SP0 standard es_ES ℹ
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.19041-SP0 standard en_GB ℹ
4.1.5 3.10.1 (main, Dec 9 2021, 00:00:00) [GCC 11.2.1 20211203 (Red Hat 11.2.1-7)] Linux-5.15.12-200.fc35.x86_64-x86_64-with-glibc2.34 standard en_US ℹ
4.1.5 3.10.1 (main, Dec 9 2021, 00:00:00) [GCC 11.2.1 20211203 (Red Hat 11.2.1-7)] Linux-5.15.13-200.fc35.x86_64-x86_64-with-glibc2.34 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.19041-SP0 standard sl_SI ℹ
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 standard zh_CN ℹ
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.22621-SP0 standard en_US ℹ
4.2.1 3.9.11 (v3.9.11:2de452f8bf, Mar 16 2022, 10:34:36) [Clang 6.0 (clang-600.0.57)] macOS-10.16-x86_64-i386-64bit 2of3,standard ? ℹ
4.3.0 3.9.11 (main, Jun 28 2018, 19:01:02) [GCC 7.5.0] Linux-5.18.0-1parrot1-amd64-x86_64-with-glibc2.31 standard en_US ℹ
4.3.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 standard ru_RU ℹ
4.3.2 3.9.11 (v3.9.11:2de452f8bf, Mar 16 2022, 10:34:36) [Clang 6.0 (clang-600.0.57)] macOS-10.16-x86_64-i386-64bit standard ? ℹ
4.3.2 3.9.11 (v3.9.11:2de452f8bf, Mar 16 2022, 10:34:36) [Clang 6.0 (clang-600.0.57)] macOS-10.16-x86_64-i386-64bit standard ? ℹ
4.2.2 3.9.11 (v3.9.11:2de452f8bf, Mar 16 2022, 10:34:36) [Clang 6.0 (clang-600.0.57)] macOS-10.16-x86_64-i386-64bit 2of3 ? ℹ
4.3.2 3.9.16 (main, Dec 17 2022, 01:13:33) [Clang 13.0.0 (git@github.com:llvm/llvm-project.git llvmorg-13.0.0-0-gd7b669b3a FreeBSD-13.1-RELEASE-p3-amd64-64bit-ELF standard de_DE ℹ
4.3.2 3.10.9 (main, Dec 19 2022, 17:35:49) [GCC 12.2.0] Linux-6.1.0-rt5-ging-x86_64-with-glibc2.36 standard en_US ℹ
4.3.2 3.10.9 (main, Dec 19 2022, 17:35:49) [GCC 12.2.0] Linux-6.1.9-arch1-1-x86_64-with-glibc2.36 standard en_US ℹ
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.22623-SP0 standard en_US ℹ
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.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.19044-SP0 standard pl_PL ℹ
4.4.0 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.3 3.9.16 (main, May 13 2023, 02:38:51) [Clang 15.0.7 (https://github.com/llvm/llvm-project.git llvmorg-15.0.7-0-g8dfdc FreeBSD-13.2-STABLE-amd64-64bit-ELF standard de_DE ℹ
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 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 standard en_CA ℹ
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 2of2 de_DE ℹ
4.5.0b1 3.10.11 (v3.10.11:7d4cc5aa85, Apr 4 2023, 19:05:19) [Clang 13.0.0 (clang-1300.0.29.30)] macOS-13.2-x86_64-i386-64bit standard ? ℹ
4.5.0-44-g2390a76d1-dirty 3.10.12 (main, Nov 20 2023, 15:14:05) [GCC 11.4.0] Linux-6.5.0-14-generic-x86_64-with-glibc2.35 imported,standard en_GB ℹ
4.5.3 3.10.11 (v3.10.11:7d4cc5aa85, Apr 4 2023, 19:05:19) [Clang 13.0.0 (clang-1300.0.29.30)] macOS-14.2.1-x86_64-i386-64bit standard ? ℹ
4.5.3 3.10.11 (v3.10.11:7d4cc5aa85, Apr 4 2023, 19:05:19) [Clang 13.0.0 (clang-1300.0.29.30)] macOS-14.2.1-x86_64-i386-64bit standard ? ℹ
4.5.3 3.10.13 (main, Jun 28 2018, 19:01:02) [GCC 8.3.0] Linux-6.6.10-76060610-generic-x86_64-with-glibc2.35 standard pt_PT ℹ
4.5.3 3.10.11 (v3.10.11:7d4cc5aa85, Apr 4 2023, 19:05:19) [Clang 13.0.0 (clang-1300.0.29.30)] macOS-12.3.1-x86_64-i386-64bit imported,standard ? ℹ
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.22631-SP0 standard en_NL ℹ
4.5.4 3.10.13 (main, Jun 28 2018, 19:01:02) [GCC 8.3.0] Linux-6.1.0-18-amd64-x86_64-with-glibc2.36 standard en_US ℹ
4.5.4 3.10.13 (main, Jun 28 2018, 19:01:02) [GCC 8.3.0] Linux-6.1.0-20-amd64-x86_64-with-glibc2.36 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.22631-SP0 standard de_DE ℹ
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.4 3.10.13 (main, Jun 28 2018, 19:01:02) [GCC 8.3.0] Linux-6.1.0-21-amd64-x86_64-with-glibc2.36 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.22631-SP0 standard en_NZ ℹ
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-SP0 standard en_ZA ℹ
4.5.5 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.6-x86_64-i386-64bit standard ? ℹ

Additional Information

plugged in trezor one t, started electrum. This worked fine few hours ago...


Traceback (most recent call last): File "electrum\gui\qt\util.py", line 850, in on_done File "C:\Program Files (x86)\Electrum\electrum\plugins\trezor\qt.py", line 504, in update pin_set_label.setText(noyes[features.pin_protection]) TypeError: list indices must be integers or slices, not NoneType


I clicked the trezor padlock icon on the bottom right of the Electrum window.


unconfirmed transactions from original trezor wallet not showing up in electrum


I'm using a Trezor Safe 3 device and when I click the treezor icon I get this python error.


SomberNight commented 8 months ago

To reproduce, connect trezor, open wallet, pair it, then

>>> wallet.keystore.get_client(force_pair=False).client.features.passphrase_protection
True
>>> wallet.keystore.get_client(force_pair=False).client.clear_session()
>>> wallet.keystore.get_client(force_pair=False).client.features.passphrase_protection
>>> wallet.keystore.get_client(force_pair=False).client.features.passphrase_protection is None
True