Setting up Maya 2026 and PySide6
Hello, I am trying to get PySide6 setup using Autodesk Maya's Python executable. I am migrating from Maya 2023 and PySide2 with Wing 8, where I was able to launch Qt GUIs directly from Wing without any issues.
however after upgrading to Wing 11, Maya 2026, and PySide6, I get an error when trying to launch a Qt GUI from Wing.
"This application failed to start because no qt platform plugin could be initialized."
From searching around internet, I see this is a common problem that affects multiple versions of Qt, and it seems that the solution generally revolves around updating environment variables.
Does anyone have any suggestions on how to resolve this? Thanks.
Comments
Are you able to run the script outside of Wing? If not, my approach would be to make sure there's only one PySide / Qt install in the python environment being used.
If it does work outside of Wing, you might check that older PySide directories are not in the Python Path setting in Wing's Project Properties dialog
I can run the code from within Maya 2026's environment, so it seems like I need to configure something within Wing to mimic Maya's environment.
I should add, that I can import PySide6 modules into the Wing Python Interpreter, the issue occurs when trying to start a new QApplication.
Can you run from the command line?