UnicodeEncodeError: 'utf-8' codec can't encode character '\udece' in position 7: surrogates not allowed
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 "electrum\gui\qt\main_window.py", line 660, in new_wallet
File "electrum\gui\qt\__init__.py", line 247, in wrapper
File "electrum\gui\qt\__init__.py", line 271, in start_new_window
File "electrum\gui\qt\__init__.py", line 313, in _start_wizard_to_select_or_create_wallet
File "electrum\base_wizard.py", line 115, in run
File "electrum\base_wizard.py", line 153, in new
File "electrum\gui\qt\installwizard.py", line 118, in func_wrapper
File "electrum\base_wizard.py", line 193, in on_wallet_type
File "electrum\base_wizard.py", line 115, in run
File "electrum\base_wizard.py", line 225, in choose_keystore
File "electrum\gui\qt\installwizard.py", line 118, in func_wrapper
File "electrum\base_wizard.py", line 115, in run
File "electrum\base_wizard.py", line 490, in restore_from_seed
File "electrum\gui\qt\installwizard.py", line 118, in func_wrapper
File "electrum\base_wizard.py", line 497, in on_restore_seed
File "electrum\base_wizard.py", line 496, in f
File "electrum\base_wizard.py", line 519, in on_restore_bip39
File "electrum\base_wizard.py", line 435, in derivation_and_script_type_dialog
File "electrum\gui\qt\installwizard.py", line 118, in func_wrapper
File "electrum\base_wizard.py", line 512, in f
File "electrum\base_wizard.py", line 115, in run
File "electrum\base_wizard.py", line 526, in on_bip43
File "electrum\keystore.py", line 855, in from_bip39_seed
File "electrum\keystore.py", line 820, in bip39_to_seed
UnicodeEncodeError: 'utf-8' codec can't encode character '\udece' in position 7: surrogates not allowed
Reporter
This issue was reported by 1 user(s):
| Electrum Version | Python Version | Operating System | Wallet Type | Locale | Stack |
|---|---|---|---|---|---|
| 4.0.4 | 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:01:55) [MSC v.1900 32 bit (Intel)] | Windows-7-6.1.7601-SP1 | standard,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 with electrum/keystore.py at bip39_to_seed and from_bip39_seed, then trace the restore flow through electrum/base_wizard.py, especially on_restore_bip39. Reproduce the BIP39 restore path described in the traceback on the reported Windows/Python environment; done means that path no longer raises the surrogate-related UnicodeEncodeError.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100