csu / export-saved-reddit

Export saved Reddit posts into a HTML file for import into Google Chrome.
Other
433 stars 35 forks source link

AttributeError: module 'praw' has no attribute 'Reddit" #53

Open tntmod54321 opened 5 years ago

tntmod54321 commented 5 years ago

I've been trying to solve this all day and have been stumped, a few months ago I tried to get this script working (to no avail), the problem I was having is that even though I had praw installed it wasn't getting picked up, so today I tried to get it working again, this time I downloaded praw and copied it into the export-saved-reddit folder, and it worked, this time I got some other error that was resolved by an issue on this repo (I wasn't using version 4.40, pip wasn't working for some reason), next I got some error about unicode, so another issue solved that, (I needed to run it in python 3), so next I ran it and got: Traceback (most recent call last): File "export_saved.py", line 336, in main() File "export_saved.py", line 321, in main reddit = login(args=args) File "export_saved.py", line 126, in login reddit = praw.Reddit(client_id=client_id, AttributeError: module 'praw' has no attribute 'Reddit' So I'm thinking, screw this, I make an ubuntu VM and set it up, and still got the exact same error, I feel like I'm doing something wrong but I followed the guide and put in the right info in the account details (Obvious because of the unicode error)