Crash running standalone Maya in Python interpreter on Mac OS 10.8

Crash running standalone Maya in Python interpreter on Mac OS 10.8

Anonymous
Not applicable
649 Views
0 Replies
Message 1 of 1

Crash running standalone Maya in Python interpreter on Mac OS 10.8

Anonymous
Not applicable

I have a python script that does the bare minimum setup to run standalone Maya in a python interpreter, but it crashes on startup. I essentially took the code directly from the Maya documentation at the following URL. Does anyone know why this might be crashing or how to fix it?

 

http://docs.autodesk.com/MAYAUL/2014/ENU/Maya-API-Documentation/index.html?url=files/Maya_Python_API...

 

  

#!/usr/bin/env python

import sys 

pkgDir = '/Applications/Autodesk/maya2014/Maya.app/Contents/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages'

sys.path.append(pkgDir) 

import maya.standalone

import sys

maya.standalone.initialize( name='python' )

  

The Python version is 2.7.2. This is running on Mac OS 10.8.

 

It crashes with this:

 

Stack trace:

  4   libFoundation.dylib                 0x0000000108fc39dc Tstring::formatToWidth(unsigned int) + 26

  5   libShared.dylib                     0x000000010bdcdd47 TaboutAction::doCommand(TargList&) + 1605

  6   libCommandEngine.dylib              0x0000000109495c27 TpythonInterpreter::dispatchMayaCommand(TmetaCommand&, _object*, _object*) + 639

  7   Python                              0x0000000108652776 PyEval_EvalFrameEx + 9705

  8   Python                              0x0000000108656869 _PyEval_SliceIndex + 871

  9   Python                              0x000000010865263a PyEval_EvalFrameEx + 9389

  10  Python                              0x0000000108650147 PyEval_EvalCodeEx + 1934

  11  Python                              0x000000010864f9b3 PyEval_EvalCode + 54

  12  Python                              0x0000000108677304 PyImport_ExecCodeModuleEx + 250

  13  Python                              0x000000010867a035 PyImport_AppendInittab + 3401

  14  Python                              0x000000010867aaf2 PyImport_AppendInittab + 6150

  15  Python                              0x000000010867a644 PyImport_AppendInittab + 4952

  16  Python                              0x0000000108678820 PyImport_ImportModuleLevel + 1231

  17  Python                              0x0000000108649b1e _PyBuiltin_Init + 1391

  18  Python                              0x00000001086486c6 PyObject_Call + 97

  19  Python                              0x000000010864886f PyObject_CallFunction + 329

  20  Python                              0x00000001086487e8 PyObject_CallFunction + 194

  21  Python                              0x0000000108678243 PyImport_Import + 413

  22  Python                              0x0000000108676891 PyImport_ImportModule + 31

  23  libCommandEngine.dylib              0x000000010949dab9 TpythonModule::import(Tstring const&, bool) + 65

  24  libShared.dylib                     0x000000010bf0521d TlibModeApp::initGeneral() + 2349

  25  libExtensionLayer.dylib             0x0000000109c88c7c Tapplication::start() + 68

  26  libShared.dylib                     0x000000010bf0564b libmain(char const*, bool, bool) + 491

  27  standalone.so                       0x00000001089198c4 standaloneInitialize(_object*, _object*, _object*) + 244

  28  Python                              0x0000000108652776 PyEval_EvalFrameEx + 9705

  29  Python                              0x0000000108650147 PyEval_EvalCodeEx + 1934

  30  Python                              0x00000001086568df _PyEval_SliceIndex + 989

  31  Python                              0x000000010865263a PyEval_EvalFrameEx + 9389

  32  Python                              0x0000000108650147 PyEval_EvalCodeEx + 1934

  33  Python                              0x000000010864f9b3 PyEval_EvalCode + 54

  34  Python                              0x000000010868bc70 PyParser_ASTFromFile + 299

  35  Python                              0x000000010868bd3c PyRun_FileExFlags + 165

  36  Python                              0x000000010868b726 PyRun_SimpleFileExFlags + 410

  37  Python                              0x00000001086afe27 Py_Main + 2715

  38  libdyld.dylib                       0x00007fff864cc7e1 start + 0

  39  ???                                 0x0000000000000002 0x0 + 2

 

0 Likes
650 Views
0 Replies
Replies (0)