I have installed Pymel on Maya 2009 following the instrucctions given here http://pymel.googlecode.com/svn/docs/install.html
Now whenever I execute the "from pymel import * "
command from the script editor it gives the following error
Error: No module named ply.lex
Traceback (most recent call last):
File “<maya console>”, line 1, in <module>
File “d: ools\maya 2009\python\lib\site-packages\pymel-0.9.2-py2.5.egg\pymel_init _.py”, line 1468, in <module>
import mayahook
File “d: ools\maya 2009\python\lib\site-packages\pymel-0.9.2-py2.5.egg\pymel\mayahook_init _.py”, line 5, in <module>
from mayautils import *
File “d: ools\maya 2009\python\lib\site-packages\pymel-0.9.2-py2.5.egg\pymel\mayahook\mayautils.py”, line 7, in <module>
from pwarnings import *
File “d: ools\maya 2009\python\lib\site-packages\pymel-0.9.2-py2.5.egg\pymel\mayahook\pwarnings.py”, line 12, in <module>
from pymel.util.decoration import decorator
File “d: ools\maya 2009\python\lib\site-packages\pymel-0.9.2-py2.5.egg\pymel\util_init _.py”, line 19, in <module>
import nameparse
File "d: ools\maya 2009\python\lib\site-packages\pymel-0.9.2-py2.5.egg\pymel\util
ameparse.py", line 1, in <module>
from objectParser import *
File “d: ools\maya 2009\python\lib\site-packages\pymel-0.9.2-py2.5.egg\pymel\util\objectParser.py”, line 23, in <module>
import ply.lex as lex
ImportError: No module named ply.lex
Can anyone suggest what this is about, and how should I correct it?
This seems to be a simple error. Can anyone please help me out with this?
Lithium
February 25, 2010, 8:06am
3
Search your computer for the folder “ply” it should have the file “lex.py” in it, and probably an “init .py” as well. If those are found, the folder that owns “ply” needs to be in the python path. If not you need ply. Which you can probably download. That or you have a bad install.
chadrik
February 25, 2010, 3:08pm
4
looks like setuptools failed to download and install the ply package. you have a few options:
double check your internet connection and firewall settings to ensure that setuptools is working right
delete the pymel egg and reinstall using the manual method describe in the docs
copy the pymel/utils/external/ply directory into your site-packages directory (where the pymel egg is)
I installed pymel again, and the importing error got solved. Now when I type
from pymel import *
it runs without error
But after this command even if I enter a simple command, like
s = polySphere()[0]
It gives the error
Error: name ‘polySphere’ is not defined
Traceback (most recent call last):
File “<maya console>”, line 2, in <module>
NameError: name ‘polySphere’ is not defined
I am using Python 2.5, pymel 1.0.0 and Maya2009. Did the easy install of Pymel and set the enironment variables.
Can anyone plz guess what the problem is
Lithium
February 26, 2010, 8:19am
6
Verify there is not an empty “pymel” directory somewhere in your python path. Then, try not importing it to the global scope, and see what happens.
import pymel
print pymel.polySphere()
same error?
chadrik
February 27, 2010, 9:50am
7
read the what’s new section of the included docs. things have changed since 0.9
Thanks guys. I installed the latest version of PyMel and the problem got solved
system
April 1, 2010, 2:33am
9
[font=宋体]purring: Sound of a cat cheap wow gold manufacturing cuteness. purrverse: poem about a strange kitty. purranoia: The fear that your buy cheap wow gold cat is up to something. Human being: Automatic door cheap wow gold opener for cats. purrpetual:Everlasting love for domesticated felines. purrson: A male kitty. cheap wow gold purrpetual motion:A kitty playing.[/font]
system
April 1, 2010, 3:40am
10
The banking regulator is now working with the Ministry of Land and Resources on developing a real estate developer “blacklist”, providing lenders with evidence concerning developers’ credibility and financial wow powerleveling strength.