No module named 'tank_vendor.six.moves'

We are using a distributed configuration and one of the artist is having this issue loading a project which works for others

The error is the following:

No module named ‘tank_vendor.six.moves’

Traceback (most recent call last):
File “C:\Program Files\Shotgun\Resources\Desktop\Python\bundle_cache\app_store\tk-desktop\v2.8.5\python\utils\bootstrap_utilities.py”, line 216, in start_engine
return manager.bootstrap_engine(“tk-desktop”, self._project)
~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “C:\Users\fermi\AppData\Roaming\Shotgun\exodoanimation\site.basic.desktop\cfg\install\core\python\tank\bootstrap\manager.py”, line 487, in bootstrap_engine
tk = self._bootstrap_sgtk(engine_name, entity)
File “C:\Users\fermi\AppData\Roaming\Shotgun\exodoanimation\site.basic.desktop\cfg\install\core\python\tank\bootstrap\manager.py”, line 1100, in bootstrap_sgtk
tk, user = config.get_tk_instance(self.sg_user)
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
File “C:\Users\fermi\AppData\Roaming\Shotgun\exodoanimation\site.basic.desktop\cfg\install\core\python\tank\bootstrap\configuration.py”, line 127, in get_tk_instance
if self.swap_core_if_needed(python_core_path):
~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^
File “C:\Users\fermi\AppData\Roaming\Shotgun\exodoanimation\site.basic.desktop\cfg\install\core\python\tank\bootstrap\configuration.py”, line 220, in swap_core_if_needed
CoreImportHandler.swap_core(target_python_core_path)
~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
File “C:\Users\fermi\AppData\Roaming\Shotgun\exodoanimation\site.basic.desktop\cfg\install\core\python\tank\bootstrap\import_handler.py”, line 92, in swap_core
import tank
File "C:\Users\fermi\AppData\Roaming\Shotgun\exodoanimation\p355c331.basic.desktop\cfg\install\core\python\tank_init.py", line 112, in
from . import authentication
File "C:\Users\fermi\AppData\Roaming\Shotgun\exodoanimation\p355c331.basic.desktop\cfg\install\core\python\tank\authentication_init.py", line 35, in
from .shotgun_authenticator import ShotgunAuthenticator
File “C:\Users\fermi\AppData\Roaming\Shotgun\exodoanimation\p355c331.basic.desktop\cfg\install\core\python\tank\authentication\shotgun_authenticator.py”, line 13, in
from .sso_saml2 import has_sso_info_in_cookies, has_unified_login_flow_info_in_cookies
File "C:\Users\fermi\AppData\Roaming\Shotgun\exodoanimation\p355c331.basic.desktop\cfg\install\core\python\tank\authentication\sso_saml2_init.py", line 15, in
from .core.errors import (  # noqa
…
)
File "C:\Users\fermi\AppData\Roaming\Shotgun\exodoanimation\p355c331.basic.desktop\cfg\install\core\python\tank\authentication\sso_saml2\core_init.py", line 15, in
from .sso_saml2_core import SsoSaml2Core  # noqa
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “C:\Users\fermi\AppData\Roaming\Shotgun\exodoanimation\p355c331.basic.desktop\cfg\install\core\python\tank\authentication\sso_saml2\core\sso_saml2_core.py”, line 52, in
from tank_vendor.six.moves.urllib.parse import urlencode
ModuleNotFoundError: No module named ‘tank_vendor.six.moves’

No idea how to solve this, have deleted local cache and local bundles, also reinstalling SG desktop

Any ideas to solve this?

The latest tk-core updates have moved around a bunch of things relating to third party libraries and also removed support for six as everything is now python 3 only.

It somehow might have found it’s way to that configuration?

We were able to reproduce this issue after updating FPT desktop to v3.0.0.

To sum up, if you have a zero config site configuration or pipeline site conifg up to date and a project configuration with an older tk-core, it will break with your error. Try updating the project’s core version to match the site configuration (it might be the latest)

Hi @kuri, I hope you were able to figure out the issue on your project.

This is most likely an issue with Python 3.13 loading an older version of tk-core which is not compatible with Python 3.13 (Python 3.13 is unable to load the six module).

We recently updated the “IMPORTANT - Toolkit Configuration Version Requirement” section of the FlowPT Desktop v3.0.0 Release Notes. You might find useful information there about your issue.

Uodated the core version for project configuration, now im able to launch project apps with latest desktop version

Thank you all