Hi.
When I start mayapy through the console
/opt/maya2019/bin/mayapy
and make import
from pymel.core import *
and result:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/autodesk/maya2019/lib/python2.7/site-packages/pymel/core/__init__.py", line 6, in <module>
import pymel.versions as _versions
File "/usr/autodesk/maya2019/lib/python2.7/site-packages/pymel/versions.py", line 13, in <module>
from maya.OpenMaya import MGlobal as _MGlobal
File "/local/S/Maya_2019_DI/build/optim/runTime/lib/python2.7/site-packages/maya/OpenMaya.py", line 21, in <module>
File "/local/S/Maya_2019_DI/build/optim/runTime/lib/python2.7/site-packages/maya/OpenMaya.py", line 20, in swig_import_helper
File "/usr/autodesk/maya2019/lib/python27.zip/importlib/__init__.py", line 37, in import_module
ImportError: No module named _OpenMaya
How can I solve this problem?
Note: There is no such problem in Maya 2017