From: Brian M. <br...@gr...> - 2011-04-24 02:34:24
|
Tim, > I too get over 2000 errors and over > 1000 warnings when I build gramps32 with > pydev in Eclipse. Doubtless a few are real errors, but most > are 'Undefined > variable from import". For example I get ActionGroup > undefined in > gtk.ActionGroup. If I try running gramps, it runs > correctly. > > So it seems that pydev is not finding all the library > files. But if I look > at the Preferences for Interpreter - Python, it says the > libraries include > site-packages/gtk-2.0 > > (I don't think this can be anything to do with not running > autogen and make, > because otherwise Gramps woudn't run - would it?) > > Do you have any idea how I can get Eclipse to see the same > libraries as the > execution evidently finds? I also use pydev for Gramps development. My understanding is that pydev has trouble resolving interfaces properly if they are implemented in "C" rather than being python implementations. I could be wrong. I've learned to dutifully ignore the many errors which are obviously innocuous. I've found that the output of pylint (which can be auto run by pydev) is much more useful. You can squelch certain messages from pylint if you find they are annoying. ~Brian |