Closed bmarr closed 9 months ago
Having the same issue on MacOS
goto
is not a Python feature, it's an external library that uses some weird hacks to emulate that behavior. It works on Python 3.10, but has issues on other versions. I used it because I didn't understand the storage decryption code (which was extracted from disassembly) and didn't know how to write it without goto's, which were seen in the disassembly. If someone has a better idea to rewrite this piece of code, you're more than welcome to do so.
I can try python 3.10. thanks for the help ;) Much appreciated
@bmarr @edestecd v1.5.0 of bk7231tools doesn't use goto anymore. Futhermore, the storage decryption class is rewritten from ground up, and is more reliable.
I was using build_profile.py in tuya-cloudcutter/profile_building and encountered the crash shown below, and was encouraged by @Cossid to create an issue here. The original tuya-cloudcutter issue is tuya-cloudcutter/issues/317
I had indeed followed instructions and used
pip install .
before using build_profile.py. Today I followed the suggestion by @Cossid to trypip install bk7231tools[cli]
but that only reported that it was already installed.I am running on a 64 bit x86_64 system (core2duo laptop with 4GB RAM, booted to Kali Linux installed on hard drive):
The python version used is:
Python 3.11.1 (main, Dec 31 2022, 10:23:59) [GCC 12.2.0] on linux
The first-pass output from build_profile.py is: