gilesknap / gphotos-sync

Google Photos and Albums backup with Google Photos Library API
Apache License 2.0
1.97k stars 163 forks source link

got an unexpected keyword argument 'allowed_methods' #365

Closed dantreble closed 1 year ago

dantreble commented 2 years ago
06-03 12:57:44 WARNING  gphotos-sync 3.0.3 2022-06-03 12:57:44.837338
06-03 12:57:44 ERROR
Process failed.
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/dist-packages/gphotos_sync/Main.py", line 496, in main
    self.setup(args, db_path)
  File "/usr/local/lib/python3.8/dist-packages/gphotos_sync/Main.py", line 345, in setup
    self.auth.authorize()
  File "/usr/local/lib/python3.8/dist-packages/gphotos_sync/authorize.py", line 112, in authorize
    retries = Retry(
TypeError: __init__() got an unexpected keyword argument 'allowed_methods' 

Fixed by updating

urllib3 1.25.8 > 1.26.9 requests 2.22.0 > 2.27.1

pip3 install --upgrade urllib3

and maybe requests as well

pip3 install --upgrade requests

Thanks!

gilesknap commented 2 years ago

Thanks for the report. This issue has been reported on Windows too. The documentation now recommends creating a new venv for the install.

I Probably need to provide upgrade instructions too.

richardwiden commented 2 years ago

Why not specify the minimum version needed and let pip sort it out?

gilesknap commented 2 years ago

Um, good point @richardwiden !

TODO: put some min dependency versions in setup.cfg

gilesknap commented 1 year ago

OK I have pinned all runtime dependencies in e074651 this will go in the next release (today hopefully)