RedditVideoMakerBot icon indicating copy to clipboard operation
RedditVideoMakerBot copied to clipboard

program dont work win 11 8gb ram i5-9400f 240gb m2 ssd gt 710

Open chico-525 opened this issue 4 years ago • 3 comments

I do the things said on the document and my program puts this error Traceback (most recent call last): File "C:\Users\ASUS\OneDrive\Ambiente de Trabalho\RedditVideoMakerBot-master\main.py", line 32, in reddit_object = get_subreddit_threads() File "C:\Users\ASUS\OneDrive\Ambiente de Trabalho\RedditVideoMakerBot-master\reddit\subreddit.py", line 50, in get_subreddit_threads submission = list(threads)[random.randrange(0, 25)] File "C:\Users\ASUS\AppData\Roaming\Python\Python310\site-packages\praw\models\listing\generator.py", line 63, in next self._next_batch() File "C:\Users\ASUS\AppData\Roaming\Python\Python310\site-packages\praw\models\listing\generator.py", line 89, in _next_batch self._listing = self._reddit.get(self.url, params=self.params) File "C:\Users\ASUS\AppData\Roaming\Python\Python310\site-packages\praw\util\deprecate_args.py", line 43, in wrapped return func(**dict(zip(_old_args, args)), **kwargs) File "C:\Users\ASUS\AppData\Roaming\Python\Python310\site-packages\praw\reddit.py", line 634, in get return self._objectify_request(method="GET", params=params, path=path) File "C:\Users\ASUS\AppData\Roaming\Python\Python310\site-packages\praw\reddit.py", line 739, in _objectify_request self.request( File "C:\Users\ASUS\AppData\Roaming\Python\Python310\site-packages\praw\util\deprecate_args.py", line 43, in wrapped return func(**dict(zip(_old_args, args)), **kwargs) File "C:\Users\ASUS\AppData\Roaming\Python\Python310\site-packages\praw\reddit.py", line 941, in request return self._core.request( File "C:\Users\ASUS\AppData\Roaming\Python\Python310\site-packages\prawcore\sessions.py", line 330, in request return self._request_with_retries( File "C:\Users\ASUS\AppData\Roaming\Python\Python310\site-packages\prawcore\sessions.py", line 228, in _request_with_retries response, saved_exception = self._make_request( File "C:\Users\ASUS\AppData\Roaming\Python\Python310\site-packages\prawcore\sessions.py", line 185, in _make_request response = self._rate_limiter.call( File "C:\Users\ASUS\AppData\Roaming\Python\Python310\site-packages\prawcore\rate_limit.py", line 33, in call kwargs["headers"] = set_header_callback() File "C:\Users\ASUS\AppData\Roaming\Python\Python310\site-packages\prawcore\sessions.py", line 283, in _set_header_callback self._authorizer.refresh() File "C:\Users\ASUS\AppData\Roaming\Python\Python310\site-packages\prawcore\auth.py", line 425, in refresh self._request_token( File "C:\Users\ASUS\AppData\Roaming\Python\Python310\site-packages\prawcore\auth.py", line 158, in _request_token raise OAuthException( prawcore.exceptions.OAuthException: invalid_grant error processing request

chico-525 avatar Jun 07 '22 18:06 chico-525

Hi @chico-525 Please make sure you have the keys from Reddit configured and also double-check if your Reddit account has 2-Factor Authentication enabled. This could also be that the bot tried to login several times but was blocked due to time-out. You can easily check this by trying to sign into your account manually right after getting this error. Please post your issue here with more info if this persists. Thanks and have a good one.

noblesaji avatar Jun 07 '22 19:06 noblesaji

Hello @noblesaji. I also have the problem and have tried logging in manually, afterwards. And I cant. How long does one have to wait to try again?

djjhani avatar Jun 08 '22 12:06 djjhani

Exactly what noblesaji said. Closed for inactivity Please reopen if you still have a problem

JasonLovesDoggo avatar Jun 13 '22 01:06 JasonLovesDoggo