try this: $ cd /home/lala/maya/2009-x64/scripts/pymel/pymel/util/external $ mayapy
then >>> import ply.lex >>> import ply.yacc i'm guessing you're getting an error with one of these because of some missing library. let us know if you get a traceback from that. -chad On Oct 12, 2009, at 12:56 PM, lala wrote: > > it didn't worked for me. > details > linux x64 (ubuntu / kubuntu) > maya 2009 sp1a x64 > > 1- setting maya.env, didn't worked initially, so i went environment > variables way (.profile), > check: load maya, in python script editor, if i : import sys; print > sys.path. >> pymel folder shows (main folder, where setup.py or > ez_setup.py resides) > when i type: import pymel as pm, or, from pymel import *, it gives > error > > ---------------------------------------------- > Traceback (most recent call last): > File "<stdin>", line 1, in <module> > File "/home/lala/maya/2009-x64/scripts/pymel/pymel/__init__.py", > line 1468, in <module> > import mayahook > File "/home/lala/maya/2009-x64/scripts/pymel/pymel/mayahook/ > __init__.py", line 5, in <module> > from mayautils import * > File "/home/lala/maya/2009-x64/scripts/pymel/pymel/mayahook/ > mayautils.py", line 7, in <module> > from pwarnings import * > File "/home/lala/maya/2009-x64/scripts/pymel/pymel/mayahook/ > pwarnings.py", line 12, in <module> > from pymel.util.decoration import decorator > File "/home/lala/maya/2009-x64/scripts/pymel/pymel/util/ > __init__.py", line 19, in <module> > import nameparse > File "/home/lala/maya/2009-x64/scripts/pymel/pymel/util/ > nameparse.py", line 1, in <module> > from objectParser import * > File "/home/lala/maya/2009-x64/scripts/pymel/pymel/util/ > objectParser.py", line 23, in <module> > import ply.lex as lex > ImportError: No module named ply.lex > ------------------------------------------------------------------ > > umm>> i tried 0.9.1, its almost same behaviour > any ideas, will help a lot > huge thanks in advance, regards, lala > > On Aug 31, 11:56 am, Chad Dombrova <[email protected]> wrote: >> http://code.google.com/p/pymel/downloads/list >> >> CHANGES AND ADDITIONS >> >> added support for 2010 and python 2.6 >> added basic support for all component types >> added a 'removeNamespace' flag to FileReference.importContents() >> added support for open-ended time ranges for command like keyframes >> (Issue 82) >> enhanced keyframe function: if both valueChange and timeChange are >> queried, the result will be a list of (time,value) pairs >> added ability to pass a list of types to ls 'type' argument, as you >> can with listRelatives >> added checkLocalArray and checkOtherArray arguments to >> Attribute.isConnectedTo which will cause the function to also test >> mulit/array elements >> improved core.language.pythonToMel reliability on lists >> improved custom virtual class workflow >> added functionality to pymel.tools.py2mel for dynamically creating >> MEL >> commands based on python functions/classes >> added a new module pymel.api.plugins for working with api plugins >> in a >> more reasonable and automated fashion >> updated eclipse integration documentation >> >> BUGFIXES >> >> fixed importFile, createReference, loadReference, and openFile now >> return PyNodes when passed returnNewNodes flag (Issue 85) >> fixed rare bug with Vista where platform.system was failing during >> startup (Issue 87) >> fixed a bug with plugin loading to intelligently handle when callback >> does not get a name >> fixed optionMenu and optionMenuGrp to return empty lists instead of >> None >> restored core.other.AttributeName.exists method >> fixed a bug in 0.7_compatibility_mode >> fixed minor bug in listRelatives >> fixed a bug where curve command was returning a string instead of a >> PyNode (Issue 96) >> >> EASY INSTALL IMPROVEMENTS >> >> setup now copies over a readline library for 2010 OSX using >> readline.so from toxik which is more compatible >> changed ipymel to be part of the default install instead of an extra >> package >> fixed interpreter path of ipymel and other executable scripts on OSX >> setup now detects and fixes invalid python installations on Linux >> which previously caused distutils and thus setup.py to fail > > --~--~---------~--~----~------------~-------~--~----~ http://groups.google.com/group/python_inside_maya -~----------~----~----~----~------~----~------~--~---
