Menu

#1239 Undefined variable from import

open
5
2010-10-19
2010-10-19
No

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

Discussion

  • Boris Gorelik

    Boris Gorelik - 2010-10-19

    screenshot describing the problem

     
  • Boris Gorelik

    Boris Gorelik - 2010-12-01

    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.

     
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.