Forums

Having trouble with PRAW module

I get this when I try to import praw:

>>> import praw
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/averycrudeman/.local/lib/python2.7/site-packages/praw/__init__.py", line 50, in <module>
platform.platform(True))
File "/usr/lib/python2.7/platform.py", line 1623, in platform
distname,distversion,distid = dist('')
File "/usr/lib/python2.7/platform.py", line 390, in dist
full_distribution_name=0)
File "/usr/lib/python2.7/platform.py", line 339, in linux_distribution
if etclsbrel:
UnboundLocalError: local variable 'etclsbrel' referenced before assignment
>>>

Looks like a lingering effect of the recent update. It should be working now.

I just got that error, which is weird, because I got that at first and then it was fixed, and now I get it again.

Huh, it works now.

Now it's broken again.

Edit: Works now. Looks like I just had to kill the console and start a new one. Strange...