It was my bad. There was a stray python.zip file in one of my
autocomplete dirs that was hijacking things. I guess if there is a zip
file contained in one of your pydev paths then pydev will use the zip
instead of the py files and directories in the same location. Just to
be clear, I do not have the zip file explicitly defined as a path, as
pydev allows you to do, but rather it is contained within one of the
directory paths that I added to the configuration.

Does anybody use any of eclipse's auto/procedural mechanisms to
specify the configuration? I would really like to be able to inherit
the settings we use in development rather than having to specify paths
directly. Every once in a while we will have an inconsistency between
the ide's configuration and our development configuration environment
and it makes troubleshooting trickier than it has to be.

-Judah

On Wed, Apr 21, 2010 at 12:54 PM, Adam Mechtley <[email protected]> wrote:
> Does it not work at all, or is it only partially working? If it is not
> working at all, and it has worked before, you may just need to let Eclipse
> run through your libraries again (just press the Apply button in Preferences
> -> PyDev -> Interpreter - Python -> Libraries and wait for it to run through
> everything). It's something I've had happen to me on occasion and I've
> managed to fix it that way. If it's only partially working (the way maya.mel
> is) then I'd be curious to know what you're seeing, as it's something I've
> never seen before.
>
> On Wed, Apr 21, 2010 at 1:48 PM, Judah Baron <[email protected]> wrote:
>>
>> I have a similar problem, but it's with the cmds module. The API
>> completion works, but not cmds.
>>
>>
>> On Fri, Apr 16, 2010 at 9:43 AM, Adam Mechtley <[email protected]>
>> wrote:
>> > I've been having a problem with the maya.mel module in Eclipse and am
>> > hoping
>> > someone here may have an idea. Specifcally, all of my autocompletion is
>> > properly set up and works with the cmds and API modules. However, the
>> > maya.mel module only offers autocompletion for:
>> >
>> > __file__
>> > __name__
>> > __path__
>> > createMelWrapper()
>> > melUtils
>> >
>> > The important problem is that it does not offer completion for the
>> > eval()
>> > command. Consequently, every invocation of maya.mel.eval() is marked as
>> > an
>> > error in my Eclipse project. I think this may be related to how Eclipse
>> > works with mayapy, but I am straying dangerously far outside my
>> > expertise,
>> > so am hoping someone here can explain what is going on. Specifically:
>> >
>> > In Maya:
>> > import maya.mel
>> > dir(maya.mel) # you will see the eval() function
>> >
>> > In mayapy console:
>> > import maya.mel
>> > dir(maya.mel)#  you will see the same thing Eclipse sees (namely, no
>> > eval()
>> > function)
>> > import maya.standalone
>> > maya.standalone.initialize()
>> > dir(maya.mel)# you will now see the eval() function
>> >
>> > --
>> > http://groups.google.com/group/python_inside_maya
>>
>> --
>> http://groups.google.com/group/python_inside_maya
>
> --
> http://groups.google.com/group/python_inside_maya

-- 
http://groups.google.com/group/python_inside_maya

Reply via email to