[cgkit-user] maya 0.9.4 plug-in can't initialize maya.initmaya module
Brought to you by:
mbaas
From: Mark V. <mar...@ya...> - 2007-04-06 23:25:39
|
I've built sourcepy-0.9.3 and maya-0.9.3 using: - gcc 3.3.4 - maya 7.0.1 - boost 1.33.1 - python 2.4.4 (sourcepy linking with the .a) Boost and python I built myself, using gcc 3.3.4. I also hacked the build scripts of sourcepy-0.9.3 and maya-0.9.3 to use the same gcc (requirement of maya 7.0.1). The pysource plugin loads fine, but when I try to run "import maya.initmaya" maya crashes with this error: Python threading enabled Python 2.4.4 (#2, Apr 5 2007, 13:49:51) [GCC 3.3.4] Fatal Python error: Interpreter not initialized (version mismatch?) maya encountered a fatal error Signal: 6 (Unknown Signal) Attempting to save in /usr/tmp/markv.20070406.1914.ma If I try loading the module from command-line python (the same python used to build sourcepy), it spits out a warning then freezes. Running strace shows that it is in some kind of infinite SEGFAULT loop. The warning is: /meteor/freeware/gcc-3.3.4/maya-0.9.3/lib/python2.4/site-packages/maya/api/__init__.py:26: RuntimeWarning: to-Python converter for MString already registered; second conversion method ignored. from maya._api import * >From what I can glean via google, the "version mismatch" error happens when python tries to initialize an extension module linked with a different interpreter. I've been very careful to use the same version of python (and libpython2.4) for building both sourcepy and maya, so I'm not sure what's happening. Any ideas? We're getting maya 8.5 soon, but we have legacy shows still on maya 7.0.1, and I'd like to move away from writing tools in MEL! thanks, -Mark __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com |