RedditVideoMakerBot icon indicating copy to clipboard operation
RedditVideoMakerBot copied to clipboard

Error starting the program!

Open phoenixMCode opened this issue 4 years ago • 10 comments

This happens everytime i run the code Couldn't find .env.template. Unable to check variables. Logging into Reddit. Traceback (most recent call last): File "C:\Users\foodi\Downloads\Redditmaker\RedditVideoMakerBot-master\main.py", line 70, in main() File "C:\Users\foodi\Downloads\Redditmaker\RedditVideoMakerBot-master\main.py", line 36, in main reddit_object = get_subreddit_threads(POST_ID) File "C:\Users\foodi\Downloads\Redditmaker\RedditVideoMakerBot-master\reddit\subreddit.py", line 29, in get_subreddit_threads if username.casefold().startswith("u/"): AttributeError: 'NoneType' object has no attribute 'casefold'

phoenixMCode avatar Jul 10 '22 21:07 phoenixMCode

Hey buddy!

Try using the development branch :-)

ziipen avatar Jul 10 '22 22:07 ziipen

Hey buddy!

Try using the development branch :-)

hey, thanks for the early reply, i got a new error when i tried the dev branch

File "C:\Users\foodi\Downloads\RedditVideoMakerBot-develop\RedditVideoMakerBot-develop\main.py", line 5, in from reddit.subreddit import get_subreddit_threads File "C:\Users\foodi\Downloads\RedditVideoMakerBot-develop\RedditVideoMakerBot-develop\reddit\subreddit.py", line 3, in from utils import settings File "C:\Users\foodi\Downloads\RedditVideoMakerBot-develop\RedditVideoMakerBot-develop\utils\settings.py", line 2, in import toml ModuleNotFoundError: No module named 'toml'

looks like i might be missing something im just not sure what that is

phoenixMCode avatar Jul 10 '22 22:07 phoenixMCode

@phoenixMCode install the requirements. pip3 install -r requirements.txt

CordlessCoder avatar Jul 10 '22 22:07 CordlessCoder

@phoenixMCode install the requirements. pip3 install -r requirements.txt

Hey, it opened by it seems like its still having issues with toml, the module is downloaded installed but i get this

Encountered error when trying to to load .config.template.toml: [Errno 2] No such file or directory: '.config.template.toml'

thanks!

phoenixMCode avatar Jul 10 '22 22:07 phoenixMCode

Did you touch that file?

CordlessCoder avatar Jul 10 '22 22:07 CordlessCoder

No, i installed the requirements then tried to run it imediatly after, can i re-install?

phoenixMCode avatar Jul 10 '22 22:07 phoenixMCode

You need to be in the correct directory when running the file

CordlessCoder avatar Jul 10 '22 22:07 CordlessCoder

I'm the same directory as main.py specifically

CordlessCoder avatar Jul 10 '22 22:07 CordlessCoder

I'm the same directory as main.py specifically

I think i got it, tried to do a runthrough and just trying to find the output now LMAO

phoenixMCode avatar Jul 10 '22 22:07 phoenixMCode

I think we could close this issue 🙏 . Feel free to reopen in case other had similar issue

William9923 avatar Jul 11 '22 09:07 William9923