These are chat archives for praw-dev/praw

3rd
Sep 2018
Theonefoster
@Theonefoster
Sep 03 19:42
I'm having a problem with my praw.ini file when using r = praw.Reddit(username). I know it's in the right place because if I replace it with an empty file I get KeyError and a link to the config docs as expected. If I add the correct details (known to work on a different system) I get a weird unhandled exception: AttributeError: '_NotSet' object has no attribute 'lower'
image.png
Any ideas?
Seems to me it's reading the file but then failing to configure praw correctly. It assumes it's configured correctly in that line but since it actually isn't it raises the exception. If I use a username which is not in the file: r = praw.Reddit("blah") I get a KeyError and a link to the docs as expected. So I only get the AttributeError when I use a username for which the details are present in the ini file.
Theonefoster
@Theonefoster
Sep 03 19:51
I was on praw 6.0.0 but just tried downgrading to 5.4 as a debugging step and same results. It also doesn't make a difference whether praw.ini is in the praw install folder (preferred) or my project folder. Same results. This exact praw.ini file is known to work in other systems so the contents isn't the problem. I'm lost!
Theonefoster
@Theonefoster
Sep 03 20:09
Update: I get the exact same error if I configure praw manually, with r = praw.Reddit(username=username, password=password, {etc}). So it's not the ini file's fault. I've reinstalled praw twice and that hasn't fixed it. So confused.