thecocce / pyscripter

Automatically exported from code.google.com/p/pyscripter
0 stars 0 forks source link

Can't get pyscripter to use Maya 2011 python engine #423

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Trying to setup the maya python environment in pyscripter
2. Trying to get pyscripter to import pymel.all
3.

What is the expected output? What do you see instead?
I expect it to import the modules.
I see:
*** Remote Interpreter Reinitialized  ***
>>> import pymel.all as pma
Traceback (most recent call last):
  File "<interactive input>", line 1, in <module>
  File "C:\Python26\pymel-1.0.2\pymel\all.py", line 5, in <module>
    import internal
  File "C:\Python26\pymel-1.0.2\pymel\internal\__init__.py", line 4, in <module>
    from plogging import getLogger
  File "C:\Python26\pymel-1.0.2\pymel\internal\plogging.py", line 13, in <module>
    import maya.utils
  File "C:\Python26\pymel-1.0.2\maya\utils.py", line 21, in <module>
    from maya import cmds
ImportError: cannot import name cmds

What version of the product are you using? On what operating system?
Win 7 pro
Py Scripter 2.1.1.0

Please provide any additional information below.
I am finding it difficult to setup up pyscripter to use the maya 2011 pyhon 
environment, maybe this is a misunderstanding of pyscripters capabilities?
It would appear I should be able to point it to the maya python.exe, mayapy.exe 
and I should also be able to see the pymel libs that are supplied.
I can import pymel as pma but not all which is required.
And the python engine is never recognised.

has anyone achieved this as it could be a sweet environment to work within.

Original issue reported on code.google.com by freerid...@gmail.com on 26 Sep 2010 at 7:28

GoogleCodeExporter commented 9 years ago
Does it work in the standard Python interpreter (the one that comes with the 
distribution from python.org)?  If it does then it should work in PyScripter.  
If it doesn't then this is not a valid bug report.  

Original comment by pyscripter on 26 Sep 2010 at 10:09

GoogleCodeExporter commented 9 years ago
No feedback, so I am closing this report.

Notice that support for embedded python (Blender etc. is a planned feature).  I 
do not have Maya, but I assume similar.

Original comment by pyscripter on 8 Dec 2010 at 10:37