Thonny RecursionError

Hello,

I’ve installed the latest Trixie image, and the latest software for AI HAT+ (hailo-apps 25.12.0, hailo-tappas-core-python-binding 5.1.0, hailort 4.23.0).

In the venv, python pose_estimation.py runs fine, and I can edit the .py script in Geany and it runs fine (after setting up to execute python in the venv).

In Thonny though (set up to execute python in the venv), I’m only getting error messages:

object address  : 0x7ffeca0f7220
object refcount : 3
object type     : 0x9fb148
object type name: RecursionError
object repr     : RecursionError('maximum recursion depth exceeded')
lost sys.stderr

Process ended with exit code 1.

On the previous microSD card with hailo-infra, Thonny ran the code without this problem.

Do I have to change something in Thonny’s settings to run the code?

Thanks,

Gabor

If I am the first one to find this error with Thonny, I wonder which IDE others are using for editing Python code on the RPi. Geany, Visual Studio Code, or something else?

Until a new version of Thonny arrives, the fix is Menu / Run / Run current script in terminal (Ctrl-T).

Ctrl-T doesn’t work for me as I access the RPi with Connect in a browser, and Ctrl-T opens a new tab in the browser instead.

F5 to Run was elegant, it will come back with a new version.

Gabor