Forums

PRAW not working?

I am getting this error

AttributeError: 'Reddit' object has no attribute 'subreddit'

in this code (look below) when I try to run it on pythonanywhere. On the windows client, everything works.

This is the beginning of the code: http://pastebin.com/RXPRaDHz

Hi there, do you know which version of PRAW you're using? I seem to remember there used to be a bug in PRAW that meant it didn't work over a proxy (which applies to free accounts on pythonanywhere): https://github.com/praw-dev/praw/issues/316

I think that bug was fixed though, so maybe try upgrading PRAW? Use --user or a virtualenv

Did you ever get this issue sorted? I am currently facing the same one :/

The new version that @harry linked to above should have fixed the issue. Which version are you using?

Ah, just noticed that you're using a paid account -- so this specific problem shouldn't affect you (it was for free accounts only). I guess the question about the version of the library still applies, though :-)