What puzzles me is why this is failing when I was able to circumvent it in the past.
Before I was initializing the engine like this
self.context = self.tk.context_from_entity(“Project”,
self.project[“id”])
self.logger.info(“Context enabled {}”.format(self.context))
self.engine = self.sgtk.platform.start_engine(self.engine_name,
self.tk,
self.context)
self.sgtk.platform.current_engine()._has_ui = True
Where I would trick the current engine into thinking it had the UI. This apparently worked because, well, it works. Haha. (that isn’t to say there’s some other factor involved making this work)
Now with updated toolkit apps I try to boostrap the engine like this:
self.toolkit_manager = self.sgtk.bootstrap.ToolkitManager(sg_user=self._auth_user)
self.toolkit_manager.base_configuration = sgtk:descriptor:app_store?name=tk-basic-config"
self.toolkit_manager.plugin_id = “basic.my_toolkit_plugin”
self.engine = self.toolkit_manager.bootstrap_engine(“tk-desktop”, entity={“type”: “Project”, “id”: self.project[“id”]})
Does anything here look out of the ordinary?
If I use tk-desktop as the engine I will get this error:
"Looks like you are trying to run an App that uses a QT based UI, however the "
ank.errors.TankError: Looks like you are trying to run an App that uses a QT based UI, however the python installation that the Desktop engine is currently using does not seem to contain a valid PySide or PyQt4 install. Either install PySide into your python environment or alternatively switch back
to using the native Shotgun Desktop python installation, which includes full QT support.
What might be causing this to happen when it wouldn’t happen in the first instance? Let’s just say for the sake of argument that I’m using tk-desktop as the engine instead of what I mentioned before. That was just me trying a test.
If you could advise an approach to bootstrapping or creating a means of using this without a UI that would be great!
Thanks!