Eclipse and unittests

I’ve been running Eclipse at home for years now and wanted to start hooking up unittests for a few things and seem to have hit a brick wall getting Pymel to initialize Maya for me. At work I’m running Wing, although been testing PyCharm for a while. But on Eclipse even though I’ve set up and got full auto-completion on everything, I can’t do a simple import on Pymel without the test failing on the initial import.

import pymel.core as pm

Fails on:

ImportError: No module named grp

I’ve read somewhere else that Eclipse or rather PyDev has issues and I know Dave here gave up on Eclipse as he couldn’t get the unittests to run with Maya. Same import on PyCharm boots maya in the background up so I can test things properly in the environment.

Anybody got any ideas?

thanks

Mark

Forget it, I fixed it :wink:

For future reference it would be nice if you could write out the fix.

It was just a bad lib that I’d added to the Python-Interpreter setup, I had Pymel stubs in there but had also added the pymel Predefined for autocompleteion, guess the two were getting mixed up.