Is anyone having issues with freezing python source files? #13434
Replies: 5 comments 23 replies
-
I am freezing Micropython with viper code on a ESP32-S3 with 1.22 and have seen no problem |
Beta Was this translation helpful? Give feedback.
-
@kdschlosser Are you able to narrow it down to a particular line or lines? (i.e. it's got to be something in your |
Beta Was this translation helpful? Give feedback.
-
This is the code.
self._param_mv is a memoryview to self._param_buf. I am aware that slicing is not allowed for pointers which is what param_buf is but there is no mention of it not being allowed at all for anything inside of a viper wrapped function. The docs say that these are the limitations
And then it goes on to describe using the ptr* functions.
That's where it states you cannot slice a pointer. BTW there are a ton of typos for the word optimized. in the docs it is spelled "optimised" |
Beta Was this translation helpful? Give feedback.
-
If I am not able to slice the memory view object then that defeats the entire purpose of using it. I am not sure why |
Beta Was this translation helpful? Give feedback.
-
so it appears there is an issue with slicing in general, doesn't matter if it's a string or a memory view object. It's the integers that are being passed as the slice that is the problem. They are not VTYPE_PYOBJ, VTYPE_INT or VTYPE_UINT. I am not exactly what they are being passed as. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to freeze a python source file and I am getting this error.
I have tracked it down to me using the viper code emitter. Issues with this were supposed to have been fixed some 5 years ago but I think there is an issue that came up. This is using the latest release of MicroPython.
I want to make sure it is not something in my setup before opening a bug report for it.
I am compiling for ESP32-S3
Beta Was this translation helpful? Give feedback.
All reactions