Discussion:
[Maya-Python] Errors when trying to import from PySide
jettam
2017-10-11 04:00:54 UTC
Permalink
I am learning how to build GUIs in Maya. I am using maya 2017

When I run this command I get this error. I thought PySide was built into
Maya?

from PySide import QtGui, QtCore, QtUiTools
# Error: No module named PySide
# Traceback (most recent call last):
# File "<maya console>", line 1, in <module>
# ImportError: No module named PySide #

I also get this error when trying to run Shiboken

from shiboken import wrapInstance
# Error: No module named shiboken
# Traceback (most recent call last):
# File "<maya console>", line 1, in <module>
# ImportError: No module named shiboken #
--
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+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/a530ffaf-dafa-4239-884b-e8d4378942a7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Justin Israel
2017-10-11 04:05:55 UTC
Permalink
Its supposed to be available. Have you done something to your PYTHONPATH to
remove Maya's own site-packages?
Post by jettam
I am learning how to build GUIs in Maya. I am using maya 2017
When I run this command I get this error. I thought PySide was built into
Maya?
from PySide import QtGui, QtCore, QtUiTools
# Error: No module named PySide
# File "<maya console>", line 1, in <module>
# ImportError: No module named PySide #
I also get this error when trying to run Shiboken
from shiboken import wrapInstance
# Error: No module named shiboken
# File "<maya console>", line 1, in <module>
# ImportError: No module named shiboken #
--
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
To view this discussion on the web visit
https://groups.google.com/d/msgid/python_inside_maya/a530ffaf-dafa-4239-884b-e8d4378942a7%40googlegroups.com
<https://groups.google.com/d/msgid/python_inside_maya/a530ffaf-dafa-4239-884b-e8d4378942a7%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
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+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA1X_ukY6jj_kvbpg73E6Qagij6-P9Ruuz-%2Buyw8FScgrw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Joe Weidenbach
2017-10-11 04:08:18 UTC
Permalink
Maya 2017 has PySide2 (as compared to PySide), so it would be:

from PySide2 import QtCore, QtWidgets

And so on :)
​
Post by Justin Israel
Its supposed to be available. Have you done something to your PYTHONPATH
to remove Maya's own site-packages?
Post by jettam
I am learning how to build GUIs in Maya. I am using maya 2017
When I run this command I get this error. I thought PySide was built
into Maya?
from PySide import QtGui, QtCore, QtUiTools
# Error: No module named PySide
# File "<maya console>", line 1, in <module>
# ImportError: No module named PySide #
I also get this error when trying to run Shiboken
from shiboken import wrapInstance
# Error: No module named shiboken
# File "<maya console>", line 1, in <module>
# ImportError: No module named shiboken #
--
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
To view this discussion on the web visit
https://groups.google.com/d/msgid/python_inside_maya/a530ffaf-dafa-4239-884b-e8d4378942a7%40googlegroups.com
<https://groups.google.com/d/msgid/python_inside_maya/a530ffaf-dafa-4239-884b-e8d4378942a7%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
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
To view this discussion on the web visit
https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA1X_ukY6jj_kvbpg73E6Qagij6-P9Ruuz-%2Buyw8FScgrw%40mail.gmail.com
<https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA1X_ukY6jj_kvbpg73E6Qagij6-P9Ruuz-%2Buyw8FScgrw%40mail.gmail.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
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+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAM33%3Da6r36zbQjEsazB9z5NHdFWA-6tOgbc9C%2B-JW_72OR3jbw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
jettam
2017-10-11 04:19:47 UTC
Permalink
Thank you! This forum is so good.
Post by Joe Weidenbach
from PySide2 import QtCore, QtWidgets
And so on :)
​
Post by Justin Israel
Its supposed to be available. Have you done something to your PYTHONPATH
to remove Maya's own site-packages?
Post by jettam
I am learning how to build GUIs in Maya. I am using maya 2017
When I run this command I get this error. I thought PySide was built
into Maya?
from PySide import QtGui, QtCore, QtUiTools
# Error: No module named PySide
# File "<maya console>", line 1, in <module>
# ImportError: No module named PySide #
I also get this error when trying to run Shiboken
from shiboken import wrapInstance
# Error: No module named shiboken
# File "<maya console>", line 1, in <module>
# ImportError: No module named shiboken #
--
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
<javascript:>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/python_inside_maya/a530ffaf-dafa-4239-884b-e8d4378942a7%40googlegroups.com
<https://groups.google.com/d/msgid/python_inside_maya/a530ffaf-dafa-4239-884b-e8d4378942a7%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
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
To view this discussion on the web visit
https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA1X_ukY6jj_kvbpg73E6Qagij6-P9Ruuz-%2Buyw8FScgrw%40mail.gmail.com
<https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA1X_ukY6jj_kvbpg73E6Qagij6-P9Ruuz-%2Buyw8FScgrw%40mail.gmail.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
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+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/9f88869e-e2f7-4668-a665-257f67607642%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Justin Israel
2017-10-11 04:19:44 UTC
Permalink
Post by Joe Weidenbach
from PySide2 import QtCore, QtWidgets
And so on :)
Nice catch

​
Post by Joe Weidenbach
Post by Justin Israel
Its supposed to be available. Have you done something to your PYTHONPATH
to remove Maya's own site-packages?
Post by jettam
I am learning how to build GUIs in Maya. I am using maya 2017
When I run this command I get this error. I thought PySide was built
into Maya?
from PySide import QtGui, QtCore, QtUiTools
# Error: No module named PySide
# File "<maya console>", line 1, in <module>
# ImportError: No module named PySide #
I also get this error when trying to run Shiboken
from shiboken import wrapInstance
# Error: No module named shiboken
# File "<maya console>", line 1, in <module>
# ImportError: No module named shiboken #
--
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
To view this discussion on the web visit
https://groups.google.com/d/msgid/python_inside_maya/a530ffaf-dafa-4239-884b-e8d4378942a7%40googlegroups.com
<https://groups.google.com/d/msgid/python_inside_maya/a530ffaf-dafa-4239-884b-e8d4378942a7%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
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
To view this discussion on the web visit
Post by Justin Israel
https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA1X_ukY6jj_kvbpg73E6Qagij6-P9Ruuz-%2Buyw8FScgrw%40mail.gmail.com
<https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA1X_ukY6jj_kvbpg73E6Qagij6-P9Ruuz-%2Buyw8FScgrw%40mail.gmail.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
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
To view this discussion on the web visit
https://groups.google.com/d/msgid/python_inside_maya/CAM33%3Da6r36zbQjEsazB9z5NHdFWA-6tOgbc9C%2B-JW_72OR3jbw%40mail.gmail.com
<https://groups.google.com/d/msgid/python_inside_maya/CAM33%3Da6r36zbQjEsazB9z5NHdFWA-6tOgbc9C%2B-JW_72OR3jbw%40mail.gmail.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
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+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA15ZSTmgFN%3DCdAjLEZZF0OLn%2BoO8CVAL-p%2BFb5zQ0VDLw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Loading...