<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic standalone.initialize() QT error in Maya Programming Forum</title>
    <link>https://forums.autodesk.com/t5/maya-programming-forum/standalone-initialize-qt-error/m-p/12101213#M951</link>
    <description>&lt;DIV&gt;&lt;DIV&gt;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.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;P&gt;&lt;STRONG&gt;In command prompt or PowerShell I ran the following&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;mayapy&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;That opens the mayapy prompt. Then I ran these lines:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;import maya.standalone as standalone&lt;/P&gt;&lt;P&gt;standalone.initialize(name='python')&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Error message:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;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&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From here I expect it to stay in mayapy so I can run some python.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maya 2023.0&lt;/P&gt;&lt;P&gt;Windows 11&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Fri, 14 Jul 2023 07:29:19 GMT</pubDate>
    <dc:creator>jEchoes</dc:creator>
    <dc:date>2023-07-14T07:29:19Z</dc:date>
    <item>
      <title>standalone.initialize() QT error</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/standalone-initialize-qt-error/m-p/12101213#M951</link>
      <description>&lt;DIV&gt;&lt;DIV&gt;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.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;P&gt;&lt;STRONG&gt;In command prompt or PowerShell I ran the following&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;mayapy&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;That opens the mayapy prompt. Then I ran these lines:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;import maya.standalone as standalone&lt;/P&gt;&lt;P&gt;standalone.initialize(name='python')&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Error message:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;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&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From here I expect it to stay in mayapy so I can run some python.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maya 2023.0&lt;/P&gt;&lt;P&gt;Windows 11&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 14 Jul 2023 07:29:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/standalone-initialize-qt-error/m-p/12101213#M951</guid>
      <dc:creator>jEchoes</dc:creator>
      <dc:date>2023-07-14T07:29:19Z</dc:date>
    </item>
    <item>
      <title>Re: standalone.initialize() QT error</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/standalone-initialize-qt-error/m-p/12175968#M952</link>
      <description>&lt;P&gt;It sounds like a plugin using autoload requires the QtWebEngine.&lt;/P&gt;&lt;P&gt;If you disable all of them and try again, do you get the same issue?&lt;/P&gt;</description>
      <pubDate>Wed, 16 Aug 2023 20:53:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/standalone-initialize-qt-error/m-p/12175968#M952</guid>
      <dc:creator>lee.dunham</dc:creator>
      <dc:date>2023-08-16T20:53:01Z</dc:date>
    </item>
  </channel>
</rss>

