Help virtual_sdcard dispatch

Basic Information:

Printer Model: Moded ender 3 v2
MCU / Printerboard: octopus v1.1
klippy.log
klippy.log (23.5 KB)

Describe your issue:

i am setting up my new printer board with mainsail
i am really far but i got to a wall again
i want to start a print and it auto stops after it try to heating the bed then if i try to resume it just stops again if i try to cancel the print it wont let me and i am not getting a viseble error on the webserver or screen

the error it gives in the klippy.log is
virtual_sdcard dispatch
Traceback (most recent call last):
File “/home/pi/klipper/klippy/extras/virtual_sdcard.py”, line 264, in work_handler
self.gcode.run_script(line)
File “/home/pi/klipper/klippy/gcode.py”, line 216, in run_script
self._process_commands(script.split(‘\n’), need_ack=False)
File “/home/pi/klipper/klippy/gcode.py”, line 200, in _process_commands
self._respond_error(str(e))
UnicodeEncodeError: ‘ascii’ codec can’t encode character u’\ufeff’ in position 20: ordinal not in range(128)
Exiting SD card print (position 314)

if you know how to fix this pleas help me

thx for the help already

This looks like there are “strange” characters either in your gcode filename or within the gcode itself. Please post the gcode file you wanted to print

this is the gcode
CE3_M5_Nut.txt (146.3 KB)

i canged the file extention other wise i cant upload it

image

The red marked characters are usually invisible unless you set an editor to ANSI encoding. Correct these and it should work.

1 Like