Spark-NF / twitter_media_downloader

Twitter media downloader.
Apache License 2.0
293 stars 52 forks source link

TypeError: __init__() got an unexpected keyword argument 'wait_on_rate_limit_notify' #27

Closed Jiroun closed 2 years ago

Jiroun commented 2 years ago

at first try I got this error

TypeError: init() got an unexpected keyword argument 'wait_on_rate_limit_notify'

how I can solve it

Traceback (most recent call last): File "twitter_media_downloader.py", line 38, in <module> medias = get_medias(AUTH, user_id, ARGS.retweets, ARGS.image_size, ARGS.since, ARGS.since_id, ARGS.until, ARGS.until_id, ARGS.likes) File "D:\twitter_media_downloader-master\src\parser.py", line 95, in get_medias api = tweepy.API(tweepy_auth, wait_on_rate_limit=True, wait_on_rate_limit_notify=True) TypeError: __init__() got an unexpected keyword argument 'wait_on_rate_limit_notify'

Bionus commented 2 years ago

This is caused by a breaking change in tweepy 4.0.0:

  • Remove API.wait_on_rate_limit_notify (f325738)
    • Always log warning when rate limit reached

I updated the requirements.txt file to depend on 3.* instead.

Hitomi98 commented 2 years ago

This is caused by a breaking change in tweepy 4.0.0:

  • Remove API.wait_on_rate_limit_notify (f325738)

    • Always log warning when rate limit reached

I updated the requirements.txt file to depend on 3.* instead.

Thanks! this worked I ran pip3 install 'tweepy==3.7.0' and it was able to run just fine after.