Shotgrid Desktop App wont load after Jan 10 update

Hi there ShotGrid Support!

Our team is having issues opening Shotgrid Desktop App after the app had auto-updated today on Jan 10 9:30 AM AEST

image

It is tracebacked to the framework tk-framework-desktopstartup and im not sure if this is due to the new Python 3 only support update from now on.

Many Thanks,
Anthony

We got burned by this as well. Our temp solution was to isolate the v2.1.12 tk-framework-desktopstartup and use SGTK_DESKTOP_STARTUP_LOCATION env var pointed at that folder.

Yes this worked after a restart and setting the env variable on startup!

Btw how did you find out that was the env variable to use to path the desktop startup?

You can find documentation using the environment variable here

I compared the location.py file in both tk-framework-desktopstartup v2.1.13 and v2.1.12 and this is the difference :

in v2.1.12 :
return yaml.load(location_file) or dev_descriptor
in v2.1.13:
return yaml.load(location_file, Loader=yaml.FullLoader) or dev_descriptor

From Stackoverflow : The FullLoader class is only available in PyYAML 5.1 and later.
I guess the yaml module that comes bundled with shotgrid desktop is not up to date ?

Anyone from SG support ? This needs an urgent fix

1 Like

Currently working on this and can confirm that changing
%APPDATA%\Shotgun\desktop\install\app_store\tk-framework-desktopstartup\v2.1.13\python\shotgun_desktop\location.py
line 71
return yaml.load(location_file, Loader=yaml.FullLoader) or dev_descriptor
to the following

try:
    return yaml.load(location_file, Loader=yaml.FullLoader) or dev_descriptor
except AttributeError:
    return yaml.load(location_file) or dev_descriptor

fixes the error on SG Desktop launch. Obviously directly modifying the python files inside tk-framework-desktopstartup is not advised but does seem to point to the distributed yaml inside
%APPDATA%\Shotgun\desktop\install\app_store\tk-framework-desktopstartup\v2.1.13\python\tk-core\python\tank_vendor not being a supported version.

1 Like

Looks like SG Desktop is now loading v2.1.12 by default and a pull request is waiting to be merged on Github

3 Likes

Seems to have been fixed:

1 Like