pymedusa / Medusa

Automatic Video Library Manager for TV Shows. It watches for new episodes of your favorite shows, and when they are posted it does its magic.
https://pymedusa.com
GNU General Public License v3.0
1.8k stars 276 forks source link

[APP SUBMITTED]: UnicodeEncodeError: 'ascii' codec can't encode character u'\xf3' in position 41: ordinal not in range(128) #2984

Closed rknightion closed 6 years ago

rknightion commented 7 years ago

INFO

Python Version: 2.7.13 (default, Jan 19 2017, 14:48:08) [GCC 6.3.0 20170118] Operating System: Linux-4.10.17-1-pve-x86_64-with-Ubuntu-17.04-zesty Locale: None Branch: master Database: 44.8 Commit: pymedusa/Medusa@49e9fc38856200768d41a74139807886acefa054 Link to Log: https://gist.github.com/309038b46bf0a8b8057f3e6300dfe12f

ERROR

2017-08-07 12:38:35 ERROR    POSTPROCESSOR :: [49e9fc3] Exception generated: 'ascii' codec can't encode character u'\xf3' in position 41: ordinal not in range(128)
Traceback (most recent call last):
  File "/var/lib/sickrage/medusa/scheduler.py", line 103, in run
    self.action.run(self.force)
  File "/var/lib/sickrage/medusa/auto_post_processor.py", line 57, in run
    process_tv.ProcessResult(app.TV_DOWNLOAD_DIR, app.PROCESS_METHOD).process(force=force)
  File "/var/lib/sickrage/medusa/process_tv.py", line 162, in process
    ignore_subs=ignore_subs)
  File "/var/lib/sickrage/medusa/process_tv.py", line 328, in process_files
    self.process_media(path, video_files, force, is_priority, ignore_subs)
  File "/var/lib/sickrage/medusa/process_tv.py", line 535, in process_media
    self.result = processor.process()
  File "/var/lib/sickrage/medusa/post_processor.py", line 1208, in process
    app.MOVE_ASSOCIATED_FILES, app.USE_SUBTITLES and ep_obj.series.subtitles)
  File "/var/lib/sickrage/medusa/post_processor.py", line 499, in post_process_action
    action=action, subtitle_action=subtitle_action, subtitles=subtitles)
  File "/var/lib/sickrage/medusa/post_processor.py", line 442, in _combined_file_operation
    action(cur_associated_file, new_file_path)
  File "/var/lib/sickrage/medusa/post_processor.py", line 457, in move
    helpers.move_file(cur_file_path, new_file_path)
  File "/var/lib/sickrage/medusa/helpers/__init__.py", line 314, in move_file
    copy_file(src_file, dest_file)
  File "/var/lib/sickrage/medusa/helpers/__init__.py", line 284, in copy_file
    shutil.copyfile(src_file, dest_file)
  File "/var/lib/sickrage/lib/shutil_custom/__init__.py", line 42, in copyfile_custom
    fout = os.open(dst, WRITE_FLAGS)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xf3' in position 41: ordinal not in range(128)

STAFF NOTIFIED: @pymedusa/support @pymedusa/moderators

kroem commented 7 years ago

I can just confirm I see the same issue in my LXC inside Proxmox. ( I am however running a Debian8 OS) I've managed to set a correct locale (I think) in the LXC itself, but Python is not seeing it.

root@media:~# python -c 'import locale; print locale.getlocale()' (None, None) root@media:~# locale LANG=en_US.UTF-8 LANGUAGE=en_US.UTF-8 LC_CTYPE="en_US.UTF-8" LC_NUMERIC="en_US.UTF-8" LC_TIME="en_US.UTF-8" LC_COLLATE="en_US.UTF-8" LC_MONETARY="en_US.UTF-8" LC_MESSAGES="en_US.UTF-8" LC_PAPER="en_US.UTF-8" LC_NAME="en_US.UTF-8" LC_ADDRESS="en_US.UTF-8" LC_TELEPHONE="en_US.UTF-8" LC_MEASUREMENT="en_US.UTF-8" LC_IDENTIFICATION="en_US.UTF-8" LC_ALL=en_US.UTF-8

medariox commented 7 years ago

There doesn't seem to be much we can do about this. Python isn't able to retain the locale from LXC with Proxmox apparently. It can be either a Python or Proxmox issue. Did anyone find a workaround yet or tried to contact them about this issue?

rknightion commented 7 years ago

I'll post a message on the Proxmox forums.

But oddly enough the same doesn't happen with Sickrage hence why I logged the bug here to begin with.

Wonder if there's a way I can force the Python locale?

rknightion commented 7 years ago

Okay was able to solve it by running dpkg-reconfigure locales and telling it to build a bunch of locales and setting my default to en_GB.UTF-8 (but I guess it also built the US ones as well).

Before doing this the output of locale was: root@zion:/# locale LANG=C LANGUAGE= LC_CTYPE="C" LC_NUMERIC="C" LC_TIME="C" LC_COLLATE="C" LC_MONETARY="C" LC_MESSAGES="C" LC_PAPER="C" LC_NAME="C" LC_ADDRESS="C" LC_TELEPHONE="C" LC_MEASUREMENT="C" LC_IDENTIFICATION="C" LC_ALL=

After doing it the output was: LC_CTYPE="en_GB.UTF-8" LC_NUMERIC="en_GB.UTF-8" LC_TIME="en_GB.UTF-8" LC_COLLATE="en_GB.UTF-8" LC_MONETARY="en_GB.UTF-8" LC_MESSAGES="en_GB.UTF-8" LC_PAPER="en_GB.UTF-8" LC_NAME="en_GB.UTF-8" LC_ADDRESS="en_GB.UTF-8" LC_TELEPHONE="en_GB.UTF-8" LC_MEASUREMENT="en_GB.UTF-8" LC_IDENTIFICATION="en_GB.UTF-8" LC_ALL=

So seems to be okay now haven't seen the error since.

Thanks

Sylanorr commented 6 years ago

INFO

Python Version: 2.7.9 (default, Aug 13 2016, 17:56:53) [GCC 4.9.2] Operating System: Linux-4.9.29-10-osmc-armv7l-with-debian-8.9 Locale: None Branch: master Database: 44.8 Commit: pymedusa/Medusa@76e0401eabf7abc7392897f478c4d090a65b3e2c Link to Log: https://gist.github.com/ea976a04eaa5629c290079e2bf8aa115

ERROR

2017-11-26 10:41:52 ERROR    SHOWQUEUE-REFRESH :: [76e0401] 262980: Error while refreshing show House of Cards (US). Error: 
Traceback (most recent call last):
  File "/home/osmc/medusa/medusa/show_queue.py", line 629, in run
    self.show.refresh_dir()
  File "/home/osmc/medusa/medusa/tv/series.py", line 1746, in refresh_dir
    self.load_episodes_from_dir()
  File "/home/osmc/medusa/medusa/tv/series.py", line 928, in load_episodes_from_dir
    cur_episode = self.make_ep_from_file(os.path.join(self.location, media_file))
  File "/home/osmc/medusa/medusa/tv/series.py", line 1354, in make_ep_from_file
    filepath)
  File "/home/osmc/medusa/medusa/tv/series.py", line 1223, in should_refresh_file
    new_quality = Quality.name_quality(filepath, anime)
  File "/home/osmc/medusa/medusa/common.py", line 301, in name_quality
    return Quality._extend_quality(name)
  File "/home/osmc/medusa/medusa/common.py", line 400, in _extend_quality
    quality = Quality.quality_from_file_meta(file_path)
  File "/home/osmc/medusa/medusa/common.py", line 421, in quality_from_file_meta
    knowledge = knowit.know(file_path)
  File "/home/osmc/medusa/ext/knowit/api.py", line 49, in know
    return provider.describe(video_path, context)
  File "/home/osmc/medusa/ext/knowit/providers/enzyme.py", line 106, in describe
    with open(video_path, 'rb') as f:
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 116: ordinal not in range(128)

