Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 1251

Python • Re: MemoryError: memory allocation failed, allocating 21858 bytes

$
0
0
I have a setup with a raspberry pi pico
I have 3000 lines of code
when I compile I get this error:
MemoryError: memory allocation failed, allocating 21858 bytes
or
RuntimeError: bytecode overflow

'...

How can I solve this problem?
I cross compile my PICO uPython programs on the host computer I'm running Thonny from. I then copy the .MPY back to the PICO.

Statistics: Posted by DS256 — Thu Oct 24, 2024 5:32 pm



Viewing all articles
Browse latest Browse all 1251

Trending Articles