pydev issue with gobject

It seems that Pydev (1.5.4) on Eclipse (3.5.1) with Python 2.6 isn't able to correctly cross-reference the package gobject . Putting import gobject works OK but any more than that (eg class X(gobject.GObject) causes Pydev to report "unresolved reference" errors.

What could be the problem?

Note that every other package I use doesn't trigger this error.


The issue is related to this limitation of PyDev:

I have a library installed and Pydev does not find it

Well, problems have been reported on Mac and Linux, and the main reason seems to be symlinks. Pydev will only find extensions that are 'really' below the python install directory. This happens because the 'less common denominator', which in this case is windows, does not have symlinks. A workaround to this problem includes manually adding the given folder installation to the pythonpath or changing the installation of the package to be under the site-packages folder.

To adjust for this limitation, find the absolute path to the library and update the libraries associated with the interpreter for Pydev.

链接地址: http://www.djcxy.com/p/67882.html

上一篇: 如何解决PyDev“导入时未定义的变量”错误?

下一篇: python与gobject问题