Publisher Standalone Expected PySide/Qt Version


I’m trying to launch the shotgun standalone publisher programatically by using the tk-shell engine and executing the Publish... command.

I know we need some version of PySide/Qt available for this to work, so I added to PYTHONPATH the packages that come with Shotgrid, located in {SHOTGRID_INSTALL_PATH}/Python/Lib/site-packages, which includes Qt.

However, it seems that is not the expected version, since I’m getting this error when running the command:

tk-shell: 'PySide.QtGui.QHeaderView' object has no attribute 'setSectionResizeMode'

This works normally using the SG Desktop. So my question is: when launching from SG Desktop, where does it get the PySide/Qt packages from?