AttributeError: 'NoneType' object has no attribute 'get_pubkey_bytes'
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\send_tab.py", line 579, in do_pay_or_get_invoice
File "electrum\gui\qt\send_tab.py", line 606, in do_pay_invoice
File "electrum\gui\qt\send_tab.py", line 323, in pay_onchain_dialog
File "electrum\gui\qt\confirm_tx_dialog.py", line 622, in __init__
File "electrum\gui\qt\util.py", line 376, in __init__
File "electrum\gui\qt\confirm_tx_dialog.py", line 123, in update
File "electrum\gui\qt\confirm_tx_dialog.py", line 641, in update_tx
File "electrum\gui\qt\send_tab.py", line 315, in <lambda>
File "electrum\util.py", line 483, in do_profile
File "electrum\wallet.py", line 1846, in make_unsigned_transaction
File "electrum\wallet.py", line 2450, in add_input_info
File "electrum\transaction.py", line 1425, in script_descriptor
File "electrum\descriptor.py", line 515, in expand
AttributeError: 'NoneType' object has no attribute 'get_pubkey_bytes'
AttributeError: 'NoneType' object has no attribute 'get_pubkey_bytes'
Reporter
This issue was reported by 8 user(s):
| Electrum Version | Python Version | Operating System | Wallet Type | Locale | Stack |
|---|---|---|---|---|---|
| 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 | 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.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 | 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-10-10.0.19045-SP0 | imported | Engli | ℹ |
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 with the traceback in electrum/gui/qt/send_tab.py and electrum/gui/qt/confirm_tx_dialog.py, then follow the transaction path into electrum/wallet.py, electrum/transaction.py, and electrum/descriptor.py. Reproduce payment confirmation with an imported wallet and trace why descriptor expansion reaches a missing key object; done means the affected flow no longer raises this AttributeError.
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
- 30/100