#[Solved] Internal error on command: "PREP"

1 messages · Page 1 of 1 (latest)

idle nimbus
#

I've taken a look by way of the search feature and read through errors listed under the same description. Could use some help getting back up and running. Was updating everything to do a Eddy NG install. Once I updated everything, and did the latest AFC addon update this error started to show up.

troubleshooting script link:
https://termbin.com/l8g2

limber vaultBOT
#

<@&1304550334839918672>

remote jasper
#

what do you mean updated everything?
Did you hit update all in mainsail?

#

Was AFC updated through mainsail or the install script

empty glacier
#

I think this is the same problem than me, you have to rollback the klipper version

idle nimbus
#

I do the AFC update by the install script. I had updates to moonraker, mainsail, klipper and a AFC update.

idle nimbus
amber totem
#

Same issue here. rollback on Klipper worked (I used KIAUH to roll back)

idle nimbus
#

Awesome, don't know why I didn't just try that! Appreciate the help!!

woven plinth
#

Rollback to a previous version of Klipper?

remote jasper
#

Correct using kiauh

woven plinth
#

this is from my Klippy Log:

#

Internal error on command:"PREP"
Traceback (most recent call last):
File "/home/pi/klipper/klippy/gcode.py", line 212, in _process_commands
handler(gcmd)
File "/home/pi/klipper/klippy/gcode.py", line 140, in <lambda>
func = lambda params: origfunc(self._get_extended_params(params))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/pi/klipper/klippy/extras/AFC_prep.py", line 158, in PREP
if not cur_unit.system_Test(lane, self.delay, self.assignTcmd, self.enable):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/pi/klipper/klippy/extras/AFC_BoxTurtle.py", line 57, in system_Test
cur_lane.move(5, self.afc.short_moves_speed, self.afc.short_moves_accel, True)
File "/home/pi/klipper/klippy/extras/AFC_stepper.py", line 110, in move
self._move(move_value, speed, accel, assist_active)
File "/home/pi/klipper/klippy/extras/AFC_stepper.py", line 78, in _move
self.extruder_stepper.stepper.generate_steps(print_time)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'MCU_stepper' object has no attribute 'generate_steps'
Transition to shutdown state: Internal error on command:"PREP"

limpid echo
#

Yeah you need to revert, you can also do it this way outside kiauh #1405918453755543552 message

limpid echo
#

@idle nimbus is this issue solved?

idle nimbus
copper vale
#

did we get any resolution to this? i'm at the latest AFC (clean install at command line) and just updated klipper through kiauh. Log dump available at https://termbin.com/x2oa

desert gulch
#

Roll back Klipper to a known safe version until AFC is updated. Updates will be posted in #afc-updates when it is safe to update

copper vale
#

sigh, digging deeper it looks like it's an issue with my CAN bus that i run toolhead/BT over... back to the drawing board

copper vale
#

ok, not a CAN issue, that's working fine. i've tried reverting to 5eb07966b (and 126275d1f as suggested in the klipper git issue) and still get the internal error on PREP. i commented out/made false the prep macro in AFC.cfg. My machine now comes online just fine and i can home it, but when i go to load filament, PREP gets called and torpedoes klipper. New logdump at https://termbin.com/5z4s

limpid echo
#

And then restart klipper with prep commented back in

copper vale
#

that worked, just ran PREP and nothing bombed out! thanks jimmyjon!

idle nimbus
#

Deleteting the AFC/AFC.var.unit file worked for me as well. Sorry for the delay in testing. Appreciate everyones help, I'm back up and running!

limpid echo
#

[Solved] Internal error on command: "PREP"

violet flare
#

So you still can't update klipper.

desert gulch
#

Do not do so until #afc-updates says it is safe to do so