RedditVideoMakerBot icon indicating copy to clipboard operation
RedditVideoMakerBot copied to clipboard

main.py not recognizing module reddit.askreddit

Open FreebieII opened this issue 4 years ago • 3 comments

from reddit.askreddit import get_askreddit_threads

ModuleNotFoundError: No module named 'reddit.askreddit'

image

FreebieII avatar Jun 01 '22 10:06 FreebieII

Are all the files in the same place? That import line is pointing towards reddit/askreddit.py

gibbiemonster avatar Jun 01 '22 11:06 gibbiemonster

Are all the files in the same place? That import line is pointing towards reddit/askreddit.py

Yes, that's where it is, same as the main code, didn't change much in the directory [Ignore the import errors of other packages]

image image image

FreebieII avatar Jun 01 '22 11:06 FreebieII

Solved. I had a package installed Reddit, uninstalling it solved the issue.

FreebieII avatar Jun 01 '22 12:06 FreebieII