So I just started using Wing IDE to debug my Maya Python code. The setup was less than graceful as I ran into an error after following the setup tutorial.
Auto-completion was working so I tried to run the code:
#opens maya externally and creates a cube and saves the cube as cube.ma
But I kept getting the error:
ImportError: No module named maya.standalone
I had made sure to set my Python Path to:
but was still getting the error.
My solution was that I had to set my Python Executable to the mayapy.exe which for me was at:
Once that was pathed correctly everything worked.
You can access the Python Path and Python Executable from Project>Project Properties under the Environment tab.
Hope this was helpful!
These sources helped me figure this out:
My version of Wing IDE = 4.1.8-2 (rev 27211)
My python version = 2.7.2
Maya version = 2012
OS = Windows 7 64 bit