Logextract.py error "startswith first arg must be bytes or a tuple of bytes, not str"

Basic Information:

Printer Model: Custom Printer
MCU / Printerboard: SKR PICO
klippy.log
klippy (3).log (2.9 MB)

anand@arm-64:~/workdir$ python3 ~/klipper/scripts/logextract.py ./klippy.log
Traceback (most recent call last):
  File "/home/anand/klipper/scripts/logextract.py", line 610, in <module>
    main()
  File "/home/anand/klipper/scripts/logextract.py", line 591, in main
    if line.startswith('Git version'):

TypeError: startswith first arg must be bytes or a tuple of bytes, not str
I’ve got this error when i every time using logextract.py.
What is the problem.
the klippy.log is given above i am trying to recover a print due to timer too close error.

1 Like

i got the same error and would need some help since i am not good at python and linux, but i guess it has something to do with the 64bit version of the raspberry, since i also have this version installed…

The logextract.py developer tool has not yet been ported to python3. It will require using a python2 binary until someone gets around to porting it.

-Kevin