Undefined variable from import
Brought to you by:
fabioz
After updating from Python2.5 to Python 2.6 and fixing the problems, described in issue 3090339 (https://sourceforge.net/tracker/?func=detail&aid=3090339&group_id=85796&atid=577329), Pydev issues an "undefined variable from import" error. Such imports include numpy, matplotlib and other pivotal libraries. Adding the relevant entries to the "Forced built-ins" list and restarting Eclipse does not solve the problem, as shown by the attached screenshot
screenshot describing the problem
I've just upgraded from numpy 1.5.0 to 1.5.1, added C:\Python26\Lib\site-packages\numpy to PyDev's System PYTHONPATH (it was previously removed from PyDev's PYTHONPATH due to issue #3090339), This fixed the problem.