I ended up using Anaconda as it was the only way I could figure out to make PYO work, as detailed in
I still haven’t managed to get PYO to work with the standalone distribution, only with Anaconda. When I remove the audio code from the example above, and run it from the standalone Coder, the crash doesn’t happen - so it could either be an interaction with Anaconda or an interaction with the audio code.