Python print() inside my script is not coming out

When I look at “live log” it does not appear. Is it visible somewhere else?

Hm… Admittedly, I’m not one of the local Python experts, but this sounds like stdout buffering:

(Basically, there’s often a holding bin that saves output up to 65536 bytes or so, for efficiency, before actually sending it on to the lower-level I/O channel.)

@pitosalas you can set PYTHONUNBUFFERED=1 as an environment variable; this will disable the buffering mechanism and send output to stdout immediately, without requiring code changes.

You can set this in the Fly.toml file like so:

[env]
PYTHONUNBUFFERED=1