STAFF NOTIFIED: @pymedusa/support @pymedusa/moderators

Sylanorr commented 6 years ago

INFO

Python Version: 2.7.9 (default, Aug 13 2016, 17:56:53) [GCC 4.9.2] Operating System: Linux-4.9.29-10-osmc-armv7l-with-debian-8.9 Locale: None Branch: master Database: 44.8 Commit: pymedusa/Medusa@76e0401eabf7abc7392897f478c4d090a65b3e2c Link to Log: https://gist.github.com/7bb67846dce93af676e28e43c208f075

ERROR

2017-11-26 10:55:35 ERROR    SHOWQUEUE-ADD :: [76e0401] Error searching dir for episodes: 
Traceback (most recent call last):
  File "/home/osmc/medusa/medusa/show_queue.py", line 562, in run
    self.show.load_episodes_from_dir()
  File "/home/osmc/medusa/medusa/tv/series.py", line 928, in load_episodes_from_dir
    cur_episode = self.make_ep_from_file(os.path.join(self.location, media_file))
  File "/home/osmc/medusa/medusa/tv/series.py", line 1354, in make_ep_from_file
    filepath)
  File "/home/osmc/medusa/medusa/tv/series.py", line 1223, in should_refresh_file
    new_quality = Quality.name_quality(filepath, anime)
  File "/home/osmc/medusa/medusa/common.py", line 301, in name_quality
    return Quality._extend_quality(name)
  File "/home/osmc/medusa/medusa/common.py", line 400, in _extend_quality
    quality = Quality.quality_from_file_meta(file_path)
  File "/home/osmc/medusa/medusa/common.py", line 421, in quality_from_file_meta
    knowledge = knowit.know(file_path)
  File "/home/osmc/medusa/ext/knowit/api.py", line 49, in know
    return provider.describe(video_path, context)
  File "/home/osmc/medusa/ext/knowit/providers/enzyme.py", line 106, in describe
    with open(video_path, 'rb') as f:
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 116: ordinal not in range(128)

STAFF NOTIFIED: @pymedusa/support @pymedusa/moderators

Sylanorr commented 6 years ago

INFO

Python Version: 2.7.9 (default, Aug 13 2016, 17:56:53) [GCC 4.9.2] Operating System: Linux-4.9.29-10-osmc-armv7l-with-debian-8.9 Locale: None Branch: master Database: 44.8 Commit: pymedusa/Medusa@76e0401eabf7abc7392897f478c4d090a65b3e2c Link to Log: https://gist.github.com/0068f3c1a3fddbcda740668aebc8aad6

ERROR

2017-11-26 11:31:32 ERROR    SHOWQUEUE-REFRESH :: [76e0401] 262980: Error while refreshing show House of Cards (US). Error: 
Traceback (most recent call last):
  File "/home/osmc/medusa/medusa/show_queue.py", line 629, in run
    self.show.refresh_dir()
  File "/home/osmc/medusa/medusa/tv/series.py", line 1746, in refresh_dir
    self.load_episodes_from_dir()
  File "/home/osmc/medusa/medusa/tv/series.py", line 928, in load_episodes_from_dir
    cur_episode = self.make_ep_from_file(os.path.join(self.location, media_file))
  File "/home/osmc/medusa/medusa/tv/series.py", line 1354, in make_ep_from_file
    filepath)
  File "/home/osmc/medusa/medusa/tv/series.py", line 1223, in should_refresh_file
    new_quality = Quality.name_quality(filepath, anime)
  File "/home/osmc/medusa/medusa/common.py", line 301, in name_quality
    return Quality._extend_quality(name)
  File "/home/osmc/medusa/medusa/common.py", line 400, in _extend_quality
    quality = Quality.quality_from_file_meta(file_path)
  File "/home/osmc/medusa/medusa/common.py", line 421, in quality_from_file_meta
    knowledge = knowit.know(file_path)
  File "/home/osmc/medusa/ext/knowit/api.py", line 49, in know
    return provider.describe(video_path, context)
  File "/home/osmc/medusa/ext/knowit/providers/enzyme.py", line 106, in describe
    with open(video_path, 'rb') as f:
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 116: ordinal not in range(128)

STAFF NOTIFIED: @pymedusa/support @pymedusa/moderators

p0psicles commented 6 years ago

@ratoaq2?

Sylanorr commented 6 years ago

INFO

Python Version: 2.7.9 (default, Aug 13 2016, 17:56:53) [GCC 4.9.2] Operating System: Linux-4.9.29-10-osmc-armv7l-with-debian-8.9 Locale: None Branch: master Database: 44.8 Commit: pymedusa/Medusa@76e0401eabf7abc7392897f478c4d090a65b3e2c Link to Log: https://gist.github.com/047bc884cc28889aaf085236b760d842

ERROR

2017-11-26 15:20:28 ERROR    SHOWQUEUE-ADD :: [76e0401] Error searching dir for episodes: 
Traceback (most recent call last):
  File "/home/**********/medusa/medusa/show_queue.py", line 562, in run
    self.show.load_episodes_from_dir()
  File "/home/**********/medusa/medusa/tv/series.py", line 928, in load_episodes_from_dir
    cur_episode = self.make_ep_from_file(os.path.join(self.location, media_file))
  File "/home/**********/medusa/medusa/tv/series.py", line 1354, in make_ep_from_file
    filepath)
  File "/home/**********/medusa/medusa/tv/series.py", line 1223, in should_refresh_file
    new_quality = Quality.name_quality(filepath, anime)
  File "/home/**********/medusa/medusa/common.py", line 301, in name_quality
    return Quality._extend_quality(name)
  File "/home/**********/medusa/medusa/common.py", line 400, in _extend_quality
    quality = Quality.quality_from_file_meta(file_path)
  File "/home/**********/medusa/medusa/common.py", line 421, in quality_from_file_meta
    knowledge = knowit.know(file_path)
  File "/home/**********/medusa/ext/knowit/api.py", line 49, in know
    return provider.describe(video_path, context)
  File "/home/**********/medusa/ext/knowit/providers/enzyme.py", line 106, in describe
    with open(video_path, 'rb') as f:
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 116: ordinal not in range(128)

STAFF NOTIFIED: @pymedusa/support @pymedusa/moderators

Sylanorr commented 6 years ago

INFO

Python Version: 2.7.9 (default, Aug 13 2016, 17:56:53) [GCC 4.9.2] Operating System: Linux-4.9.29-10-osmc-armv7l-with-debian-8.9 Locale: None Branch: master Database: 44.8 Commit: pymedusa/Medusa@1a8dc66c7ec9231be0d3444710e476437c9ae1c8 Link to Log: https://gist.github.com/49beb84e1afcc8d9851738d7f8d189da

ERROR

2017-12-09 09:54:26 ERROR    POSTPROCESSOR :: [1a8dc66] Exception generated: 'ascii' codec can't encode character u'\xe9' in position 129: ordinal not in range(128)
Traceback (most recent call last):
  File "/home/**********/medusa/medusa/scheduler.py", line 90, in run
    self.action.run(self.force)
  File "/home/**********/medusa/medusa/auto_post_processor.py", line 57, in run
    process_tv.ProcessResult(app.TV_DOWNLOAD_DIR, app.PROCESS_METHOD).process(force=force)
  File "/home/**********/medusa/medusa/process_tv.py", line 146, in process
    ignore_subs=ignore_subs)
  File "/home/**********/medusa/medusa/process_tv.py", line 335, in process_files
    self.process_media(path, self.video_files, force, is_priority, ignore_subs)
  File "/home/**********/medusa/medusa/process_tv.py", line 536, in process_media
    self.result = processor.process()
  File "/home/**********/medusa/medusa/post_processor.py", line 1202, in process
    app.MOVE_ASSOCIATED_FILES, app.USE_SUBTITLES and ep_obj.series.subtitles)
  File "/home/**********/medusa/medusa/post_processor.py", line 491, in post_process_action
    action=action, subtitle_action=subtitle_action, subtitles=subtitles)
  File "/home/**********/medusa/medusa/post_processor.py", line 434, in _combined_file_operation
    action(cur_associated_file, new_file_path)
  File "/home/**********/medusa/medusa/post_processor.py", line 459, in copy
    helpers.copy_file(cur_file_path, new_file_path)
  File "/home/**********/medusa/medusa/helpers/__init__.py", line 285, in copy_file
    shutil.copyfile(src_file, dest_file)
  File "/home/**********/medusa/lib/shutil_custom/__init__.py", line 42, in copyfile_custom
    fout = os.open(dst, WRITE_FLAGS)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 129: ordinal not in range(128)

