Hey Felix... could you try unloading all your plugins before importing pymel, to see if it makes a difference?
In particular, it looks like it may be crashing after / during loading of the mental ray plugin... obviously, this is a problem if this is the case, but I'm just trying to get an idea of what's going on here... - Paul On Thu, Jan 14, 2010 at 12:27 AM, Felix Ulber <f.ul...@web.de> wrote: > Hi Paul, > first of all thanks very much for your quick response and thanks for all > the effort. Attached is the log file. > > Best regards > Felix > > > Paul Molodowitch schrieb: > > Hmm... crashiness is not so good. Sorry to hear you're having problems. > > If you'd like to help us figure out what's going on, go to your pymel > directory (/home/felix/dev/pymel-1.0.0b/pymel in your case), and open up the > pymel.conf file. > > Change: > > [handlers] > keys=consoleHandler > > to: > > [handlers] > keys=consoleHandler,fileLogger > > Change: > > [logger_pymel] > ## Set the root 'pymel' logger to DEBUG mode > ## Setting PYMEL_LOGLEVEL environment variable will override this > level=INFO > qualname=pymel > handlers= > > to: > > [logger_pymel] > ## Set the root 'pymel' logger to DEBUG mode > ## Setting PYMEL_LOGLEVEL environment variable will override this > level=DEBUG > qualname=pymel > handlers=fileLogger > > ... and add the following section: > > [handler_fileLogger] > ## This will output to a file, pymel.log > class=FileHandler > level=DEBUG > formatter=pymelFormatter > args=(os.path.expanduser('~/pymel.log'), 'w') > > Then restart maya. After it crashes, there should be a '~/pymel.log' file. > If you could send me that file, it could at least give us an idea about > where it's crashing... > > Thanks, > Paul > > > > > On Wed, Jan 13, 2010 at 2:17 AM, kjaft <f.ul...@web.de> wrote: > >> Hello, >> I have the same problem over here, using pymel 1.0 beta2 on Maya 2009 >> 64 bit (no SP) on two different Linux computers (OpenSuse 10.2 x64, >> Centos 5.1 x64) - Maya crashes (Segfault) when executing "from >> pymel.core import *. In mayapy it works. Also in Maya 2010. >> >> Executing the diagnostic script from below gives: >> pymelDir: /home/felix/dev/pymel-1.0.0b2/pymel >> contents: ['api', 'internal', 'cache', 'all.py', 'mayautils.py', >> 'pymel.conf', 'util', 'tools', 'versions.py', 'mayautils.pyc', >> '__init__.py', 'core', 'versions.pyc', '__init__.pyc'] >> cache dir present: True >> cache contents: ['mayaApi2010.zip', 'mayaApi2008.zip', >> 'mayaCmdsExamples2009.zip', 'mayaCmdsList2008.zip', >> 'mayaCmdsDocs2010.zip', 'mayaApiMelBridge.zip', >> 'mayaCmdsDocs2009.zip', 'mayaCmdsDocs2008.zip', 'mayaApi2009.zip', >> 'mayaCmdsList2010.zip', 'mayaCmdsExamples2008.zip', >> 'mayaCmdsExamples2010.zip', 'mayaCmdsList2009.zip'] >> >> Thanks >> Felix >> >> On 23 Dez. 2009, 07:02, Paul Molodowitch <elron...@gmail.com> wrote: >> > Hmm... odd. It's trying to regenerate the api cache files, which it >> > shouldn't have to do. >> > >> > Could you copy and paste this into the python script editor in maya, and >> let >> > me know what it prints out? >> > >> > import imp >> > import os >> > pymelDir = imp.find_module('pymel')[1] >> > print "pymelDir:", pymelDir >> > pymelContents = os.listdir(pymelDir) >> > print "contents:", pymelContents >> > cacheDir = os.path.join(pymelDir, 'cache') >> > foundCache = os.path.isdir(cacheDir) >> > print "cache dir present:", foundCache >> > if foundCache: >> > cacheContents = os.listdir(cacheDir) >> > print "cache contents:", cacheContents >> > >> > - Paul >> > >> > On Tue, Dec 22, 2009 at 9:19 PM, martinmrom...@gmail.com < >> > >> > martinmrom...@gmail.com> wrote: >> > > I tried it again and it keeps crashing, not sure what's going on. >> > >> > > Martin >> > >> > > On Dec 22, 9:17 pm, Martin La Land Romero <martinmrom...@gmail.com> >> > > wrote: >> > > > Hello Paul and everyone, >> > >> > > > The installation went pretty well I guess however once in Maya 2009 >> > > 64bit. >> > > > When I typed >> > >> > > > from pymel.core import * >> > >> > > > It starts importing a lot of stuff and after 20 seconds it crashes. >> >> -- >> http://groups.google.com/group/python_inside_maya >> > > >
-- http://groups.google.com/group/python_inside_maya