Ok a few things from your last couple replies. You should not need to install Python or PySide2, as they are already bundled within Maya. You only need to install things if your goal is to run a standalone application that wants to load and use maya.standalone.
The code snippet you are running from within the Maya Script Editor should not be trying to create and start a new QApplication. One is already running for you as the Maya app itself. You only need to create and show the widgets. On Fri, Aug 23, 2024 at 2:16 PM Yoga Yasahardja <yogayasahar...@gmail.com> wrote: > Hi, Justin, Thank you for your reply! > > I checked that my maya 2023 used PySide2, I already try installing python > 3.9 and used PySide2 but it didn't work either. > Sorry as I'm new to Qt environment, not sure if I understand your reply > well. > > Also, > is there any suggestion what should I use to generate PySide UI generation > you mentioned? > > Thank you. > On Friday, August 23, 2024 at 11:13:45 AM UTC+9 Yoga Yasahardja wrote: > >> additionally I can't even run this (screenshot attached). >> >> On Friday, August 23, 2024 at 10:53:21 AM UTC+9 Justin Israel wrote: >> >>> You can't really pick and choose your version of python or PySide vs >>> PyQt. If you are going to run it within Maya, you need to use the version >>> of python and the type of Qt binding that it provides. When you see >>> "shiboken" in the stacktrace, that is telling you that you need to be using >>> PySide2. I see you are also using some generated UI code that came from >>> PyQt5, so that needs to be generated from the pyside UI generation. >>> >>> On Fri, Aug 23, 2024 at 12:48 PM Yoga Yasahardja <yogayas...@gmail.com> >>> wrote: >>> >>>> I already try it using python 3.12 and 3.9. Import from PySide2, PyQt5, >>>> from Qt, all same result. >>>> >>>> -- >>>> You received this message because you are subscribed to the Google >>>> Groups "Python Programming for Autodesk Maya" group. >>>> To unsubscribe from this group and stop receiving emails from it, send >>>> an email to python_inside_m...@googlegroups.com. >>>> To view this discussion on the web visit >>>> https://groups.google.com/d/msgid/python_inside_maya/10dcd2e8-c601-439f-b154-faa10b753bfcn%40googlegroups.com >>>> <https://groups.google.com/d/msgid/python_inside_maya/10dcd2e8-c601-439f-b154-faa10b753bfcn%40googlegroups.com?utm_medium=email&utm_source=footer> >>>> . >>>> >>> -- > You received this message because you are subscribed to the Google Groups > "Python Programming for Autodesk Maya" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to python_inside_maya+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/python_inside_maya/6b4c3156-62b0-47ee-b69f-39645d1a20f0n%40googlegroups.com > <https://groups.google.com/d/msgid/python_inside_maya/6b4c3156-62b0-47ee-b69f-39645d1a20f0n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group. To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_maya+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA23BmajU8ashqtpvuo%2BWHH380K%3DeNk1kmWbv3RmL0sYiA%40mail.gmail.com.