OK, some mild progress. I can get round the ‘can’t import’ sgtk bit by specifically adding the python folder within the project to my path. Although I’m not actually sure that this bypass is a good ideas, as I then get these errors instead (again only in R23, R21 is still fine. so I don’t understand whats being dealt with differently between the two):
Fri Feb 26 17:09:09 2021 - Shotgun Debug | Cinema engine | Debug: Shotgun tk-cinema: Cinema on Windows can deadlock if QtWebEngineWidgets is imported. Setting SHOTGUN_SKIP_QTWEBENGINEWIDGETS_IMPORT=1...
Fri Feb 26 17:09:09 2021 - Shotgun Debug | Cinema engine | Debug: Shotgun tk-cinema: PySide2 not detected - trying for PySide now...
Fri Feb 26 17:09:09 2021 - Shotgun Debug | Cinema engine | Debug: Shotgun tk-cinema: PySide not detected - it will be added to the setup now...
PySide2/__init__.py: Unable to import shiboken2 from C:\Program Files\Maxon Cinema 4D R23\resource\modules\python\libs\python37, C:\Users\jhudson\AppData\Roaming\Maxon\Maxon Cinema 4D R23_DBA5903C\python37, C:\Program Files\Maxon Cinema 4D R23\resource\modules\python\libs\python37.win64.framework\lib, C:\Program Files\Maxon Cinema 4D R23\resource\modules\python\libs\python37.win64.framework\dlls, C:\Program Files\Shotgun, C:\Users\jhudson\AppData\Roaming\Maxon\python37\libs, C:\Users\jhudson\AppData\Roaming\Maxon\Maxon Cinema 4D R23_DBA5903C\python37\libs, C:\Program Files\Maxon Cinema 4D R23\resource\modules\python\libs\python37.win64.framework\lib\site-packages, V:\pipeline\shotgun\sgtk_configs\c4d_test\install\core\python, C:/Program Files/Shotgun\Python\Lib\site-packages
Fri Feb 26 17:09:09 2021 - Shotgun Debug | Cinema engine | Debug: Shotgun qt_importer: Requesting Qt4-like interface
PySide2/__init__.py: Unable to import shiboken2 from C:\Program Files\Maxon Cinema 4D R23\resource\modules\python\libs\python37, C:\Users\jhudson\AppData\Roaming\Maxon\Maxon Cinema 4D R23_DBA5903C\python37, C:\Program Files\Maxon Cinema 4D R23\resource\modules\python\libs\python37.win64.framework\lib, C:\Program Files\Maxon Cinema 4D R23\resource\modules\python\libs\python37.win64.framework\dlls, C:\Program Files\Shotgun, C:\Users\jhudson\AppData\Roaming\Maxon\python37\libs, C:\Users\jhudson\AppData\Roaming\Maxon\Maxon Cinema 4D R23_DBA5903C\python37\libs, C:\Program Files\Maxon Cinema 4D R23\resource\modules\python\libs\python37.win64.framework\lib\site-packages, V:\pipeline\shotgun\sgtk_configs\c4d_test\install\core\python, C:/Program Files/Shotgun\Python\Lib\site-packages
Fri Feb 26 17:09:09 2021 - Shotgun Error | Cinema engine | Shotgun tk-cinema: Default engine QT definition failed to find QT. This may need to be subclassed.
Traceback (most recent call last):
File "V:\pipeline\shotgun\sgtk_configs\c4d_test\install\core\python\tank\platform\engine.py", line 2139, in _define_qt_base
importer = QtImporter()
File "V:\pipeline\shotgun\sgtk_configs\c4d_test\install\core\python\tank\util\qt_importer.py", line 51, in __init__
) = self._import_modules(interface_version_requested)
File "V:\pipeline\shotgun\sgtk_configs\c4d_test\install\core\python\tank\util\qt_importer.py", line 369, in _import_modules
pyside = self._import_pyside()
File "V:\pipeline\shotgun\sgtk_configs\c4d_test\install\core\python\tank\util\qt_importer.py", line 180, in _import_pyside
self._to_version_tuple(QtCore.qVersion()),
AttributeError: 'NoneType' object has no attribute 'qVersion'
Fri Feb 26 17:09:09 2021 - Shotgun Debug | Cinema engine | Debug: Shotgun qt_importer: Requesting Qt5-like interface
PySide2/__init__.py: Unable to import shiboken2 from C:\Program Files\Maxon Cinema 4D R23\resource\modules\python\libs\python37, C:\Users\jhudson\AppData\Roaming\Maxon\Maxon Cinema 4D R23_DBA5903C\python37, C:\Program Files\Maxon Cinema 4D R23\resource\modules\python\libs\python37.win64.framework\lib, C:\Program Files\Maxon Cinema 4D R23\resource\modules\python\libs\python37.win64.framework\dlls, C:\Program Files\Shotgun, C:\Users\jhudson\AppData\Roaming\Maxon\python37\libs, C:\Users\jhudson\AppData\Roaming\Maxon\Maxon Cinema 4D R23_DBA5903C\python37\libs, C:\Program Files\Maxon Cinema 4D R23\resource\modules\python\libs\python37.win64.framework\lib\site-packages, V:\pipeline\shotgun\sgtk_configs\c4d_test\install\core\python, C:/Program Files/Shotgun\Python\Lib\site-packages
Fri Feb 26 17:09:09 2021 - Shotgun Debug | Cinema engine | Debug: Shotgun qt_importer: No Qt matching that interface was found.
Traceback (most recent call last):
File "V:\resource\users\Jon H\PyCharmProjects\tk-cinema-master\startup\shotgun.pyp", line 179, in <module>
register_plugins()
File "V:\resource\users\Jon H\PyCharmProjects\tk-cinema-master\startup\shotgun.pyp", line 167, in register_plugins
for item in engine.import_module("tk_cinema").constant_apps.menu_prebuild:
AttributeError:'NoneType' object has no attribute 'import_module'
So now it’s complaining about shiboken2 and Qt stuff - any thoughts?
I know I’m not the only person interested in this!