STAFF NOTIFIED: @pymedusa/support @pymedusa/moderators

bidorffOL commented 6 years ago

INFO

Python Version: 2.7.12 (default, Oct 30 2017, 04:52:21) [GCC 4.9.4 20150629 (prerelease)] Operating System: Linux-4.4.15+-aarch64-with-glibc2.17 Locale: None Branch: master Database: 44.8 Commit: pymedusa/Medusa@1a8dc66c7ec9231be0d3444710e476437c9ae1c8 Link to Log: https://gist.github.com/ea6ffc24ecfcfd39d206e0218e2efd18

ERROR

2017-12-12 19:19:25 ERROR    SHOWQUEUE-REFRESH :: [1a8dc66] 251562: Error while refreshing show Bref.. Error: 
Traceback (most recent call last):
  File "/volume1/@appstore/sickbeard-custom/var/SickBeard/medusa/show_queue.py", line 629, in run
    self.show.refresh_dir()
  File "/volume1/@appstore/sickbeard-custom/var/SickBeard/medusa/tv/series.py", line 1746, in refresh_dir
    self.load_episodes_from_dir()
  File "/volume1/@appstore/sickbeard-custom/var/SickBeard/medusa/tv/series.py", line 928, in load_episodes_from_dir
    cur_episode = self.make_ep_from_file(os.path.join(self.location, media_file))
  File "/volume1/@appstore/sickbeard-custom/var/SickBeard/medusa/tv/series.py", line 1354, in make_ep_from_file
    filepath)
  File "/volume1/@appstore/sickbeard-custom/var/SickBeard/medusa/tv/series.py", line 1223, in should_refresh_file
    new_quality = Quality.name_quality(filepath, anime)
  File "/volume1/@appstore/sickbeard-custom/var/SickBeard/medusa/common.py", line 301, in name_quality
    return Quality._extend_quality(name)
  File "/volume1/@appstore/sickbeard-custom/var/SickBeard/medusa/common.py", line 400, in _extend_quality
    quality = Quality.quality_from_file_meta(file_path)
  File "/volume1/@appstore/sickbeard-custom/var/SickBeard/medusa/common.py", line 421, in quality_from_file_meta
    knowledge = knowit.know(file_path)
  File "/volume1/@appstore/sickbeard-custom/var/SickBeard/ext/knowit/api.py", line 49, in know
    return provider.describe(video_path, context)
  File "/volume1/@appstore/sickbeard-custom/var/SickBeard/ext/knowit/providers/enzyme.py", line 106, in describe
    with open(video_path, 'rb') as f:
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe0' in position 87: ordinal not in range(128)

STAFF NOTIFIED: @pymedusa/support @pymedusa/moderators

Sylanorr commented 6 years ago

INFO

