Hi, Has anyone successfully been able to run maya standalone from an external interpreter?
I’m talking about following this <https://knowledge.autodesk.com/support/maya/learn-explore/caas/CloudHelp/cloudhelp/2016/ENU/Maya/files/GUID-83799297-C629-48A8-BCE4-061D3F275215-htm.html> from the official docs. When I run the following (python ext_mayapy.py), I’m getting “Segmentation fault (core dumped)”: import osimport sys MAYA_LOCATION = '/192.168.0.226/pipeline/bin/maya/builds/maya_v2016-ext1sp5_linux64' MAYA_BIN_PATH = os.path.join(MAYA_LOCATION, 'bin') MAYA_SITE_PACKAGES = os.path.join(MAYA_LOCATION, 'lib', 'python2.7', 'site-packages') # Change working directory os.chdir(MAYA_BIN_PATH) os.environ['MAYA_LOCATION'] = MAYA_LOCATION os.environ['LD_LIBRARY_PATH'] = os.path.join(MAYA_LOCATION, 'lib') os.environ['PATH'] = os.environ['PATH'] + os.pathsep + MAYA_BIN_PATH sys.path.append(MAYA_SITE_PACKAGES) import maya.standalone maya.standalone.initialize(name='python') The machine which is running the python script above is a CentOS 7 machine with Python 2.7.5 64-bit. When I attempt to run mayapy directly, it works as I get this: [iruser@blade1 bin]$ pwd /111.222.333.444/pipeline/bin/maya/builds/maya_v2016-ext1sp5_linux64/bin [iruser@blade1 bin]$ ./mayapy ./.. Python 2.7.6 (default, May 5 2014, 22:44:41) [GCC 4.1.2] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import maya.standalone >>> maya.standalone.initialize(name='python') >>> Regards, Fredrik -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAD%3DwhWO56wxdOdhq_B_9L_XCGu3WrdBLosn0fzn7OkusaKN5Og%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
