RedditVideoMakerBot icon indicating copy to clipboard operation
RedditVideoMakerBot copied to clipboard

says client_id is missing when i have provided it

Open choob123 opened this issue 4 years ago • 5 comments

Traceback (most recent call last): File "main.py", line 16, in reddit_object = get_askreddit_threads() File "/Users/prasiddhakarki/Desktop/RedditVideoMakerBot-master/reddit/askreddit.py", line 17, in get_askreddit_threads reddit = praw.Reddit( File "/Users/prasiddhakarki/Library/Python/3.8/lib/python/site-packages/praw/util/deprecate_args.py", line 43, in wrapped return func(**dict(zip(_old_args, args)), **kwargs) File "/Users/prasiddhakarki/Library/Python/3.8/lib/python/site-packages/praw/reddit.py", line 258, in init raise MissingRequiredAttributeException( praw.exceptions.MissingRequiredAttributeException: Required configuration setting 'client_id' missing. This setting can be provided in a praw.ini file, as a keyword argument to the Reddit class constructor, or as an environment variable.

choob123 avatar May 31 '22 20:05 choob123

on a mac i installed the requirements and put in the required fields into the .env but still says missing fields.

choob123 avatar May 31 '22 20:05 choob123

Did you rename the file to .env instead of .env.template?

elebumm avatar May 31 '22 21:05 elebumm

yes I figured it out on mac when i renamed it the file was still considered a .template file. even though it was called .env so i changed the name with a text editor.

choob123 avatar Jun 01 '22 04:06 choob123

Having this same issue, which text editor did you use?

totalsoda avatar Jun 02 '22 19:06 totalsoda

Having this same issue, which text editor did you use?

Nevermind, Get Info > Name & Extension did the trick thanks

totalsoda avatar Jun 02 '22 19:06 totalsoda