RedditVideoMakerBot icon indicating copy to clipboard operation
RedditVideoMakerBot copied to clipboard

doesnt work on mac. anyone else knows how to use it?

Open Jiarui18 opened this issue 4 years ago • 10 comments

Jiarui18 avatar Jun 04 '22 09:06 Jiarui18

Do you have installed Python?

If yes and you did run it, were there any errors?

Python and NodeJS does work on MacOS and all of the dependencies should be compatible with it if I remember correctly.

MonkaMaczna avatar Jun 04 '22 09:06 MonkaMaczna

i already installed

Jiarui18 avatar Jun 04 '22 09:06 Jiarui18

The project works fine on macOS, please tell us more info about the problem. Did you install python and all the libraries inside requirements.txt? Does it give you some type of error?

domizianooo avatar Jun 04 '22 09:06 domizianooo

this error:

File "/Users/my name/Downloads/RedditVideoMakerBot-1.0.0/main.py", line 17, in reddit_object = get_subreddit_threads() File "/Users/my name/Downloads/RedditVideoMakerBot-1.0.0/reddit/subreddit.py", line 52, in get_subreddit_threads submission = list(threads)[random.randrange(0, 25)] File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/praw/models/listing/generator.py", line 63, in next self._next_batch() File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/praw/models/listing/generator.py", line 89, in _next_batch self._listing = self._reddit.get(self.url, params=self.params) File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/praw/util/deprecate_args.py", line 43, in wrapped return func(**dict(zip(_old_args, args)), **kwargs) File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/praw/reddit.py", line 634, in get return self._objectify_request(method="GET", params=params, path=path) File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/praw/reddit.py", line 739, in _objectify_request self.request( File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/praw/util/deprecate_args.py", line 43, in wrapped return func(**dict(zip(_old_args, args)), **kwargs) File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/praw/reddit.py", line 941, in request return self._core.request( File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/prawcore/sessions.py", line 330, in request return self._request_with_retries( File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/prawcore/sessions.py", line 228, in _request_with_retries response, saved_exception = self._make_request( File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/prawcore/sessions.py", line 185, in _make_request response = self._rate_limiter.call( File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/prawcore/rate_limit.py", line 33, in call kwargs["headers"] = set_header_callback() File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/prawcore/sessions.py", line 283, in _set_header_callback self._authorizer.refresh() File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/prawcore/auth.py", line 314, in refresh self._request_token( File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/prawcore/auth.py", line 155, in _request_token response = self._authenticator._post(url, **data) File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/prawcore/auth.py", line 38, in _post raise ResponseException(response) prawcore.exceptions.ResponseException: received 401 HTTP response

Jiarui18 avatar Jun 04 '22 10:06 Jiarui18

Oh I had the same one before. From what I remember reddit api credentials are not correct in .env file. Could you make sure you all of the data in there is correct?

MonkaMaczna avatar Jun 04 '22 10:06 MonkaMaczna

i was dumb, i forgot to save lol

Jiarui18 avatar Jun 04 '22 10:06 Jiarui18

Use Docker and run the bash scripts with

bash build.sh bash run.sh

Must have Docker daemon/app actively running.

M00nMission avatar Jun 04 '22 12:06 M00nMission

Use Docker and run the bash scripts with

bash build.sh bash run.sh

Must have Docker daemon/app actively running.

I have the same problem can u explain me how i can run the bash scripts? I am not familiar with docker

Taze00 avatar Jun 04 '22 16:06 Taze00

Use Docker and run the bash scripts with bash build.sh bash run.sh Must have Docker daemon/app actively running.

I have the same problem can u explain me how i can run the bash scripts? I am not familiar with docker

you got a lot more to learn then bro lmao; it's not that bad

M00nMission avatar Jun 04 '22 21:06 M00nMission

Use Docker and run the bash scripts with bash build.sh bash run.sh Must have Docker daemon/app actively running.

I have the same problem can u explain me how i can run the bash scripts? I am not familiar with docker

you got a lot more to learn then bro lmao; it's not that bad

Okay

Taze00 avatar Jun 05 '22 07:06 Taze00