Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[APP SUBMITTED]: AttributeError: 'dict' object has no attribute 'replace' #5155

Closed
cairobraga opened this issue Sep 8, 2018 · 6 comments · Fixed by #5163
Closed

[APP SUBMITTED]: AttributeError: 'dict' object has no attribute 'replace' #5155

cairobraga opened this issue Sep 8, 2018 · 6 comments · Fixed by #5163
Assignees
Milestone

Comments

@cairobraga
Copy link

cairobraga commented Sep 8, 2018

so my Auto Post Processing is not working and when I try to do Manual PP, this happens:

INFO

Python Version: 2.7.13 (v2.7.13:a06454b1afa1, Dec 17 2016, 20:53:40) [MSC v.1500 64 bit (AMD64)]
Operating System: Windows-7-6.1.7601-SP1
Locale: cp1252
Branch: master
Database: 44.12
Commit: db3d9d7
Link to Log: https://gist.github.com/9676ce5b08d10ad0969db89b2764bc06

ERROR

2018-09-08 01:07:49 ERROR    Thread_7 :: [db3d9d7] Exception generated: 'dict' object has no attribute 'replace'
Traceback (most recent call last):
  File "C:\Medusa\Medusa\medusa\server\web\core\base.py", line 259, in async_call
    result = function(**kwargs)
  File "C:\Medusa\Medusa\medusa\server\web\home\post_process.py", line 49, in processEpisode
    ignore_subs=argToBool(ignore_subs)
  File "C:\Medusa\Medusa\medusa\process_tv.py", line 138, in process
    postpone = app.POSTPONE_IF_SYNC_FILES and any(sync_files)
  File "C:\Medusa\Medusa\medusa\process_tv.py", line 135, in 
    if is_sync_file(filename))
  File "C:\Medusa\Medusa\medusa\helper\common.py", line 162, in is_sync_file
    any(fnmatch(filename, match) for match in app.SYNC_FILES))
  File "C:\Medusa\Medusa\medusa\helper\common.py", line 162, in 
    any(fnmatch(filename, match) for match in app.SYNC_FILES))
  File "C:\Medusa\Python\lib\fnmatch.py", line 42, in fnmatch
    pat = os.path.normcase(pat)
  File "C:\Medusa\Medusa\medusa\init\filesystem.py", line 113, in patched_output
    return handle_output(f(*args, **kwargs))
  File "C:\Medusa\Python\lib\ntpath.py", line 47, in normcase
    return s.replace("/", "\\").lower()
AttributeError: 'dict' object has no attribute 'replace'

STAFF NOTIFIED: @pymedusa/support @pymedusa/moderators

@triage-new-issues triage-new-issues bot added the triage Untriaged issue label Sep 8, 2018
@OmgImAlexis OmgImAlexis added Bug and removed triage Untriaged issue labels Sep 8, 2018
@sharkykh sharkykh added this to the 0.2.10 (Hotfix) milestone Sep 8, 2018
@sharkykh

This comment has been minimized.

@sharkykh sharkykh mentioned this issue Sep 8, 2018
8 tasks
@sharkykh
Copy link
Contributor

sharkykh commented Sep 8, 2018

Confirmed:

image

@sharkykh sharkykh assigned sharkykh and unassigned p0psicles Sep 8, 2018
@sharkykh
Copy link
Contributor

sharkykh commented Sep 8, 2018

@cairobraga
If you can post the following values from your config.ini, I'll give you a correct ones to fix the issue for now.

sync_files
extra_scripts
allowed_extensions

@cairobraga
Copy link
Author

@sharkykh, here it is:

sync_files = "{u'id': 6, u'value': u'!sync'}", "{u'id': 7, u'value': u'lftp-pget-status'}", "{u'id': 8, u'value': u'part'}", "{u'id': 9, u'value': u'bts'}", "{u'id': 10, u'value': u'!qb'}", "{u'id': 11, u'value': u'!qB'}"

extra_scripts = ,

allowed_extensions = nfo, idx, sub, srt

@sharkykh
Copy link
Contributor

sharkykh commented Sep 9, 2018

Alright, if you want to fix this yourself (it will be fixed automatically in the next version):

  1. Shut down Medusa
  2. In config.ini Replace the entire sync_files line with:
    sync_files = !sync, lftp-pget-status, part, bts, !qb, !qB
  3. Start Medusa - it's now fixed

Just keep in mind that until #5163 is merged and released,
if you save the post-processing config, it might go back to the invalid values.

@cairobraga
Copy link
Author

okay @sharkykh, thank you very very much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants