分页: 1 / 1
python 找不到 gedit模块
发表于 : 2008-10-04 9:13
由 hellojinjie
代码: 全选
jj@hellojinjie:~/.gnome2/gedit/plugins$ python SplitView.py
Traceback (most recent call last):
File "SplitView.py", line 1, in <module>
import gedit
ImportError: No module named gedit
代码: 全选
>>> import sys
>>> print sys.path
['', '/usr/local/lib/python25.zip', '/usr/local/lib/python2.5', '/usr/local/lib/python2.5/plat-linux2', '/usr/local/lib/python2.5/lib-tk', '/usr/local/lib/python2.5/lib-dynload', '/usr/local/lib/python2.5/site-packages']
>>>
跟python的path 有关吗.....我的gedit是自己重新编译过了的,,python也是自己重新编译过的
Re: python 找不到 gedit模块
发表于 : 2008-10-04 9:37
由 poet
一旦你自己编译了python并放到了 /usr/local ,你需要把所有的 python 相关的模块重新编译一遍。
以上就是一个例子,你可以考虑把gedit抓下来重新编译,或者把自己编译的python删除掉。
在命令行下使用下面的命令
aptitude search python |grep ^i
可以察看当前你安装了哪些python模块,这些模块要想能够正常使用,都需要重新把源代码抓下来重新编译。
Re: python 找不到 gedit模块
发表于 : 2008-10-04 9:52
由 hellojinjie
代码: 全选
jj@hellojinjie:~/.gnome2/gedit/plugins$ aptitude search python |grep ^i
i diveintopython - free Python book for experienced programme
i gimp-python - Python support and plugins for GIMP
i libapache2-mod-python - Apache 2 module that embeds Python within
i python - An interactive high-level object-oriented
i python-apport - apport crash report handling library
i python-apt - Python interface to libapt-pkg
i python-awn - library for avant-window-navigator - Pytho
i python-brlapi - Python bindings for BrlAPI
i python-cairo - Python bindings for the Cairo vector graph
i python-cairo-dev - Python cairo bindings: development files
i python-central - Python 软件包的注册和编译工具
i A python-configobj - a simple but powerful config file reader a
i python-cups - Python bindings for CUPS
i python-dbus - simple interprocess messaging system (Pyth
i A python-dev - Header files and a static library for Pyth
i python-doc - Documentation for the high-level object-or
i python-docutils - Utilities for the documentation of Python
i python-enchant - spellchecking library for Python
i python-gconf - Python bindings for GConf2
i python-gdata - Google Data Python client library
i python-gdbm - GNU dbm database support for Python
i python-glade2 - GTK+ bindings: Glade support
i python-gmenu - 用于GNOME的freedesktop菜单规范的一个实现
i python-gnome2 - Python bindings for the GNOME desktop envi
i python-gnome2-desktop - Python bindings for the GNOME desktop envi
i python-gnome2-extras - Python bindings for the GNOME desktop envi
i python-gnomecanvas - Python bindings for gnomecanvas (debug ext
i python-gnupginterface - Python interface to GnuPG (GPG)
i python-gobject - Python bindings for the GObject library
i A python-gobject-dev - Development headers for the GObject python
i python-gst0.10 - generic media-playing framework (Python bi
i python-gtk2 - Python bindings for the GTK+ widget set
i python-gtk2-dev - GTK+ bindings: devel files
i python-gtkhtml2 - Python bindings for the GtkHTML2 library
i python-gtksourceview2 - Python bindings for the GtkSourceView widg
i python-imaging - Python Imaging Library
i python-launchpad-bugs - simple Python Interface to Bugs in Launchp
i python-launchpad-integration - library for launchpad integration
i python-libxml2 - Python bindings for the GNOME XML library
i python-minimal - Python 的一个最小的子集(默认版本)
i python-notify - Python bindings for libnotify
i python-numeric - Numerical (matrix-oriented) Mathematics fo
i python-problem-report - Python library to handle problem reports
i python-pyatspi - Assistive Technology Service Provider Inte
i python-pyorbit - A Python language binding for the ORBit2 C
i python-qt4 - Python bindings for Qt4
i A python-qt4-common - Shared files for PyQt4
i A python-roman - A module for generating/analyzing Roman nu
i python-sexy - python language bindings for libsexy
i A python-sip4 - Python/C++ bindings generator runtime libr
i python-software-properties - manage the repositories that you install s
i python-support - python 模块的自动重新构建支持
i python-uno - Python interface for OpenOffice.org
i python-virtkey - Library to emulate keyboard keypresses.
i python-vte - Python bindings for the VTE widget set
i A python-wxgtk2.8 - wxWidgets Cross-platform C++ GUI toolkit (
i A python-wxversion - wxWidgets Cross-platform C++ GUI toolkit (
i python-xdg - A python library to access freedesktop.org
i python2.5 - An interactive high-level object-oriented
i python2.5-dbg - Debug Build of the Python Interpreter (ver
i python2.5-dev - Header files and a static library for Pyth
i A python2.5-doc - Documentation for the high-level object-or
i python2.5-minimal - A minimal subset of the Python language (v
i vim-python - Vi IMproved - enhanced vi editor (transiti
好像没有gedit的,,,昨天gtk和gedit是一起都重新编译了的,,,python的gedit模块是在gedit的源码包里的吗
Re: python 找不到 gedit模块
发表于 : 2008-10-04 11:18
由 jarryson
自己编译的软件会绕过包管理器安装的。dpkg是没有办法管理的。
gentoo有emerge管理,arch的pacman也可以管理makepkg的包
Re: python 找不到 gedit模块
发表于 : 2008-10-06 10:06
由 jarlyyn
pygedit是什么东西?