import gtk:给出错误信息 [英] import gtk : gives error message

查看:92
本文介绍了import gtk:给出错误信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我按照所示的顺序安装了以下包裹


1)python2.5

2)Glib 2.12.12

3)atk-1.9.1

4)cairo 1.4.6

5)pango 1.16.4

6)gtk + -2.10 .0

7)pycairo 1.4.0

8)pygobject 2.13.1

9)pygtk-2.8.6


安装成功,但导入gtk时出现以下错误

展开 | 选择 | Wrap | 行号

解决方案

我见过很多像这样的编译问题,有mi虽然没有人回复过这种错误的解决方案。我认为,如果一个人对编译器有好处并且有很多耐心,那么这些类型的错误就可以被淘汰。


感谢您提供如此详细的安装版本列表。也许这些信息可以让别人帮助你。


如果你在本网站找到解决方案之前提出解决方案,请不要通过回复来帮助我们帮助别人?


很抱歉,我无法提供更多帮助。有几个* nix Pythoneers在这个论坛上签到,所以请保持手指交叉。


通过apt源安装所有内容,或者你自己编译了什么?


看到你从2007年开始使用python 2.5我猜你自己编译了它。


如果你尝试使用python2.4会发生什么?

我已经安装了pygtk-2.10.4(不是pygtk-2.8.6,如第1篇所示)


错误与2.4相同也是

展开 | 选择 | Wrap | 行号

i have installed following packages in same order as shown

1) python2.5
2) Glib 2.12.12
3) atk-1.9.1
4) cairo 1.4.6
5) pango 1.16.4
6) gtk+-2.10.0
7) pycairo 1.4.0
8) pygobject 2.13.1
9) pygtk-2.8.6

installation succeeds but while importing gtk following error is displayed

Expand|Select|Wrap|Line Numbers

解决方案

I''ve seen lots of compile troubles such as this, with missing symbols, but no one has ever posted back with their solution to this type of error. I think that if one is good with a compiler and has lots of patience, these types of errors can be chased out.

Thank you for such a detailed list of intalled versions. Perhaps this information will enable someone to assist you.

And please, if you come up with a solution before one is found on this site, wont you help us help others by posting back?

Sorry that I couldn''t be of more assistance. There are several *nix Pythoneers who check in on this forum, so keep your fingers crossed.


Installed everything thru the apt sources or did you compile anything on your own?

Seeing that you are using python 2.5 from 2007 i have to guess you compiled it youreself.

What happens if you try with python2.4?


i have installed pygtk-2.10.4 (not pygtk-2.8.6 as posted in post 1)

the errors r same with 2.4 also

Expand|Select|Wrap|Line Numbers


这篇关于import gtk:给出错误信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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