Please include the following information when submitting a bug report:
WiPy
Pycom 1.20.2.r6 (git checkout v1.20.2.r6)
What I did: paste custom Python code into "esp32/frozen/Custom", compiled with xtensa 1.22.0-80 as instruction show in README.md
What you expecte: device running without problems
What happened instead: errors like:
Reason: unsupported types for __lt__: 'NoneType', 'int'
Reason: unsupported types for __truediv__: 'float', 'function'
Reason: unsupported types for __lt__: 'NoneType', 'int'
Reason: unsupported type for __hash__: 'dict'
see also error search history where members in Micropython provided some help.
seems to be solvable by using a newer version of xtensa compiler (1.22.0-98). ESP download page points to an even newer version.
GCC version did not matter, 10.3.0 and 11.2.0 produced same binaries
devices did not matter, appeared on all devices used, and disappeared when using newer compiler.
source code size and version did not matter, appeared on several versions
So, it could be worth updating the download link to a newer compiler.
Please include the following information when submitting a bug report:
see also error search history where members in Micropython provided some help.
https://forum.micropython.org/viewtopic.php?f=18&t=11653&p=63392#p63392 https://forum.pycom.io/topic/7408/strange-micropython-code-execution-with-custom-but-unused-c-code
seems to be solvable by using a newer version of xtensa compiler (1.22.0-98). ESP download page points to an even newer version. GCC version did not matter, 10.3.0 and 11.2.0 produced same binaries devices did not matter, appeared on all devices used, and disappeared when using newer compiler. source code size and version did not matter, appeared on several versions
So, it could be worth updating the download link to a newer compiler.