Hi,
I tried to use sgtk with Maya2020, but Maya2020 crashes when I run the following code. After investigating sgtk, I found that if I don’t use sso_saml2 module, a dialog is launched normally.
import sys
sys.path.append("path/to/my/sgtk")
import sgtk
from sgtk.authentication.login_dialog import LoginDialog
dlg = LoginDialog(
is_session_renewal=False,
hostname="chp.shotgunstudio.com",
login=None,
http_proxy=None,
fixed_host=False,
session_metadata=None,
)
However, Maya did not crash when I ran the following code alone. I do not know why this difference occurs.
Does anyone know why this is happening ?
I use Maya2020 update4.
Thanks.
import sgtk
from sgtk.authentication.sso_saml2 import SsoSaml2Toolkit
from sgtk.authentication.ui.qt_abstraction import QtGui, QtCore, QtNetwork, QtWebKit, QtWebEngineWidgets
qt_modules = {
"QtCore": QtCore,
"QtGui": QtGui,
"QtNetwork": QtNetwork,
"QtWebKit": QtWebKit,
"QtWebEngineWidgets": QtWebEngineWidgets,
}
SsoSaml2Toolkit("Web Login", qt_modules=qt_modules)