TypeError: 'NoneType' object is not callable
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 "/home/user/wspace/electrum/.buildozer/android/platform/build-arm64-v8a/build/python-installs/Electrum/kivy/core/window/window_sdl2.py", line 747, in mainloop
File "/home/user/wspace/electrum/.buildozer/android/platform/build-arm64-v8a/build/python-installs/Electrum/kivy/core/window/window_sdl2.py", line 683, in _mainloop
File "kivy/_event.pyx", line 703, in kivy._event.EventDispatcher.dispatch
File "kivy/_event.pyx", line 1214, in kivy._event.EventObservers.dispatch
File "kivy/_event.pyx", line 1138, in kivy._event.EventObservers._dispatch
File "/home/user/wspace/electrum/.buildozer/android/platform/build-arm64-v8a/build/python-installs/Electrum/kivy/core/window/__init__.py", line 163, in _on_window_key_down
File "kivy/_event.pyx", line 703, in kivy._event.EventDispatcher.dispatch
File "kivy/_event.pyx", line 1214, in kivy._event.EventObservers.dispatch
File "kivy/_event.pyx", line 1138, in kivy._event.EventObservers._dispatch
File "/home/user/wspace/electrum/.buildozer/android/platform/build-arm64-v8a/build/python-installs/Electrum/kivy/uix/textinput.py", line 2573, in keyboard_on_key_down
File "/home/user/wspace/electrum/.buildozer/android/platform/build-arm64-v8a/build/python-installs/Electrum/kivy/uix/textinput.py", line 2435, in _key_down
File "kivy/_event.pyx", line 703, in kivy._event.EventDispatcher.dispatch
File "kivy/_event.pyx", line 1214, in kivy._event.EventObservers.dispatch
File "kivy/_event.pyx", line 1098, in kivy._event.EventObservers._dispatch
File "/home/user/wspace/electrum/.buildozer/android/platform/build-arm64-v8a/build/python-installs/Electrum/kivy/lang/builder.py", line 64, in custom_callback
File "<string>", line 54, in <module>
File "/home/user/wspace/electrum/.buildozer/android/app/electrum/gui/kivy/uix/dialogs/password_dialog.py", line 286, in on_password
File "/home/user/wspace/electrum/.buildozer/android/app/electrum/gui/kivy/uix/dialogs/password_dialog.py", line 238, in do_check
File "/home/user/wspace/electrum/.buildozer/android/app/electrum/gui/kivy/uix/dialogs/password_dialog.py", line 205, in check_password
TypeError: 'NoneType' object is not callable
Reporter
This issue was reported by 6 user(s):
| Electrum Version | Python Version | Operating System | Wallet Type | Locale | Stack |
|---|---|---|---|---|---|
| 4.0.2 | 3.7.7 (default, Jul 3 2020, 14:24:30) [Clang 8.0.2 (https://android.googlesource.com/toolchain/clang 40173bab62ec7462 | Android 9 on Nokia PLE (00WW_6_19D) | unknown | en_US | ℹ |
| 4.0.3 | 3.7.9 (default, Sep 11 2020, 13:56:22) [Clang 8.0.2 (https://android.googlesource.com/toolchain/clang 40173bab62ec7462 | Android 9 on OnePlus OnePlus5 (ONEPLUS A5000_23_200224) | unknown | en_US | ℹ |
| 4.0.3 | 3.7.9 (default, Sep 11 2020, 13:56:22) [Clang 8.0.2 (https://android.googlesource.com/toolchain/clang 40173bab62ec7462 | Android 6.0 on Lenovo TB3-X70F (TB3-X70F_S000008_180326_ROW_P) | unknown | en_US | ℹ |
| 4.0.9 | 3.7.9 (default, Nov 18 2020, 18:17:29) [Clang 8.0.2 (https://android.googlesource.com/toolchain/clang 40173bab62ec7462 | Android 6.0.1 on samsung grandppltedtv (MMB29T.G532MTVJU1ASA1) | unknown | en_US | ℹ |
| 4.3.1 | 3.8.13 (default, Aug 17 2022, 17:07:22) [Clang 11.0.5 (https://android.googlesource.com/toolchain/llvm-project 87f1315d | Android 11 on Redmi joyeuse (RKQ1.200826.002 test-keys) | unknown | en_US | ℹ |
| 4.3.4 | 3.8.15 (default, Jan 26 2023, 15:17:59) [Clang 11.0.5 (https://android.googlesource.com/toolchain/llvm-project 87f1315d | Android 5.1 on alps S20U (LMY47I test-keys) | imported | en_US | ℹ |
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 in electrum/gui/kivy/uix/dialogs/password_dialog.py, following check_password, do_check, and on_password from the traceback. Reproduce the password-entry flow on Android and inspect which callback is None before the call. Done means the flow no longer raises this TypeError across the reported Android password cases.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- mobile-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100