pydev问题与gobject [英] pydev issue with gobject

查看:91
本文介绍了pydev问题与gobject的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

似乎在具有Python 2.6的Eclipse(3.5.1)上的Pydev(1.5.4)无法正确交叉引用包gobject.放置import gobject可以正常工作,但不能超过此范围(例如class X(gobject.GObject)会导致Pydev报告未解决的引用"错误.

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 (e.g. class X(gobject.GObject) causes Pydev to report "unresolved reference" errors.

可能是什么问题?

请注意,我使用的所有其他软件包都不会触发此错误.

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

推荐答案

问题与此限制有关的PyDev :

我安装了一个库,并安装了Pydev 找不到

I have a library installed and Pydev does not find it

好,据报问题 Mac和Linux,以及主要原因 似乎是符号链接. Pydev只会 查找真正"的扩展名 在python安装目录下. 发生这种情况是因为 分母',在这种情况下是 Windows,没有符号链接.一种 解决此问题的方法包括 手动添加给定的文件夹 安装到pythonpath或 更改安装 打包在site-packages下 文件夹.

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.

要对此限制进行调整,请找到该库的绝对路径,并更新与Pydev解释器相关的库.

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

这篇关于pydev问题与gobject的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