mnamer icon indicating copy to clipboard operation
mnamer copied to clipboard

UnicodeEncodeError: 'utf-8' codec can't encode character '\udcdf'

Open Merlinux-source opened this issue 2 years ago • 0 comments

I was renaming Food Wars in a shared directory on a Ubuntu 22.04.1 LTS x86_64 Gnu + Linux system. the content is owned by a different user on the same system. This issue does not occur on a windows 10 system. (as far as I've tested it).

------ Console output ----- Processing Episode "Shokugeki No Souma - S03E08 - The Alchemist.mkv" (1.17GB) skipping (source and destination paths are the same)

Processing Episode "Shokugeki No Souma - S03E09 - Hunting the Survivors.mkv" (1.13GB) skipping (source and destination paths are the same)

Processing Episode "Shokugeki No Souma - S03E10 - The Salmon Will Dance.mkv" (1.14GB) skipping (source and destination paths are the same)

============================== CRASH REPORT BEGIN ==============================

--------------------------------- environment ----------------------------------

  • date = 2022-10-29
  • platform = Linux-5.15.0-52-generic-x86_64-with-glibc2.35
  • arguments = ['-b', '-r', '--id-tvdb=289909', '.']
  • cache location = /home/user/.cache/mnamer-py3.10.sql
  • python version = 3.10.6
  • mnamer version = 2.5.4
  • appdirs version = 1.4.4
  • guessit version = 3.2.0
  • requests version = 2.25.1
  • requests cache version = 0.5.2
  • teletype version = 1.1.0

--------------------------------- stack trace ----------------------------------

Traceback (most recent call last): File "/home/user/.local/lib/python3.10/site-packages/mnamer/main.py", line 23, in main frontend.launch() File "/home/user/.local/lib/python3.10/site-packages/mnamer/frontends.py", line 80, in launch self._process_targets() File "/home/user/.local/lib/python3.10/site-packages/mnamer/frontends.py", line 91, in _process_targets self._announce_file(target) File "/home/user/.local/lib/python3.10/site-packages/mnamer/frontends.py", line 164, in _announce_file tty.msg( File "/home/user/.local/lib/python3.10/site-packages/mnamer/tty.py", line 90, in msg style_print(_msg_format(body), style=message_type.value) File "/home/user/.local/lib/python3.10/site-packages/teletype/io/common.py", line 106, in style_print print(*values, **options) UnicodeEncodeError: 'utf-8' codec can't encode character '\udcdf' in position 62: surrogates not allowed

=============================== CRASH REPORT END ===============================

Dang, it looks like mnamer crashed! Please consider filling an issue at https://github.com/jkwill87/mnamer/issues along with this report.

Merlinux-source avatar Oct 29 '22 18:10 Merlinux-source