be sure to use mayapy.exe to ensure compatibility between the maya
python libs and the python interpreter. setting your PYTHONPATH to
the maya site-packages directory will only work if your system Python
is exactly the same version, etc as the maya interpreter.
-chad
On Mar 6, 2009, at 8:06 PM, Beau Garcia wrote:
> HI ,
>
> As you can see from the Traceback error. Im not being able to use
> the polyCube command in IDLE.
>
> Ive checked my environment variables to which i think are the
> correct ones?
>
> But still with no luck. Im not sure what it is as creating a
> frameCache node seems to work fine
>
> Any suggestions?
>
> ENVIRONMENT VARIALBES :
> PYTHONPATH = C:\Program Files (x86)\Autodesk\Maya2008\Python\lib
> \site-packages
> MAYA_LOCATION = C:\Program Files (x86)\Autodesk\Maya2008
>
> IDEL OUTPUT:
> ###################################################################
> >>> import maya.standalone
> >>> maya.standalone.initialize()
> >>> import maya.cmds as mc
> >>> mc.createNode("frameCache")
> u'frameCache1'
> >>> mc.polyCube()
>
> Traceback (most recent call last):
> File "<pyshell#7>", line 1, in <module>
> mc.polyCube()
> File "C:\Program Files (x86)\Autodesk\Maya2008\Python\lib\site-
> packages\maya\app\commands.py", line 16, in dummyFunc
> maya.cmds.dynamicLoad( library )
> RuntimeError: Unable to dynamically load : PolySlice.dll
> The specified procedure could not be found.
>
>
> Dynamic load failed : PolySlice.dll
>
> >>>
>
> ###################################################################
>
> Cheers,
> Beau
>
> >
--~--~---------~--~----~------------~-------~--~----~
http://groups.google.com/group/python_inside_maya
-~----------~----~----~----~------~----~------~--~---