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

Errors running with new 2.3.0 Docker Image #82

Closed
tehniemer opened this issue Nov 3, 2020 · 4 comments · Fixed by #83
Closed

Errors running with new 2.3.0 Docker Image #82

tehniemer opened this issue Nov 3, 2020 · 4 comments · Fixed by #83

Comments

@tehniemer
Copy link

I saw you created a new docker image so I pulled mza921/plex-auto-collections to get the latest version of the script and ran into a few errors. Nothing has changed in my config.yml since having success with the 2.2.1 image created by @burkasaurusrex

If I run it as is I get the following:

Update Collections from Config? (y/n): Traceback (most recent call last):
  File "/app/plex_auto_collections.py", line 654, in <module>
    if input("| \n| Update Collections from Config? (y/n): ").upper() == "Y":
EOFError: EOF when reading a line

and If I run it with '--update' I get this:

Traceback (most recent call last):
  File "/app/plex_auto_collections.py", line 113, in update_from_config
    missing, map = add_to_collection(config_path, plex, m, v, c, map, subfilters)
  File "/app/plex_tools.py", line 151, in add_to_collection
    movies, missing = trakt_tools.trakt_get_movies(config_path, plex, value, is_userlist=False)
  File "/app/trakt_tools.py", line 30, in trakt_get_movies
    imdb_id, tmdb_id = plex_tools.alt_id_lookup(plex, item)
  File "/app/plex_tools.py", line 298, in alt_id_lookup
    return imdb_id, tmdb_id
UnboundLocalError: local variable 'imdb_id' referenced before assignment

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/app/plex_auto_collections.py", line 646, in <module>
    update_from_config(config_path, plex, True, args.no_meta, args.no_images)
  File "/app/plex_auto_collections.py", line 115, in update_from_config
    missing, map = add_to_collection(config_path, plex, m, v, c, map)               # No sub-filters
  File "/app/plex_tools.py", line 151, in add_to_collection
    movies, missing = trakt_tools.trakt_get_movies(config_path, plex, value, is_userlist=False)
  File "/app/trakt_tools.py", line 30, in trakt_get_movies
    imdb_id, tmdb_id = plex_tools.alt_id_lookup(plex, item)
  File "/app/plex_tools.py", line 298, in alt_id_lookup
    return imdb_id, tmdb_id
UnboundLocalError: local variable 'imdb_id' referenced before assignment
@mza921
Copy link
Owner

mza921 commented Nov 4, 2020

Can you pull the image again?

@mza921
Copy link
Owner

mza921 commented Nov 4, 2020

Found the issue. Will update soon.

@mza921
Copy link
Owner

mza921 commented Nov 4, 2020

Can you please test with this mza921/plex-auto-collections:new-movie-agent? You need to run it with --update.

@tehniemer
Copy link
Author

That fixed it. Working as expected again, thanks for the quick work!

@mza921 mza921 linked a pull request Nov 4, 2020 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants