codec can't encode character '\u2652' in position 83: character maps to <undefined>
Open
Nobody has claimed this yet.
area: claims
hacktoberfest
type: bug
- Dominant language
- Python
- Stars
- 7.2k
- Forks
- 493
- PR merge metrics
- No merged PRs in 30d
Description
2019-08-31 10:02:31,489 INFO lbry.dht.blob_announcer:43: 8 blobs to announce
--- Logging error ---
Traceback (most recent call last):
File "logging\__init__.py", line 1028, in emit
File "c:\python37\lib\encodings\cp1252.py", line 19, in encode
UnicodeEncodeError: 'charmap' codec can't encode character '\u2652' in position 83: character maps to <undefined>
Call stack:
File "lbry\extras\cli.py", line 317, in <module>
File "lbry\extras\cli.py", line 294, in main
File "lbry\extras\cli.py", line 269, in run_daemon
File "asyncio\base_events.py", line 534, in run_forever
File "asyncio\base_events.py", line 1771, in _run_once
File "asyncio\events.py", line 88, in _run
File "site-packages\aiohttp\web_app.py", line 458, in _handle
File "lbry\extras\daemon\Daemon.py", line 475, in handle_old_jsonrpc
File "lbry\extras\daemon\Daemon.py", line 580, in _process_rpc_call
File "lbry\extras\daemon\Daemon.py", line 2352, in jsonrpc_publish
File "logging\__init__.py", line 1378, in info
File "logging\__init__.py", line 1514, in _log
File "logging\__init__.py", line 1524, in handle
File "logging\__init__.py", line 1586, in callHandlers
File "logging\__init__.py", line 894, in handle
File "logging\handlers.py", line 71, in emit
File "logging\__init__.py", line 1127, in emit
File "logging\__init__.py", line 1033, in emit
Message: 'publishing: name: %s params: %s'
Arguments: ('♒', {'title': '♒♒♒♒♒♒♒♒♒♒♒♒', 'description': '♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒ ♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒ ♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒', 'bid': '1.00000000', 'languages': ['en'], 'tags': ['groovy'], 'thumbnail_url': 'https://spee.ch/a/Z5tRSQVAKUw7qJlCOuBRp7KX.gif', 'license': 'Public Domain', 'release_time': 1563411899, 'channel_id': 'c474d46ef096084d3eaa58fef6a50b5cfbf8f096'})
2019-08-31 10:02:40,399 INFO lbry.extras.daemon.Daemon:2352: publishing: name: ♒ params: {'title': '♒♒♒♒♒♒♒♒♒♒♒♒', 'description': '♒♒♒♒♒♒ ♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒ ♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒♒', 'bid': '1.00000000', 'languages': ['en'], 'tags': ['groovy'], 'thumbnail_url': 'https://spee.ch/a/Z5tRSQVAKUw7qJlCOuBRp7KX.gif', 'license': 'Public Domain', 'release_time': 1563411899, 'channel_id': 'c474d46ef096084d3eaa58fef6a50b5cfbf8f096'}```
Contributor guide
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 by reading the logging paths shown in lbry/extras/cli.py and lbry/extras/daemon/Daemon.py, then reproduce the publish operation on Windows with the Unicode name from the report. Done means publishing such content no longer raises a UnicodeEncodeError while logging.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- backend, cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100