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

Error when trying to list providers (and any other command) #90

Open
seannymurrs opened this issue Aug 26, 2023 · 2 comments
Open

Error when trying to list providers (and any other command) #90

seannymurrs opened this issue Aug 26, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@seannymurrs
Copy link

seannymurrs commented Aug 26, 2023

Describe the bug
Error when running excludarr providers list

To Reproduce
Steps to reproduce the behavior:

  1. excludarr providers list

Expected behavior
An output of available providers

Versions

  1. OS Version: macOS Sonoma (also happened when running on Linux seedbox)
  2. Excludarr version: v1.0.7
  3. Python version: Python 3.11.4

Debug logging

sean@Seans-Mac-mini ~ % excludarr --debug providers list 
[2023-08-26 09:54:18] - Starting Excludarr v1.0.7
[2023-08-26 09:54:18] - Got radarr as subcommand
[2023-08-26 09:54:18] - Reading configuration file
[2023-08-26 09:54:18] - Determining which configfile to use
[2023-08-26 09:54:18] - Configfile to use: ./.excludarr.yml
[2023-08-26 09:54:18] - Reading configfile: ./.excludarr.yml
[2023-08-26 09:54:18] - Read the following configuration: {'general': {'fast_search': True, 'locale': 'en_NL', 'providers': ['Netflix']}, 'tmdb': {'api_key': '<REDACTED>'}, 'radarr': {'url': 'http://tangelo.whatbox.ca:29247', 'api_key': '<REDACTED>', 'verify_ssl': False, 'exclude': None}, 'sonarr': {'url': 'http://tangelo.whatbox.ca:26271', 'api_key': '<REDACTED>', 'verify_ssl': False, 'exclude': None}}
╭─────────────────────────────── Traceback (most recent call last) ────────────────────────────────╮
│ /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/excludarr/comman │
│ ds/providers.py:22 in list                                                                       │
│                                                                                                  │
│   19 │   if not locale:                                                                          │
│   20 │   │   locale = config.locale                                                              │
│   21 │                                                                                           │
│ ❱ 22 │   justwatch_client = justwatch.JustWatch(locale)                                          │
│   23 │   jw_providers = justwatch_client.get_providers()                                         │
│   24 │                                                                                           │
│   25 │   output.print_providers(jw_providers)                                                    │
│                                                                                                  │
│ ╭───── locals ─────╮                                                                             │
│ │ locale = 'en_US' │                                                                             │
│ ╰──────────────────╯                                                                             │
│                                                                                                  │
│ /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/excludarr/module │
│ s/justwatch/justwatch.py:21 in __init__                                                          │
│                                                                                                  │
│    18 │   │   self.session.verify = ssl_verify                                                   │
│    19 │   │                                                                                      │
│    20 │   │   # Setup retries on failure                                                         │
│ ❱  21 │   │   retries = Retry(                                                                   │
│    22 │   │   │   total=5,                                                                       │
│    23 │   │   │   backoff_factor=0.5,                                                            │
│    24 │   │   │   status_forcelist=[429, 500, 502, 503, 504],                                    │
│                                                                                                  │
│ ╭─────────────────────────────────────── locals ───────────────────────────────────────╮         │
│ │     locale = 'en_NL'                                                                 │         │
│ │       self = <excludarr.modules.justwatch.justwatch.JustWatch object at 0x106f6bad0> │         │
│ │ ssl_verify = True                                                                    │         │
│ ╰──────────────────────────────────────────────────────────────────────────────────────╯         │
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯
TypeError: Retry.__init__() got an unexpected keyword argument 'method_whitelist'

Additional context
Add any other context about the problem here.

@seannymurrs seannymurrs added the bug Something isn't working label Aug 26, 2023
@bftbgodin
Copy link

Im getting the same problem but im using a fresh install of ubuntu on a vm

odin@randomstuff:~$ excludarr --debug providers list
[2023-10-12 21:58:02] - Starting Excludarr v1.0.7
[2023-10-12 21:58:02] - Got radarr as subcommand
[2023-10-12 21:58:02] - Reading configuration file
[2023-10-12 21:58:02] - Determining which configfile to use
[2023-10-12 21:58:02] - Configfile to use: ./.excludarr.yml
[2023-10-12 21:58:02] - Reading configfile: ./.excludarr.yml
[2023-10-12 21:58:02] - Read the following configuration: {'general': {'fast_search': True, 'locale': 'en_US', 'providers': ['Amazon Prime Video', 'Disney Plus']}, 'tmdb': {'api_key': ''}, 'radarr': {'url': 'http://192.168.0.12:7878', 'api_key': '', 'verify_ssl': False, 'exclude': None}, 'sonarr': {'url': 'http://localhost:8989', 'api_key': '', 'verify_ssl': False, 'exclude': None}}
╭─────────────────────────────── Traceback (most recent call last
────────────────────────────────╮
│ /home/odin/.local/lib/python3.10/site-packages/excludarr/commands/providers.py:22 in list │
│ │
│ 19 │ if not locale: │
│ 20 │ │ locale = config.locale │
│ 21 │ │
│ ❱ 22 │ justwatch_client = justwatch.JustWatch(locale) │
│ 23 │ jw_providers = justwatch_client.get_providers() │
│ 24 │ │
│ 25 │ output.print_providers(jw_providers) │
│ │
│ ╭───── locals ─────╮ │
│ │ locale = 'en_US' │ │
│ ╰──────────────────╯ │
│ │
│ /home/odin/.local/lib/python3.10/site-packages/excludarr/modules/justwatch/justwatch.py:21 in │
init
│ │
│ 18 │ │ self.session.verify = ssl_verify │
│ 19 │ │ │
│ 20 │ │ # Setup retries on failure │
│ ❱ 21 │ │ retries = Retry( │
│ 22 │ │ │ total=5, │
│ 23 │ │ │ backoff_factor=0.5, │
│ 24 │ │ │ status_forcelist=[429, 500, 502, 503, 504], │
│ │
│ ╭──────────────────────────────────────── locals ─────────────────────────────────────────╮ │
│ │ locale = 'en_US' │ │
│ │ self = <excludarr.modules.justwatch.justwatch.JustWatch object at 0x7f83c7b82560> │ │
│ │ ssl_verify = True │ │
│ ╰─────────────────────────────────────────────────────────────────────────────────────────╯ │
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯
TypeError: Retry.init() got an unexpected keyword argument 'method_whitelist'

if someone with a working setup could post their config.yml with the api keys removed of course it would greatly be appreciated.

@nicolasFernandez
Copy link

I have the same problem trying to configure excludarr just now... Is it currently not working because of the API change that I've seen mentioned here? #92 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants