The gast error looks like a historic thing (and not quite the same error) “On TensorFlow 2.2 or higher, the gast bug has been fixed and gast 0.3+ would be required.”. I’m using tensorflow 2.4 and gast 0.3.3. If I attempt to update gast to the latest version it breaks tensorflow even from the python interpreter.
The error I see is only with pyinstaller, and relates to autograph not being able to access the BaseBatchNorm call (or possibly code within this?) method once packaged.