Hi,
So I do a lot of publishing via the API - bootstrapping the toolkit and accessing the publish plugins from tk-multi-publish2.
This works fine for python2.7.
I’ve recently started testing it with python 3 and when I iterate through all the available apps for the engine I’ve started, tk-multi-publish2 does not show up. I tried this from 3.6-3.9.
Only 3.6 works.
Any idea why the same code base works for python2.7 and 3.6 but not for 3.7 and above? The fact that I’m pinned to python3.6 is a bit frustrating.
This is a pared-down snippet of what I run:
toolkit_manager = sgtk.bootstrap.ToolkitManager(sg_user=auth_user)
base_cfg = "sgtk:descriptor:app_store?name=tk-basic-config"
toolkit_manager.base_configuration = base_cfg
toolkit_manager.pipeline_configuration = 249
plugin_id = "basic.my_toolkit_plugin"
toolkit_manager.plugin_id = plugin_id
engine = toolkit_manager.bootstrap_engine(
engine_name,
entity={"type": "Project", "id": project["id"]}
)
for app in engine.apps:
LOGGER.debug(app)
and for 2.7, 3.6 the log displays (this is the base tk-shotgun app on a fresh test project config):
tk-multi-launchapp
tk-multi-launchhiero
tk-multi-launchmari
tk-multi-launchmotionbuilder
tk-multi-publish2
tk-multi-screeningroom
tk-shotgun-launchfolder
and the same code run on 3.7-above:
tk-multi-launchapp
tk-multi-launchhiero
tk-multi-launchmari
tk-multi-launchmotionbuilder
tk-multi-screeningroom
tk-shotgun-launchfolder
No tk-multi-publish2.
Thoughts or solutions would be greatly appreciated!
Thanks!