r/redditdev • u/IAmAnAnonymousCoward • Jun 18 '14
AttributeError: can't set attribute
Am I the only one who's getting that since the latest update?
Not sure about the exact causes yet, but for comment in comment_generator: doesn't work anymore for example.
17
Upvotes
87
u/Phteven_j AITA, CMA, Advice Jun 18 '14
Same, all of my bots are fucked. Thanks /u/Deimorz!
15
u/_Daimon_ Jun 18 '14 edited Jun 18 '14
A fix has been implemented. Upgrade your version of PRAW to 2.1.17 to fix the issue.
PRAW changelog: http://praw.readthedocs.org/en/v2.1.16/pages/changelog.html just in case you have a old version of PRAW and want a list of changes.
EDIT: Correction. Fix was made by /u/Deimorz (thanks for the quick PR) here https://github.com/praw-dev/praw/pull/302/files sorry for the confusion. I got the two tickets mixed up while scrambling to get an overview of the situation.
3
u/gorillamania Jun 18 '14
Same here!
3
u/oskarw85 Jun 19 '14
What? I don't see any downvotes? Wait...
4
u/roger_ Jun 18 '14 edited Jun 19 '14
Yeah, I'm getting that too :(
My bots are all down and praw seems to be broken.
-199
u/nandhp Jun 18 '14
I'd like to remind some of you about reddiquette: You shouldn't downvote Deimorz because you don't like the change to reddit. It may make you feel better, but his posts are adding to the discussion, so they should be upvoted instead.
-83
u/Deimorz Jun 18 '14
It's because I added a "score" attribute to comments in the API, previously it was necessary for all API clients to do ups - downs manually to get the score.
You can fix PRAW by deleting this code: https://github.com/praw-dev/praw/blob/master/praw/objects.py#L560-L564