Announcements

Between mid-October and November, the content on AREA will be relocated to the Autodesk Community M&E Hub and the Autodesk Community Gallery. Learn more HERE.

standalone.initialize() QT error

standalone.initialize() QT error

jEchoes
Participant Participant
1,105 Views
1 Reply
Message 1 of 2

standalone.initialize() QT error

jEchoes
Participant
Participant
I'm trying to run some processes without opening maya. I'm getting kicked out of mayapy when I initialize maya.standalone. It prints out some errors/warnings about Qt and then leaves mayapy. Im not sure if something else is erroring and the QT messages are just warnings. Any help would be appreciated. Everything I have read doesn't encounter this problem.
 
 

In command prompt or PowerShell I ran the following

 

mayapy

 

 

That opens the mayapy prompt. Then I ran these lines:

 

import maya.standalone as standalone

standalone.initialize(name='python')

 

 

Error message:

 

Qt WebEngine seems to be initialized from a plugin. Please set Qt::AA_ShareOpenGLContexts using QCoreApplication::setAttribute before constructing QGuiApplication. qt.svg: Cannot open file ':/expression.svg', because: No such file or directory qt.svg: Cannot open file ':/expression.svg', because: No such file or directory QWidget: Cannot create a QWidget without QApplication

 

 

 

From here I expect it to stay in mayapy so I can run some python.

 

Maya 2023.0

Windows 11

 

 

0 Likes
1,106 Views
1 Reply
Reply (1)
Message 2 of 2

lee.dunham
Collaborator
Collaborator

It sounds like a plugin using autoload requires the QtWebEngine.

If you disable all of them and try again, do you get the same issue?

0 Likes