Skip to content

Since latest update i got message "Error evaluating 'gcode_macro _km_print_status:gcode': UndefinedError: 'list object' has no attribute 'clear'" #125

Closed Answered by jschuh
xoga74 asked this question in Q&A
Discussion options

You must be logged in to vote

Ugh, I bet you're running Klipper in python 2, and it appears that list.clear() was added in python 3. Sorry, sometimes it's hard to keep track of the discrepancies between python 2 and 3.

You'll want to roll back to the revision before the status events were introduced. That means you need to ssh into the klipper host, cd to the klipper-macros directory, and run this command:

git reset --hard 7988daee514ef1ac577c900c7471112de8a74c6a

I'll figure out a python 2 compatible fix and try to get it landed today. After that you should be able to update without issue.

Replies: 5 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@jschuh
Comment options

Answer selected by xoga74
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants