Acados python segmentation fault with PYTHONOPTIMIZE=1

Hello all,

Not a big deal but I had a fight for quite some time with it so I want to share this issue. For another application, I had to set PYTHONOPTIMIZE to 1 and put it in my .zshrc.

I came back to my ACADOS project later on and realized that all the Python scripts were leading to a segmentation fault. So after triple checking my environment variables, installation, and raging a lot I realized that this PYTHONOPTIMIZE set to 1 was the reason behind it.

So even if it is easily solved I’d like to know if this behavior is expected.

Many thanks