Closed jackrosenthal closed 9 months ago
Thanks @jackrosenthal for reporting this - I originally thought my image was corrupted! This is the same issue as #15 I think.
I bumped into this as well, with Python 3.11, on Debian bookworm, when trying to use upk2esphome.
I spun up a container with Debian buster (oldstable), which shipped with Python 3.9. However, I then bumped into another problem: LibreTiny's upk2esphome needs Python >= 3.10 :( I can of course use a Python container with 3.10, but It'd be nice to get this fixed. Thanks for all of your work!
@jackrosenthal @paravoid v1.5.0 of bk7231tools doesn't use goto anymore. Futhermore, the storage decryption class is rewritten from ground up, and is more reliable.
The
goto.py
module appears to be completely broken in Python 3.11, likely due to bytecode format changes.Here is an example traceback (from cloudcutter profile builder, but originates from this library):
The function likely needs re-written to not use this funny goto code, or the goto logic needs updated for the new bytecode formats.