l3uddz / traktarr

Script to add new series & movies to Sonarr/Radarr based on Trakt lists.
GNU General Public License v3.0
574 stars 52 forks source link

TypeError: movies() got an unexpected keyword argument 'year' #156

Open FLAFLALEBG opened 3 years ago

FLAFLALEBG commented 3 years ago

Describe the bug When I import any list (private / public) same as example : traktarr movies -t https://trakt.tv/users/rkerwin/lists/top-100-movies he return (full log):


__ /____ | | / |__ __ | | \ _ \ | |/ /\ \ \ _ \ | | | | \// | < | | / | | \/| | \/ |__| || (__ /|_ \ || (__ /| ||
\/ \/ \/

#########################################################################

Author: l3uddz

URL: https://github.com/l3uddz/traktarr

--

Part of the Cloudbox project: https://cloudbox.works

#########################################################################

GNU General Public License v3.0

#########################################################################

Traceback (most recent call last): File "/usr/local/bin/traktarr", line 1697, in app() File "/home/pi/.local/lib/python3.7/site-packages/click/core.py", line 1137, in call return self.main(args, kwargs) File "/home/pi/.local/lib/python3.7/site-packages/click/core.py", line 1062, in main rv = self.invoke(ctx) File "/home/pi/.local/lib/python3.7/site-packages/click/core.py", line 1668, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File "/home/pi/.local/lib/python3.7/site-packages/click/core.py", line 1404, in invoke return ctx.invoke(self.callback, ctx.params) File "/home/pi/.local/lib/python3.7/site-packages/click/core.py", line 763, in invoke return __callback(args, **kwargs) TypeError: movies() got an unexpected keyword argument 'year'

Any idea for fix that ?

Jamyn commented 2 years ago

It seems like there are fundamental changes between click 6.7 and later (ex: click 8.0.3). Try reinstalling 6.7 explicitly:

sudo python -m pip install click==6.7

I ran into similar issues trying to use Python 3.9. Python 3.7 worked fine.

kazuiii commented 2 years ago

same for me, resintalling click 6.7 didn't change anything