Maya 2016 PySide import issues

Sorry if this has been posted before, but I can’t find an answer for it…

We’re evaluating to upgrade form 2015 to Maya 2016. But unfortunately all the scripts that rely on pyside won’t run in 2016. I get the following types of error messages:
DLL load failed: The specified procedure could not be found. #

I can import PySide with no problem
but I can’t do somethig like: “from PySide import QtGui, QtCore”

from PySide import QtGui, QtCore

Error: line 1: ImportError: file <maya console> line 1: DLL load failed: The specified procedure could not be found.

Any ideas what changed form 2015 to 2016 regarding PySide?

I’m having the same issue with importing some modules in general, like: “import maya.OpenMaya as openMaya”

"# Error: line 1: ImportError: file S:\Maya_2015_DI\build\Release\runTime\Python\Lib\site-packages\maya\OpenMaya.py line 21: DLL load failed: The specified procedure could not be found. # "

Thanks!

I’m having no problems on my end.
It looks like one of your scripts or userSetup.py files or even just your MAYAPATH may be pointing to 2015 paths rather than 2016 so it’s trying to load incompatible dlls.

Try a clean install or checking your maya path and python sys.path to see if you have 2015 mentioned anywhere and get rid of that.

If you’re doing this from Maya, and you haven’t installed a separate version of PySide.


import PySide
print PySide.__file__
# C:\Program Files\Autodesk\Maya2016\Python\lib\site-packages\PySide\__init__.py

If it doesn’t say Maya2016, something is messing with the path.

[QUOTE=R.White;27949]If you’re doing this from Maya, and you haven’t installed a separate version of PySide.


import PySide
print PySide.__file__
# C:\Program Files\Autodesk\Maya2016\Python\lib\site-packages\PySide\__init__.py

If it doesn’t say Maya2016, something is messing with the path.[/QUOTE]

You’re on it! it’s pointing to 2015.

C:\Program Files\Autodesk\Maya2015\Python\lib\site-packages\PySide_init_.py

Found a 2015 path in my Windows PYTHONPATH environment settings. Got rid of it and now it’s all working!

Thanks! so much!!!

a.