Python Version: 2.7.9 (default, Aug 13 2016, 17:56:53) [GCC 4.9.2] **Operating System**:Linux-4.9.29-10-osmc-armv7l-with-debian-8.9 **Locale**:None **Branch**: [master](../tree/master) **Database**:44.8` Commit: pymedusa/Medusa@1a8dc66c7ec9231be0d3444710e476437c9ae1c8 Link to Log: https://gist.github.com/42053694094c12acd360608a3cd529c5

ERROR

2017-12-13 20:11:46 ERROR    Thread-19 :: [1a8dc66] Exception generated: 'ascii' codec can't encode character u'\xea' in position 106: ordinal not in range(128)
Traceback (most recent call last):
  File "/home/**********/medusa/medusa/server/web/core/base.py", line 263, in async_call
    result = function(**kwargs)
  File "/home/**********/medusa/medusa/server/web/home/post_process.py", line 50, in processEpisode
    ignore_subs=argToBool(ignore_subs)
  File "/home/**********/medusa/medusa/process_tv.py", line 146, in process
    ignore_subs=ignore_subs)
  File "/home/**********/medusa/medusa/process_tv.py", line 335, in process_files
    self.process_media(path, self.video_files, force, is_priority, ignore_subs)
  File "/home/**********/medusa/medusa/process_tv.py", line 536, in process_media
    self.result = processor.process()
  File "/home/**********/medusa/medusa/post_processor.py", line 1202, in process
    app.MOVE_ASSOCIATED_FILES, app.USE_SUBTITLES and ep_obj.series.subtitles)
  File "/home/**********/medusa/medusa/post_processor.py", line 491, in post_process_action
    action=action, subtitle_action=subtitle_action, subtitles=subtitles)
  File "/home/**********/medusa/medusa/post_processor.py", line 434, in _combined_file_operation
    action(cur_associated_file, new_file_path)
  File "/home/**********/medusa/medusa/post_processor.py", line 459, in copy
    helpers.copy_file(cur_file_path, new_file_path)
  File "/home/**********/medusa/medusa/helpers/__init__.py", line 285, in copy_file
    shutil.copyfile(src_file, dest_file)
  File "/home/**********/medusa/lib/shutil_custom/__init__.py", line 42, in copyfile_custom
    fout = os.open(dst, WRITE_FLAGS)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xea' in position 106: ordinal not in range(128)

STAFF NOTIFIED: @pymedusa/support @pymedusa/moderators

Sylanorr commented 6 years ago

Think it was ok after force updating the show but still not possible to post Process. This errors appears. Please help

pliego86 commented 6 years ago

INFO

Python Version: 2.7.14 (default, Dec 10 2017, 01:12:26) [GCC 4.2.1 Compatible FreeBSD Clang 3.4.1 (tags/RELEASE_34/dot1-final 208032)] Operating System: FreeBSD-10.3-RELEASE-amd64-64bit-ELF Locale: None Branch: master Database: 44.8 Commit: pymedusa/Medusa@1a8dc66c7ec9231be0d3444710e476437c9ae1c8 Link to Log: https://gist.github.com/cbe5e14843c9db84b97933b90fa995c9

ERROR

2017-12-14 14:55:30 ERROR    Thread-17 :: [1a8dc66] Exception generated: 'ascii' codec can't encode character u'\xf3' in position 95: ordinal not in range(128)
Traceback (most recent call last):
  File "/usr/local/medusa/medusa/server/web/core/base.py", line 263, in async_call
    result = function(**kwargs)
  File "/usr/local/medusa/medusa/server/web/home/handler.py", line 2133, in doRename
    root_ep_obj.rename()
  File "/usr/local/medusa/medusa/tv/episode.py", line 1800, in rename
    self.location, subfolders=True)
  File "/usr/local/medusa/medusa/post_processor.py", line 190, in list_associated_files
    processed_names += filter(None, (self._rar_basename(file_path, files),))
  File "/usr/local/medusa/medusa/post_processor.py", line 300, in _rar_basename
    for rar in rars:
  File "/usr/local/medusa/medusa/post_processor.py", line 298, in 
    rars = (x for x in files if rarfile.is_rarfile(x))
  File "/usr/local/medusa/ext/rarfile.py", line 404, in is_rarfile
    return _get_rar_version(xfile) > 0
  File "/usr/local/medusa/ext/rarfile.py", line 389, in _get_rar_version
    with XFile(xfile) as fd:
  File "/usr/local/medusa/ext/rarfile.py", line 2401, in __init__
    self._fd = open(xfile, 'rb', bufsize)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xf3' in position 95: ordinal not in range(128)

STAFF NOTIFIED: @pymedusa/support @pymedusa/moderators

Sylanorr commented 6 years ago

INFO

Python Version: 2.7.9 (default, Aug 13 2016, 17:56:53) [GCC 4.9.2] Operating System: Linux-4.9.29-10-osmc-armv7l-with-debian-8.9 Locale: None Branch: master Database: 44.8 Commit: pymedusa/Medusa@1a8dc66c7ec9231be0d3444710e476437c9ae1c8 Link to Log: https://gist.github.com/23fb2ec4d40cbc464ca90327461eaac0

ERROR

2017-12-16 05:23:05 ERROR    Thread-17 :: [1a8dc66] Exception generated: 'ascii' codec can't encode character u'\xe9' in position 74: ordinal not in range(128)
Traceback (most recent call last):
  File "/home/**********/medusa/medusa/server/web/core/base.py", line 263, in async_call
    result = function(**kwargs)
  File "/home/**********/medusa/medusa/server/web/home/post_process.py", line 50, in processEpisode
    ignore_subs=argToBool(ignore_subs)
  File "/home/**********/medusa/medusa/process_tv.py", line 146, in process
    ignore_subs=ignore_subs)
  File "/home/**********/medusa/medusa/process_tv.py", line 335, in process_files
    self.process_media(path, self.video_files, force, is_priority, ignore_subs)
  File "/home/**********/medusa/medusa/process_tv.py", line 536, in process_media
    self.result = processor.process()
  File "/home/**********/medusa/medusa/post_processor.py", line 1202, in process
    app.MOVE_ASSOCIATED_FILES, app.USE_SUBTITLES and ep_obj.series.subtitles)
  File "/home/**********/medusa/medusa/post_processor.py", line 491, in post_process_action
    action=action, subtitle_action=subtitle_action, subtitles=subtitles)
  File "/home/**********/medusa/medusa/post_processor.py", line 434, in _combined_file_operation
    action(cur_associated_file, new_file_path)
  File "/home/**********/medusa/medusa/post_processor.py", line 459, in copy
    helpers.copy_file(cur_file_path, new_file_path)
  File "/home/**********/medusa/medusa/helpers/__init__.py", line 285, in copy_file
    shutil.copyfile(src_file, dest_file)
  File "/home/**********/medusa/lib/shutil_custom/__init__.py", line 42, in copyfile_custom
    fout = os.open(dst, WRITE_FLAGS)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 74: ordinal not in range(128)

STAFF NOTIFIED: @pymedusa/support @pymedusa/moderators

Sylanorr commented 6 years ago

Okay, I found the solution

1) sudo dpkg-reconfigure locales 2) I selected my UTF-8 Profile 3) sudo apt-get update && sudo apt-get install console-setup 4) sudo reboot

It solved my post-processing error.

rknightion commented 6 years ago

@Sylanorr was that fix applied to a Proxmox hosted LXC container? If so; what container template?

I ask as the original issue I logged was due to incorrect locale configured when running as a Proxmox LXC container and I never did find a workaround for it so if you're running a similar setup I'll be able to recreate my environment and give it another go (in the end I had to switch to a completely different fork which was a great shame as I really wanted to run Pymedusa but needed it to run inside a Proxmox container)

mb9023 commented 6 years ago

I've tried the above solutions but my fresh Medusa install is unable to do Post Processing on files with accents or tick marks. It also is marking episodes 'Skipped' that were all processed by sickrage previously and that I manually added as existing shows into Medusa. For example my Dragon Ball Super folder has 10+ 'Skipped' episodes that are clearly there.

INFO

Python Version: 2.7.12 (default, Nov 20 2017, 18:23:56) [GCC 5.4.0 20160609] Operating System: Linux-3.13.0-92-generic-x86_64-with-Ubuntu-16.04-xenial Locale: None Branch: master Database: 44.8 Commit: pymedusa/Medusa@1a8dc66c7ec9231be0d3444710e476437c9ae1c8 Link to Log: https://gist.github.com/48da99b395126f8026085fd551164113

ERROR

2017-12-19 17:30:37 ERROR    Thread-16 :: [1a8dc66] Exception generated: 'ascii' codec can't encode character u'\xe1' in position 92: ordinal not in range(128)
Traceback (most recent call last):
  File "/opt/medusa/medusa/server/web/core/base.py", line 263, in async_call
    result = function(**kwargs)
  File "/opt/medusa/medusa/server/web/home/post_process.py", line 50, in processEpisode
    ignore_subs=argToBool(ignore_subs)
  File "/opt/medusa/medusa/process_tv.py", line 146, in process
    ignore_subs=ignore_subs)
  File "/opt/medusa/medusa/process_tv.py", line 335, in process_files
    self.process_media(path, self.video_files, force, is_priority, ignore_subs)
  File "/opt/medusa/medusa/process_tv.py", line 536, in process_media
    self.result = processor.process()
  File "/opt/medusa/medusa/post_processor.py", line 1202, in process
    app.MOVE_ASSOCIATED_FILES, app.USE_SUBTITLES and ep_obj.series.subtitles)
  File "/opt/medusa/medusa/post_processor.py", line 491, in post_process_action
    action=action, subtitle_action=subtitle_action, subtitles=subtitles)
  File "/opt/medusa/medusa/post_processor.py", line 434, in _combined_file_operation
    action(cur_associated_file, new_file_path)
  File "/opt/medusa/medusa/post_processor.py", line 459, in copy
    helpers.copy_file(cur_file_path, new_file_path)
  File "/opt/medusa/medusa/helpers/__init__.py", line 285, in copy_file
    shutil.copyfile(src_file, dest_file)
  File "/opt/medusa/lib/shutil_custom/__init__.py", line 42, in copyfile_custom
    fout = os.open(dst, WRITE_FLAGS)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe1' in position 92: ordinal not in range(128)

STAFF NOTIFIED: @pymedusa/support @pymedusa/moderators

labrys commented 6 years ago

@mb9023 The reason SickRage works for you is it forces an encoding which worked for you but breaks for others. We're taking a different approach to try to fix it for everyone. Unfortunately the side effect of that is that it takes more effort to find a solution that works for everyone.

mb9023 commented 6 years ago

@labrys I actually just tried upgrading my distro so now I'm on Ubuntu Bionic Beaver 4.13.0 and I was able to Process the episode I previously couldn't. It seems to be picking up my existing episodes as well!

labrys commented 6 years ago

Awesome 👍

RmG152 commented 6 years ago

INFO

Python Version: 2.7.15 (default, May 13 2018, 01:10:00) [GCC 4.2.1 Compatible FreeBSD Clang 4.0.0 (tags/RELEASE_400/final 297347)] Operating System: FreeBSD-11.1-STABLE-amd64-64bit-ELF Locale: None Branch: master Database: 44.11 Commit: pymedusa/Medusa@c65ca2607fae74405dcceaaf8c02f3d29d0313ea Link to Log: https://gist.github.com/5e68ee1b549104c7e958219ed1680aa1

ERROR

2018-06-25 22:02:28 ERROR    POSTPROCESSOR :: [c65ca26] Exception generated: 'ascii' codec can't encode character u'\xf1' in position 87: ordinal not in range(128)
Traceback (most recent call last):
  File "/usr/local/medusa/medusa/scheduler.py", line 93, in run
    self.action.run(self.force)
  File "/usr/local/medusa/medusa/auto_post_processor.py", line 58, in run
    process_tv.ProcessResult(app.TV_DOWNLOAD_DIR, app.PROCESS_METHOD).process(force=force)
  File "/usr/local/medusa/medusa/process_tv.py", line 149, in process
    ignore_subs=ignore_subs)
  File "/usr/local/medusa/medusa/process_tv.py", line 337, in process_files
    self.process_media(path, self.video_files, force, is_priority, ignore_subs)
  File "/usr/local/medusa/medusa/process_tv.py", line 538, in process_media
    self.result = processor.process()
  File "/usr/local/medusa/medusa/post_processor.py", line 1223, in process
    app.MOVE_ASSOCIATED_FILES, app.USE_SUBTITLES and ep_obj.series.subtitles)
  File "/usr/local/medusa/medusa/post_processor.py", line 508, in post_process_action
    action=action, subtitle_action=subtitle_action, subtitles=subtitles)
  File "/usr/local/medusa/medusa/post_processor.py", line 433, in _combined_file_operation
    file_list += self.list_associated_files(file_path, refine=True)
  File "/usr/local/medusa/medusa/post_processor.py", line 208, in list_associated_files
    processed_names += tuple((_f for _f in (self._rar_basename(file_path, files),) if _f))
  File "/usr/local/medusa/medusa/post_processor.py", line 320, in _rar_basename
    content = rarfile.RarFile(rar).namelist()
  File "/usr/local/medusa/ext/rarfile.py", line 666, in __init__
    self._parse()
  File "/usr/local/medusa/ext/rarfile.py", line 846, in _parse
    ver = _get_rar_version(self._rarfile)
  File "/usr/local/medusa/ext/rarfile.py", line 389, in _get_rar_version
    with XFile(xfile) as fd:
  File "/usr/local/medusa/ext/rarfile.py", line 2401, in __init__
    self._fd = open(xfile, 'rb', bufsize)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xf1' in position 87: ordinal not in range(128)

STAFF NOTIFIED: @pymedusa/support @pymedusa/moderators

chiefspecialk commented 6 years ago

INFO

Python Version: 2.7.15 (default, Jun 23 2018, 01:17:54) [GCC 4.2.1 Compatible FreeBSD Clang 4.0.0 (tags/RELEASE_400/final 297347)] Operating System: FreeBSD-11.0-RELEASE-amd64-64bit-ELF Locale: None Branch: master Database: 44.11 Commit: pymedusa/Medusa@e7c4ff3bc9a48b47c932b0e40a539d62e3a62f64 Link to Log: https://gist.github.com/3e7449ca461817095835c5e691f77e06

ERROR

2018-07-06 02:37:27 ERROR    SHOWQUEUE-REFRESH :: [e7c4ff3] 79349: Error while refreshing show Dexter. Error: 'ascii' codec can't encode character u'\xed' in position 54: ordinal not in range(128)
Traceback (most recent call last):
  File "/usr/local/medusa/medusa/show_queue.py", line 686, in run
    self.show.refresh_dir()
  File "/usr/local/medusa/medusa/tv/series.py", line 1720, in refresh_dir
    self.load_episodes_from_dir()
  File "/usr/local/medusa/medusa/tv/series.py", line 987, in load_episodes_from_dir
    cur_episode = self.make_ep_from_file(os.path.join(self.location, media_file))
  File "/usr/local/medusa/medusa/tv/series.py", line 1331, in make_ep_from_file
    cur_ep.update_status_quality(filepath)
  File "/usr/local/medusa/medusa/tv/episode.py", line 1996, in update_status_quality
    new_quality = Quality.name_quality(filepath, self.series.is_anime)
  File "/usr/local/medusa/medusa/common.py", line 280, in name_quality
    return Quality._extend_quality(name)
  File "/usr/local/medusa/medusa/common.py", line 379, in _extend_quality
    quality = Quality.quality_from_file_meta(file_path)
  File "/usr/local/medusa/medusa/common.py", line 400, in quality_from_file_meta
    knowledge = knowit.know(file_path)
  File "/usr/local/medusa/ext/knowit/api.py", line 49, in know
    return provider.describe(video_path, context)
  File "/usr/local/medusa/ext/knowit/providers/enzyme.py", line 106, in describe
    with open(video_path, 'rb') as f:
UnicodeEncodeError: 'ascii' codec can't encode character u'\xed' in position 54: ordinal not in range(128)

STAFF NOTIFIED: @pymedusa/support @pymedusa/moderators

chiefspecialk commented 6 years ago

INFO

Python Version: 2.7.15 (default, Jun 23 2018, 01:17:54) [GCC 4.2.1 Compatible FreeBSD Clang 4.0.0 (tags/RELEASE_400/final 297347)] Operating System: FreeBSD-11.0-RELEASE-amd64-64bit-ELF Locale: None Branch: master Database: 44.11 Commit: pymedusa/Medusa@e7c4ff3bc9a48b47c932b0e40a539d62e3a62f64 Link to Log: https://gist.github.com/4113982a7c337ae0dd2c9adaa268a9cb

ERROR

2018-07-06 02:41:19 ERROR    SHOWQUEUE-REFRESH :: [e7c4ff3] 260338: Error while refreshing show Graceland. Error: 'ascii' codec can't encode character u'\xf1' in position 61: ordinal not in range(128)
Traceback (most recent call last):
  File "/usr/local/medusa/medusa/show_queue.py", line 686, in run
    self.show.refresh_dir()
  File "/usr/local/medusa/medusa/tv/series.py", line 1720, in refresh_dir
    self.load_episodes_from_dir()
  File "/usr/local/medusa/medusa/tv/series.py", line 987, in load_episodes_from_dir
    cur_episode = self.make_ep_from_file(os.path.join(self.location, media_file))
  File "/usr/local/medusa/medusa/tv/series.py", line 1331, in make_ep_from_file
    cur_ep.update_status_quality(filepath)
  File "/usr/local/medusa/medusa/tv/episode.py", line 1996, in update_status_quality
    new_quality = Quality.name_quality(filepath, self.series.is_anime)
  File "/usr/local/medusa/medusa/common.py", line 280, in name_quality
    return Quality._extend_quality(name)
  File "/usr/local/medusa/medusa/common.py", line 379, in _extend_quality
    quality = Quality.quality_from_file_meta(file_path)
  File "/usr/local/medusa/medusa/common.py", line 400, in quality_from_file_meta
    knowledge = knowit.know(file_path)
  File "/usr/local/medusa/ext/knowit/api.py", line 49, in know
    return provider.describe(video_path, context)
  File "/usr/local/medusa/ext/knowit/providers/enzyme.py", line 106, in describe
    with open(video_path, 'rb') as f:
UnicodeEncodeError: 'ascii' codec can't encode character u'\xf1' in position 61: ordinal not in range(128)

STAFF NOTIFIED: @pymedusa/support @pymedusa/moderators

Sarcas666 commented 5 years ago

INFO

Python Version: 2.7.10 (default, Aug 17 2018, 17:41:52) [GCC 4.2.1 Compatible Apple LLVM 10.0.0 (clang-1000.0.42)] Operating System: Darwin-18.2.0-x86_64-i386-64bit Locale: None Branch: master Database: 44.12 Commit: pymedusa/Medusa@54da0c77d705a23f1ce67945ba4af3e1b978dcfc Link to Log: https://gist.github.com/d003130a9f07034647d67227f3932111

ERROR

2018-11-27 17:35:13 ERROR    Thread_8 :: [54da0c7] Exception generated: 'ascii' codec can't encode character u'\u2022' in position 25: ordinal not in range(128)
Traceback (most recent call last):
  File "/Applications/Medusa/medusa/server/web/core/base.py", line 258, in async_call
    result = function(**kwargs)
  File "/Applications/Medusa/medusa/server/web/home/handler.py", line 663, in status
    root_dir[subject] = helpers.get_disk_space_usage(subject)
  File "/Applications/Medusa/medusa/helpers/__init__.py", line 1451, in get_disk_space_usage
    st = os.statvfs(disk_path)
  File "/Applications/Medusa/medusa/init/filesystem.py", line 112, in patched_output
    return handle_output(f(*args, **kwargs))
UnicodeEncodeError: 'ascii' codec can't encode character u'\u2022' in position 25: ordinal not in range(128)

STAFF NOTIFIED: @pymedusa/support @pymedusa/moderators

neojoe666 commented 5 years ago

INFO

Python Version: 2.7.14 (default, May 28 2018, 15:05:16) [GCC 4.6.4] Operating System: Linux-3.2.40-armv7l-with-glibc2.4 Locale: None Branch: master Database: 44.12 Commit: pymedusa/Medusa@918cfe7ce01808499585ffe6c1356fd5ed369f76 Link to Log: No Log available

ERROR

2018-12-29 15:38:25 ERROR    Thread_1 :: [918cfe7] Exception generated: 'ascii' codec can't encode character u'\xe9' in position 16: ordinal not in range(128)
Traceback (most recent call last):
  File "/volume1/@appstore/sickbeard-custom/var/SickBeard/medusa/server/web/core/base.py", line 258, in async_call
    result = function(**kwargs)
  File "/volume1/@appstore/sickbeard-custom/var/SickBeard/medusa/server/web/home/handler.py", line 663, in status
    root_dir[subject] = helpers.get_disk_space_usage(subject)
  File "/volume1/@appstore/sickbeard-custom/var/SickBeard/medusa/helpers/__init__.py", line 1451, in get_disk_space_usage
    st = os.statvfs(disk_path)
  File "/volume1/@appstore/sickbeard-custom/var/SickBeard/medusa/init/filesystem.py", line 112, in patched_output
    return handle_output(f(*args, **kwargs))
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 16: ordinal not in range(128)

STAFF NOTIFIED: @pymedusa/support @pymedusa/moderators

neojoe666 commented 5 years ago

INFO

Python Version: 2.7.14 (default, May 28 2018, 15:05:16) [GCC 4.6.4] Operating System: Linux-3.2.40-armv7l-with-glibc2.4 Locale: None Branch: master Database: 44.12 Commit: pymedusa/Medusa@918cfe7ce01808499585ffe6c1356fd5ed369f76 Link to Log: No Log available

ERROR

2018-12-29 15:52:59 ERROR    Thread_0 :: [918cfe7] Exception generated: 'ascii' codec can't encode character u'\xe9' in position 16: ordinal not in range(128)
Traceback (most recent call last):
  File "/volume1/@appstore/sickbeard-custom/var/SickBeard/medusa/server/web/core/base.py", line 258, in async_call
    result = function(**kwargs)
  File "/volume1/@appstore/sickbeard-custom/var/SickBeard/medusa/server/web/home/handler.py", line 663, in status
    root_dir[subject] = helpers.get_disk_space_usage(subject)
  File "/volume1/@appstore/sickbeard-custom/var/SickBeard/medusa/helpers/__init__.py", line 1451, in get_disk_space_usage
    st = os.statvfs(disk_path)
  File "/volume1/@appstore/sickbeard-custom/var/SickBeard/medusa/init/filesystem.py", line 112, in patched_output
    return handle_output(f(*args, **kwargs))
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 16: ordinal not in range(128)

STAFF NOTIFIED: @pymedusa/support @pymedusa/moderators

neojoe666 commented 5 years ago

INFO

Python Version: 2.7.14 (default, May 28 2018, 15:05:16) [GCC 4.6.4] Operating System: Linux-3.2.40-armv7l-with-glibc2.4 Locale: None Branch: master Database: 44.12 Commit: pymedusa/Medusa@918cfe7ce01808499585ffe6c1356fd5ed369f76 Link to Log: No Log available

ERROR

2019-01-08 15:00:36 ERROR    Thread_3 :: [918cfe7] Exception generated: 'ascii' codec can't encode character u'\xe9' in position 16: ordinal not in range(128)
Traceback (most recent call last):
  File "/volume1/@appstore/sickbeard-custom/var/SickBeard/medusa/server/web/core/base.py", line 258, in async_call
    result = function(**kwargs)
  File "/volume1/@appstore/sickbeard-custom/var/SickBeard/medusa/server/web/home/handler.py", line 663, in status
    root_dir[subject] = helpers.get_disk_space_usage(subject)
  File "/volume1/@appstore/sickbeard-custom/var/SickBeard/medusa/helpers/__init__.py", line 1451, in get_disk_space_usage
    st = os.statvfs(disk_path)
  File "/volume1/@appstore/sickbeard-custom/var/SickBeard/medusa/init/filesystem.py", line 112, in patched_output
    return handle_output(f(*args, **kwargs))
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 16: ordinal not in range(128)

STAFF NOTIFIED: @pymedusa/support @pymedusa/moderators

IanKBrown commented 5 years ago

INFO

Python Version: 2.7.10 (default, Aug 19 2015, 09:18:54) [GCC 4.6.3] Operating System: Linux-4.4.24-x86_64-with-glibc2.2.5 Locale: None Branch: master Database: 44.12 Commit: pymedusa/Medusa@918cfe7ce01808499585ffe6c1356fd5ed369f76 Link to Log: https://gist.github.com/14ad0660b05648f8c8d50c73ad347c88

ERROR

2019-02-20 06:32:35 ERROR    Thread_7 :: [918cfe7] Exception generated: 'ascii' codec can't encode character u'\u0245' in position 122: ordinal not in range(128)
Traceback (most recent call last):
  File "/volume1/.@plugins/AppCentral/sickbeard-tvrage/SickBeard-TVRage/medusa/server/web/core/base.py", line 258, in async_call
    result = function(**kwargs)
  File "/volume1/.@plugins/AppCentral/sickbeard-tvrage/SickBeard-TVRage/medusa/server/web/home/post_process.py", line 55, in processEpisode
    ignore_subs=argToBool(ignore_subs)
  File "/volume1/.@plugins/AppCentral/sickbeard-tvrage/SickBeard-TVRage/medusa/process_tv.py", line 126, in process
    if not self.should_process(path, failed):
  File "/volume1/.@plugins/AppCentral/sickbeard-tvrage/SickBeard-TVRage/medusa/process_tv.py", line 205, in should_process
    if not self._is_valid_folder(path, failed):
  File "/volume1/.@plugins/AppCentral/sickbeard-tvrage/SickBeard-TVRage/medusa/process_tv.py", line 241, in _is_valid_folder
    self.process_failed(path)
  File "/volume1/.@plugins/AppCentral/sickbeard-tvrage/SickBeard-TVRage/medusa/process_tv.py", line 619, in process_failed
    if self.delete_folder(path, check_empty=False):
  File "/volume1/.@plugins/AppCentral/sickbeard-tvrage/SickBeard-TVRage/medusa/process_tv.py", line 372, in delete_folder
    shutil.rmtree(folder)
  File "/volume1/.@plugins/AppCentral/sickbeard-tvrage/SickBeard-TVRage/medusa/init/filesystem.py", line 112, in patched_output
    return handle_output(f(*args, **kwargs))
  File "/volume1/.@plugins/AppCentral/sickbeard-tvrage/SickBeard-TVRage/medusa/init/filesystem.py", line 102, in patched_input
    return f(*[handle_arg(arg) for arg in args], **{k: handle_arg(arg) for k, arg in viewitems(kwargs)})
  File "/usr/local/AppCentral/python/lib/python2.7/shutil.py", line 247, in rmtree
    rmtree(fullname, ignore_errors, onerror)
  File "/volume1/.@plugins/AppCentral/sickbeard-tvrage/SickBeard-TVRage/medusa/init/filesystem.py", line 112, in patched_output
    return handle_output(f(*args, **kwargs))
  File "/volume1/.@plugins/AppCentral/sickbeard-tvrage/SickBeard-TVRage/medusa/init/filesystem.py", line 102, in patched_input
    return f(*[handle_arg(arg) for arg in args], **{k: handle_arg(arg) for k, arg in viewitems(kwargs)})
  File "/usr/local/AppCentral/python/lib/python2.7/shutil.py", line 243, in rmtree
    mode = os.lstat(fullname).st_mode
UnicodeEncodeError: 'ascii' codec can't encode character u'\u0245' in position 122: ordinal not in range(128)

STAFF NOTIFIED: @pymedusa/support @pymedusa/moderators

Bri2785 commented 5 years ago

INFO

Python Version: 2.7.15 (default, Feb 7 2019, 01:14:07) [GCC 4.2.1 Compatible FreeBSD Clang 6.0.0 (tags/RELEASE_600/final 326565)] Operating System: FreeBSD-11.0-RELEASE-amd64-64bit-ELF Locale: None Branch: master Database: 44.12 Commit: pymedusa/Medusa@918cfe7ce01808499585ffe6c1356fd5ed369f76 Link to Log: https://gist.github.com/17e72be6d2fc8538f4b1a47ace8baae0

ERROR

2019-03-08 12:15:22 ERROR    SHOWQUEUE-REFRESH :: [918cfe7] 311945: Error while refreshing show Bull (2016). Error: 'ascii' codec can't encode character u'\u2019' in position 64: ordinal not in range(128)
Traceback (most recent call last):
  File "/usr/local/medusa/medusa/show_queue.py", line 688, in run
    self.show.refresh_dir()
  File "/usr/local/medusa/medusa/tv/series.py", line 1741, in refresh_dir
    self.load_episodes_from_dir()
  File "/usr/local/medusa/medusa/tv/series.py", line 1006, in load_episodes_from_dir
    cur_episode = self.make_ep_from_file(os.path.join(self.location, media_file))
  File "/usr/local/medusa/medusa/tv/series.py", line 1350, in make_ep_from_file
    cur_ep.update_status_quality(filepath)
  File "/usr/local/medusa/medusa/tv/episode.py", line 2023, in update_status_quality
    new_quality = Quality.name_quality(filepath, self.series.is_anime)
  File "/usr/local/medusa/medusa/common.py", line 283, in name_quality
    return Quality._extend_quality(name)
  File "/usr/local/medusa/medusa/common.py", line 382, in _extend_quality
    quality = Quality.quality_from_file_meta(file_path)
  File "/usr/local/medusa/medusa/common.py", line 403, in quality_from_file_meta
    knowledge = knowit.know(file_path)
  File "/usr/local/medusa/ext/knowit/api.py", line 49, in know
    return provider.describe(video_path, context)
  File "/usr/local/medusa/ext/knowit/providers/enzyme.py", line 106, in describe
    with open(video_path, 'rb') as f:
UnicodeEncodeError: 'ascii' codec can't encode character u'\u2019' in position 64: ordinal not in range(128)

STAFF NOTIFIED: @pymedusa/support @pymedusa/moderators

pucelano7 commented 5 years ago

INFO

Python Version: 2.7.15rc1 (default, Nov 12 2018, 14:31:15) [GCC 7.3.0] Operating System: Linux-4.15.0-46-generic-x86_64-with-Ubuntu-18.04-bionic Locale: UTF-8 Branch: master Database: 44.14 Commit: pymedusa/Medusa@b34f1df336e52cf0a690acbc393440ac9f8b3581 Link to Log: No Log available

ERROR

2019-03-28 02:30:52 ERROR    Thread_2 :: [b34f1df] Exception generated: 'ascii' codec can't encode character u'\xf3' in position 37: ordinal not in range(128)
Traceback (most recent call last):
  File "/opt/medusa/medusa/server/web/core/base.py", line 262, in async_call
    result = function(**kwargs)
  File "/opt/medusa/medusa/server/web/home/handler.py", line 662, in status
    root_dir[subject] = helpers.get_disk_space_usage(subject)
  File "/opt/medusa/medusa/helpers/__init__.py", line 1446, in get_disk_space_usage
    st = os.statvfs(disk_path)
  File "/opt/medusa/medusa/init/filesystem.py", line 112, in patched_output
    return handle_output(f(*args, **kwargs))
UnicodeEncodeError: 'ascii' codec can't encode character u'\xf3' in position 37: ordinal not in range(128)

STAFF NOTIFIED: @pymedusa/support @pymedusa/moderators

Sarcas666 commented 5 years ago

INFO

Python Version: 2.7.10 (default, Feb 22 2019, 21:17:52) [GCC 4.2.1 Compatible Apple LLVM 10.0.1 (clang-1001.0.37.14)] Operating System: Darwin-18.5.0-x86_64-i386-64bit Locale: None Branch: master Database: 44.14 Commit: pymedusa/Medusa@b34f1df336e52cf0a690acbc393440ac9f8b3581 Link to Log: https://gist.github.com/a75388f84437812fe6cf25bec7ef452f

ERROR

2019-04-10 09:22:05 ERROR    Thread_4 :: [b34f1df] Exception generated: 'ascii' codec can't encode character u'\u2022' in position 25: ordinal not in range(128)
Traceback (most recent call last):
  File "/Applications/Medusa/medusa/server/web/core/base.py", line 262, in async_call
    result = function(**kwargs)
  File "/Applications/Medusa/medusa/server/web/home/handler.py", line 662, in status
    root_dir[subject] = helpers.get_disk_space_usage(subject)
  File "/Applications/Medusa/medusa/helpers/__init__.py", line 1446, in get_disk_space_usage
    st = os.statvfs(disk_path)
  File "/Applications/Medusa/medusa/init/filesystem.py", line 112, in patched_output
    return handle_output(f(*args, **kwargs))
UnicodeEncodeError: 'ascii' codec can't encode character u'\u2022' in position 25: ordinal not in range(128)

STAFF NOTIFIED: @pymedusa/support @pymedusa/moderators

Sarcas666 commented 5 years ago

INFO

Python Version: 2.7.10 (default, Feb 22 2019, 21:55:15) [GCC 4.2.1 Compatible Apple LLVM 10.0.1 (clang-1001.0.37.14)] Operating System: Darwin-18.6.0-x86_64-i386-64bit Locale: None Branch: master Database: 44.14 Commit: pymedusa/Medusa@f46bfacf8763204fbde4f26a5916095371d494d1 Link to Log: No Log available

ERROR

2019-05-23 21:43:37 ERROR    Thread_2 :: [f46bfac] Exception generated: 'ascii' codec can't encode character u'\u2022' in position 25: ordinal not in range(128)
Traceback (most recent call last):
  File "/Applications/Medusa/medusa/server/web/core/base.py", line 262, in async_call
    result = function(**kwargs)
  File "/Applications/Medusa/medusa/server/web/home/handler.py", line 662, in status
    root_dir[subject] = helpers.get_disk_space_usage(subject)
  File "/Applications/Medusa/medusa/helpers/__init__.py", line 1446, in get_disk_space_usage
    st = os.statvfs(disk_path)
  File "/Applications/Medusa/medusa/init/filesystem.py", line 112, in patched_output
    return handle_output(f(*args, **kwargs))
UnicodeEncodeError: 'ascii' codec can't encode character u'\u2022' in position 25: ordinal not in range(128)

STAFF NOTIFIED: @pymedusa/support @pymedusa/moderators

Sarcas666 commented 5 years ago

INFO

Python Version: 2.7.10 (default, Feb 22 2019, 21:55:15) [GCC 4.2.1 Compatible Apple LLVM 10.0.1 (clang-1001.0.37.14)] Operating System: Darwin-18.6.0-x86_64-i386-64bit Locale: UTF-8 Branch: master Database: 44.14 Commit: pymedusa/Medusa@74c3f124fb599ad923e23f46fc320778b8b4217c Link to Log: https://gist.github.com/d6f71e8c947f79895f4e035031e6bb60

ERROR

2019-06-20 19:57:41 ERROR    Thread_8 :: [74c3f12] Exception generated: 'ascii' codec can't encode character u'\u2022' in position 25: ordinal not in range(128)
Traceback (most recent call last):
  File "/Applications/Medusa/medusa/server/web/core/base.py", line 261, in async_call
    result = function(**kwargs)
  File "/Applications/Medusa/medusa/server/web/home/handler.py", line 631, in status
    root_dir[subject] = helpers.get_disk_space_usage(subject)
  File "/Applications/Medusa/medusa/helpers/__init__.py", line 1456, in get_disk_space_usage
    st = os.statvfs(disk_path)
  File "/Applications/Medusa/medusa/init/filesystem.py", line 112, in patched_output
    return handle_output(f(*args, **kwargs))
UnicodeEncodeError: 'ascii' codec can't encode character u'\u2022' in position 25: ordinal not in range(128)

STAFF NOTIFIED: @pymedusa/support @pymedusa/moderators

ouraios commented 5 years ago

Info

Branch: master Commit: Unknown Version: 0.3.4 Database: 44.14 Python Version: 2.7.16 (default, May 6 2019, 19:28:45) [GCC 8.3.0] SSL Version: OpenSSL 1.1.1c 28 May 2019 OS: Linux-4.15.0-52-generic-x86_64-with Locale: Unknown.Unknown Runs in Docker: Yes

Error

2019-08-30 02:38:15 WARNING  SHOWQUEUE-ADD :: [] An error occurred while parsing: /torrent/media/tv/One Piece/Season 20/One Piece - S20E08 - Ténèbres de la terre sacrée. Le mystérieux chapeau de paille géant.mp4
KnowIt reported:
+-------------------------------------------------------+
|                   KnowIt 0.3.0-dev                    |
+-------------------------------------------------------+
|                      pymediainfo                      |
|                         3.2.1                         |
|                   libmediainfo.so.0                   |
|                         v19.4                         |
|                                                       |
|                                                       |
|                        enzyme                         |
|                         0.4.2                         |
+-------------------------------------------------------+
|                   profile: default                    |
+-------------------------------------------------------+
Traceback (most recent call last):
  File "/app/medusa/ext/knowit/api.py", line 64, in know
    result = provider.describe(video_path, context)
  File "/app/medusa/ext/knowit/providers/mediainfo.py", line 285, in describe
    media_info = self.executor.extract_info(video_path)
  File "/app/medusa/ext/knowit/providers/mediainfo.py", line 100, in extract_info
    return self._execute(filename)
  File "/app/medusa/ext/knowit/providers/mediainfo.py", line 167, in _execute
    return MediaInfo.parse(filename, library_file=self.location)
  File "/app/medusa/lib/pymediainfo/__init__.py", line 266, in parse
    " with libmediainfo".format(filename))
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 60: ordinal not in range(128)
Kp1003 commented 5 years ago

INFO

Python Version: 2.7.12 (default, Nov 12 2018, 14:36:49) [GCC 5.4.0 20160609] Operating System: Linux-4.15.0-55-generic-x86_64-with-Ubuntu-16.04-xenial Locale: UTF-8 Branch: master Database: 44.14 Commit: pymedusa/Medusa@74c3f124fb599ad923e23f46fc320778b8b4217c Link to Log: https://gist.github.com/d081c83064a7129060e741c7a28b3a80

ERROR

2019-09-02 15:47:10 ERROR    Thread_1 :: [74c3f12] Exception generated: 'ascii' codec can't encode character u'\xf8' in position 44: ordinal not in range(128)
Traceback (most recent call last):
  File "/home/hd25/**********/apps/medusa/medusa/server/web/core/base.py", line 261, in async_call
    result = function(**kwargs)
  File "/home/hd25/**********/apps/medusa/medusa/server/web/home/handler.py", line 631, in status
    root_dir[subject] = helpers.get_disk_space_usage(subject)
  File "/home/hd25/**********/apps/medusa/medusa/helpers/__init__.py", line 1456, in get_disk_space_usage
    st = os.statvfs(disk_path)
  File "/home/hd25/**********/apps/medusa/medusa/init/filesystem.py", line 112, in patched_output
    return handle_output(f(*args, **kwargs))
UnicodeEncodeError: 'ascii' codec can't encode character u'\xf8' in position 44: ordinal not in range(128)

STAFF NOTIFIED: @pymedusa/support @pymedusa/moderators

Aethrios commented 4 years ago

INFO

Python Version: 2.7.15 (default, May 26 2018, 01:11:09) [GCC 4.2.1 Compatible FreeBSD Clang 4.0.0 (tags/RELEASE_400/final 297347)] Operating System: FreeBSD-11.2-STABLE-amd64-64bit-ELF Locale: UTF-8 Branch: master Database: 44.14 Commit: pymedusa/Medusa@80b323eefca7c8d3c233ded9f389b0af35725f17 Link to Log: https://gist.github.com/c23b73610b673c43d9fb633ebd82797f

ERROR

2019-11-13 14:22:26 ERROR    TORNADO :: [80b323e] Uncaught exception in APIv2: UnicodeEncodeError('ascii', u'N\xe9m\xe9sis', 1, 2, 'ordinal not in range(128)')
Request: PATCH /api/v2/series/tvdb262090 (192.168.100.100)
With body:
{"config":{"aliases":[],"defaultEpisodeStatus":"Wanted","dvdOrder":false,"seasonFolders":false,"anime":true,"scene":false,"sports":false,"paused":false,"location":"/media/anime/Psycho-Pass","airByDate":false,"subtitlesEnabled":false,"release":{"requiredWords":[],"ignoredWords":[],"requiredWordsExclude":false,"ignoredWordsExclude":false,"blacklist":[],"whitelist":["Anime No Sekai","Exiled-Destiny","ANiHLS","AnimeAddicts","AnimeCorpX","Wing Zero Fansub","Némésis","PA Fansub","HorribleSubs","cornbreadman","PUNCH-Fansub","MiniTheatre","Anime und Serien Trends 4 YOU","Commie","ShinSekai Fansub","Cloudy Wolf Encodes","ReinForce","Golosubs","Sunsub","Dollars Fansub","Tekmatek-fansub","Blood Moon Dragon Fansubs","AnimPark","DorianHD","Sick Fansubs","Hi10 Anime","DarkDream","Kametsu","Kamigami","DeadFish","EvermorE","ShaqSalazar","JacobSwaggedUp","Peace Fansub","KOTEX","Seedzone","NoobSubs","VCB-Studio","iND.","J plus un","Canzah","deanzel","SilverEye26"]},"qualities":{"preferred":[],"allowed":[32,128,512]},"airdateOffset":0},"language":"en"}
Traceback (most recent call last):
  File "/usr/local/medusa/ext/tornado/web.py", line 1592, in _execute
    result = yield result
  File "/usr/local/medusa/ext/tornado/gen.py", line 1133, in run
    value = future.result()
  File "/usr/local/medusa/ext/tornado/concurrent.py", line 261, in result
    raise_exc_info(self._exc_info)
  File "/usr/local/medusa/ext/tornado/gen.py", line 1141, in run
    yielded = self.gen.throw(*exc_info)
  File "/usr/local/medusa/medusa/server/api/v2/base.py", line 79, in async_call
    content = yield tornado_future
  File "/usr/local/medusa/ext/tornado/gen.py", line 1133, in run
    value = future.result()
  File "/usr/local/medusa/ext/tornado/concurrent.py", line 261, in result
    raise_exc_info(self._exc_info)
  File "/usr/local/medusa/medusa/server/api/v2/base.py", line 70, in wrapper
    result = method(*args, **kwargs)
  File "/usr/local/medusa/medusa/server/api/v2/series.py", line 152, in patch
    if patch_field and patch_field.patch(series, value):
  File "/usr/local/medusa/medusa/server/api/v2/base.py", line 535, in patch
    setattr(target, self.attr, self.converter(value))
  File "/usr/local/medusa/medusa/tv/base.py", line 57, in __setattr__
    super(TV, self).__setattr__(key, value)
  File "/usr/local/medusa/medusa/tv/series.py", line 674, in whitelist
    self.release_groups.set_white_keywords(short_group_names(group_names))
  File "/usr/local/medusa/medusa/helpers/anidb.py", line 106, in short_group_names
    short_group_list += get_short_group_name(group_name) or [group_name]
  File "", line 2, in get_short_group_name
  File "/usr/local/medusa/ext/dogpile/cache/region.py", line 1267, in get_or_create_for_user_func
    key = key_generator(*arg, **kw)
  File "/usr/local/medusa/ext/dogpile/cache/util.py", line 41, in generate_key
    return namespace + "|" + " ".join(map(to_str, args))
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 1: ordinal not in range(128)

STAFF NOTIFIED: @pymedusa/support @pymedusa/moderators