Tk-core pkgs.zip shipping Windows builds to Linux machines

Hi all,

As of this morning I’m unable to connect our Flow Production Tracking to my Flame project. The last error in the terminal is:
NotADirectoryError: [Errno 20] Not a directory: ‘/home/flame.4/.shotgun/imagesandsound/site.basic.flame.2026.2.2/cfg/install/core/requirements/3.11/pkgs.zip/shotgun_api3/lib/sgutils.py’
[PYTHON HOOK] Could not convert return value of ‘/opt/Autodesk/presets/2026.2.2/shotgun/flame_hooks/sg_initialize.py:getMainMenuCustomUIActions’

I have tried to trouble shoot via Claude and this appears to be the issue:

We’re running Flame 2026.2.2 on Linux and as of yesterday FPTR integration has stopped working entirely. After tracing through the error we’ve found that the pkgs.zip files in the bootstrap cache under ~/.shotgun/ for both Python 3.9 and 3.11 are Windows-built bundles (containing cp311-win_amd64.pyd / cp39-win_amd64.pyd files) and are missing shotgun_api3/lib/sgutils.py entirely.

The full error is:

NotADirectoryError: [Errno 20] Not a directory: 
'...cfg/install/core/requirements/3.11/pkgs.zip/shotgun_api3/lib/sgutils.py'

This was working two days ago with no changes on our end. We’re on tk-core 0.22.4.

Has anyone else seen this? Is there a known-good pkgs.zip we can drop in manually as a workaround while this is investigated?

OK, apologies for the above as that was me working through Claude. The Windows build to Linux machines thing is a red herring.

What is actually happening:

Because this file didn’t exist:

‘/home/flame.4/.shotgun/imagesandsound/site.basic.flame.2026.2.2/cfg/install/core/requirements/3.11/pkgs.zip/shotgun_api3/lib/sgutils.py’

I remade the zip file to include sgutils.py, sgsix.py, and six.py from

‘/software/shotgun//install/core/python/tank_vendor/shotgun_api3/lib’

and it has been working now. I may have a funny install going on but hopefully this helps someone.