Pydev Undefined List variable

From time to time, when I try to add a new library using easy_install, my PyDev acts incredibly strange. In fact, I’m sure I used to consider this exact question, but I don’t know how I did it.

I have a PyDev project created in aptana studio and I reconfigured the python interpreter. As soon as I did this, I cleaned up the project, and the code analysis just started hanging on one file for a long time.

It ends in the end, but it marks almost all of the built-in types as errors, such as "dict" or "list", saying <w90 variable>.

I have a rather large code base, which I like to refactor often, so I need to be able to use the PyDev code analysis function, but it obviously does not work.

I think the solution has something to do with forced built-in functions, but I haven't found anything useful so far.

Any help?

+4
source share
1 answer

Unfortunately, right now, whenever you install a new library, you need to manually add the path to your interpreter configuration in PyDev again (usually it is easier to just delete the current interpreter and add it again).

After that, it should work, if it’s not, you can try restarting eclipse (that is: if it doesn’t work with it, there is some kind of outdated cache, in which case restarting it will definitely clear your caches - if you can reproduce this, enter the error report, as this step should not really be needed.)

If you still have built-in types marked as errors (i.e. cannot find a dict or list), this means that PyDev was unable to call the wrapper to check for built-in components, in which case usually this means some firewall blocks this connection (if so, there are usually entries in your error log - see http://pydev.org/faq.html#when_i_do_a_code_completion_pydev_hangs_what_can for more information).

+2
source

All Articles