是什么导致python缺少“ gi”模块?


19

在对Ubuntu的默认Python版本(从2.7到3.2)进行了一些不太巧妙的编辑之后,我最终破坏了整个系统。在计算机崩溃后,一切都停止工作后,我尝试恢复更改(通过将/usr/bin/python2.7链接到/ usr / bin / python并将/ usr / share / python / debian_defaults中的默认版本更改为2.7),但有些东西还是坏了。

例如,当我在python解释器中键入“ import gi”时,我得到以下消息:

>>> import gi
 Traceback (most recent call last):
 File "<stdin>", line 1, in <module>
 ImportError: No module named gi
>>> 

某些程序也会出现此错误(例如:gnome调整工具)。我尝试从软件中心和来源重新安装python,但是仍然存在相同的错误。

Python-版本现在返回:

 Python 2.7.2

并且一些依赖python 2.7的软件包现在正在运行(例如,软件中心),但是某些问题仍然存在。我有什么办法可以完全重新安装python 2.7作为默认版本?


您是否尝试过重新安装python-gobjects?
哈维尔·里维拉

我做到了,但是它重新安装了“ python-gobject 3.0.0-0ubuntu4”。这是2.7的正确版本号吗?
Colin Dumitru

是。这是我系统上安装的一个,并且工作正常。
哈维尔·里维拉

您是否尝试过重新配置python ie sudo dpkg-reconfigure python2.7
sagarchalise

是的,但是相同的错误仍然存​​在。
Colin Dumitru

Answers:


21

我发现了三种方法可以做到这一点:

  1. 简单的方法:

    sudo apt-get install python3-gi

    要么

  2. 对于virtualenv用户-vext方法

    pip install vext

    pip install vext.gi

  3. 纯Python开发人员方式:

    安装大量开发人员资料:

    sudo apt-get install pkg-config libcairo2-dev gcc python3-dev libgirepository1.0-dev

    安装python软件包:

    pip install gobject PyGObject


尽管这对于Debian可能有用,但此站点特定于Ubuntu。
Sergiy Kolodyazhnyy

在这种情况下,程序包是共享的-两者都适用。删除了对Debian的引用以避免混淆。
马修(Matthew)

1
第二个解决方案解决了我的问题,谢谢!
xtluo

8

这里找到对我有用的小解决方法:

sudo nano /usr/bin/gnome-tweak-tool

更改#!/usr/bin/env python#!/usr/bin/python


这在Arch Linux上为我解决了问题!通过其他的解决 杰里米Bicha,安装python-gobject上Arch Linux的(或python3-gi在Ubuntu上)并没有对我的工作!
Arch Linux Tux



2

就我而言:

>>> import gi
>>> gi.__file__
'/usr/lib/python2.7/dist-packages/gi/__init__.pyc'

因此,您需要检查是否有该文件可用。如果不是,则检查该 /usr/lib/python2.7/dist-packages/gi/__init__.py/usr/share/pyshared/gi/__init__.py。您应该拥有该文件,因为您已经拥有了python-gobject 3.0.0-0ubuntu4(是的,我有相同的版本)。

如果有gi包装,那么您应该查看一下sys.path输出。如果/usr/lib/python2.7/dist-packages未包括在内,请添加它,然后重试。

导入成功后,您可以设置PYTHONPATH或进一步调查路径设置不正确的原因。

悬而未决的问题可能是您的site.py文件由于某种原因而无效,或者更有可能是您没有获得正确的权限site.py(应该在下方/usr/lib/python2.7/)。在这种情况下,请查看此处以查看python用于查找该文件的所有目录,并检查您的环境是否正确。


2

提高解释程序的冗长性有助于解决这个问题。即便如此,我还是尝试了将2.7 dist包与我的usr / local 3.x dist包进行简单的符号链接,并做了一些进一步的工作,但幅度不大。

 sudo ln -s /usr/lib/python2.7/dist-packages/gi/ /usr/local/lib/python3.2/dist-packages

〜$ python3
Python 3.2.2+(默认值,2012年2月16日,19:05:44) 
linux2上的[GCC 4.6.2]
键入“帮助”,“版权”,“信用”或“许可证”以获取更多信息。
>>>导入gi
追溯(最近一次通话):
  文件“”,第1行,位于 
  在第23行的“ /usr/local/lib/python3.2/dist-packages/gi/__init__.py”文件中 
    从._gi导入_API,存储库
ImportError:/usr/lib/libpyglib-gi-2.0-python2.7.so.0:未定义的符号:_Py_ZeroStruct

如果您可以找到该丢失的符号,则可以解决此问题。这是导致我到目前为止的所有冗长的导入输出。另外,这似乎很相关:http : //bugs.debian.org/cgi-bin/bugreport.cgi?bug=645963,祝您好运。

>>>导入gi
#尝试gi.cpython-32mu.so
#尝试gimodule.cpython-32mu.so
#尝试gi.abi3.so
#尝试gimodule.abi3.so
#尝试gi.so
#尝试gimodule.so
#尝试gi.py
#尝试gi.pyc
#尝试/usr/lib/python3.2/gi.cpython-32mu.so
#尝试/usr/lib/python3.2/gimodule.cpython-32mu.so
#尝试/usr/lib/python3.2/gi.abi3.so
#尝试/usr/lib/python3.2/gimodule.abi3.so
#尝试/usr/lib/python3.2/gi.so
#尝试/usr/lib/python3.2/gimodule.so
#尝试/usr/lib/python3.2/gi.py
#尝试/usr/lib/python3.2/gi.pyc
#尝试/usr/lib/python3.2/plat-linux2/gi.cpython-32mu.so
#尝试/usr/lib/python3.2/plat-linux2/gimodule.cpython-32mu.so
#尝试/usr/lib/python3.2/plat-linux2/gi.abi3.so
#尝试/usr/lib/python3.2/plat-linux2/gimodule.abi3.so
#尝试/usr/lib/python3.2/plat-linux2/gi.so
#尝试/usr/lib/python3.2/plat-linux2/gimodule.so
#尝试/usr/lib/python3.2/plat-linux2/gi.py
#尝试/usr/lib/python3.2/plat-linux2/gi.pyc
#尝试/usr/lib/python3.2/lib-dynload/gi.cpython-32mu.so
#尝试/usr/lib/python3.2/lib-dynload/gimodule.cpython-32mu.so
#尝试/usr/lib/python3.2/lib-dynload/gi.abi3.so
#尝试/usr/lib/python3.2/lib-dynload/gimodule.abi3.so
#尝试/usr/lib/python3.2/lib-dynload/gi.so
#尝试/usr/lib/python3.2/lib-dynload/gimodule.so
#尝试/usr/lib/python3.2/lib-dynload/gi.py
#尝试/usr/lib/python3.2/lib-dynload/gi.pyc
#尝试/usr/local/lib/python3.2/dist-packages/gi.cpython-32mu.so
#尝试/usr/local/lib/python3.2/dist-packages/gimodule.cpython-32mu.so
#尝试/usr/local/lib/python3.2/dist-packages/gi.abi3.so
#尝试/usr/local/lib/python3.2/dist-packages/gimodule.abi3.so
#尝试/usr/local/lib/python3.2/dist-packages/gi.so
#尝试/usr/local/lib/python3.2/dist-packages/gimodule.so
#尝试/usr/local/lib/python3.2/dist-packages/gi.py
#尝试/usr/local/lib/python3.2/dist-packages/gi.pyc
#尝试/usr/lib/python3/dist-packages/gi.cpython-32mu.so
#尝试/usr/lib/python3/dist-packages/gimodule.cpython-32mu.so
#尝试/usr/lib/python3/dist-packages/gi.abi3.so
#尝试/usr/lib/python3/dist-packages/gimodule.abi3.so
#尝试/usr/lib/python3/dist-packages/gi.so
#尝试/usr/lib/python3/dist-packages/gimodule.so
#尝试/usr/lib/python3/dist-packages/gi.py
#尝试/usr/lib/python3/dist-packages/gi.pyc
追溯(最近一次通话):
  文件“”,第1行,位于 
ImportError:没有名为gi的模块

搜索路径甚至没有查看python2.7路径。这是从python2.7成功的一面来看的样子。

>>>导入gi
#尝试gi.so
#尝试gimodule.so
#尝试gi.py
#尝试gi.pyc
#尝试/usr/lib/python2.7/gi.so
#尝试/usr/lib/python2.7/gimodule.so
#尝试/usr/lib/python2.7/gi.py
#尝试/usr/lib/python2.7/gi.pyc
#尝试/usr/lib/python2.7/plat-linux2/gi.so
#尝试/usr/lib/python2.7/plat-linux2/gimodule.so
#尝试/usr/lib/python2.7/plat-linux2/gi.py
#尝试/usr/lib/python2.7/plat-linux2/gi.pyc
#尝试/usr/lib/python2.7/lib-tk/gi.so
#尝试/usr/lib/python2.7/lib-tk/gimodule.so
#尝试/usr/lib/python2.7/lib-tk/gi.py
#尝试/usr/lib/python2.7/lib-tk/gi.pyc
#尝试/usr/lib/python2.7/lib-dynload/gi.so
#尝试/usr/lib/python2.7/lib-dynload/gimodule.so
#尝试/usr/lib/python2.7/lib-dynload/gi.py
#尝试/usr/lib/python2.7/lib-dynload/gi.pyc
#尝试/usr/local/lib/python2.7/dist-packages/gi.so
#尝试/usr/local/lib/python2.7/dist-packages/gimodule.so
#尝试/usr/local/lib/python2.7/dist-packages/gi.py
#尝试/usr/local/lib/python2.7/dist-packages/gi.pyc
导入gi#目录/usr/lib/python2.7/dist-packages/gi
#尝试/usr/lib/python2.7/dist-packages/gi/__init__.so
#尝试/usr/lib/python2.7/dist-packages/gi/__init__module.so
#尝试/usr/lib/python2.7/dist-packages/gi/__init__.py
#/usr/lib/python2.7/dist-packages/gi/__init__.pyc匹配/usr/lib/python2.7/dist-packages/gi/__init__.py
从/usr/lib/python2.7/dist-packages/gi/__init__.pyc预编译import gi#
#尝试__future__.so
#尝试__future__module.so
#尝试__future__.py
#尝试__future __。pyc
#尝试/usr/lib/python2.7/__future__.so
#尝试/usr/lib/python2.7/__future__module.so
#尝试/usr/lib/python2.7/__future__.py
#/usr/lib/python2.7/__future__.pyc匹配/usr/lib/python2.7/__future__.py
从/usr/lib/python2.7/__future__.pyc预编译import __future__#
#尝试/usr/lib/python2.7/dist-packages/gi/_gi.so
dlopen(“ / usr / lib / python2.7 / dist-packages / gi / _gi.so”,2);
导入gi._gobject#目录/usr/lib/python2.7/dist-packages/gi/_gobject
#尝试/usr/lib/python2.7/dist-packages/gi/_gobject/__init__.so
#尝试/usr/lib/python2.7/dist-packages/gi/_gobject/__init__module.so
#尝试/usr/lib/python2.7/dist-packages/gi/_gobject/__init__.py
#/usr/lib/python2.7/dist-packages/gi/_gobject/__init__.pyc匹配/usr/lib/python2.7/dist-packages/gi/_gobject/__init__.py
从/usr/lib/python2.7/dist-packages/gi/_gobject/__init__.pyc预编译import gi._gobject#
#尝试/usr/lib/python2.7/dist-packages/gi/_gobject/sys.so
#尝试/usr/lib/python2.7/dist-packages/gi/_gobject/sysmodule.so
#尝试/usr/lib/python2.7/dist-packages/gi/_gobject/sys.py
#尝试/usr/lib/python2.7/dist-packages/gi/_gobject/sys.pyc
导入gi._glib#目录/usr/lib/python2.7/dist-packages/gi/_glib
#尝试/usr/lib/python2.7/dist-packages/gi/_glib/__init__.so
#尝试/usr/lib/python2.7/dist-packages/gi/_glib/__init__module.so
#尝试/usr/lib/python2.7/dist-packages/gi/_glib/__init__.py
#/usr/lib/python2.7/dist-packages/gi/_glib/__init__.pyc匹配/usr/lib/python2.7/dist-packages/gi/_glib/__init__.py
从/usr/lib/python2.7/dist-packages/gi/_glib/__init__.pyc预编译import gi._glib#
#尝试/usr/lib/python2.7/dist-packages/gi/_glib/_glib.so
dlopen(“ / usr / lib / python2.7 / dist-packages / gi / _glib / _glib.so”,2);
导入gi._glib._glib#从/usr/lib/python2.7/dist-packages/gi/_glib/_glib.so动态加载
#尝试/usr/lib/python2.7/dist-packages/gi/_glib/option.so
#尝试/usr/lib/python2.7/dist-packages/gi/_glib/optionmodule.so
#尝试/usr/lib/python2.7/dist-packages/gi/_glib/option.py
#/usr/lib/python2.7/dist-packages/gi/_glib/option.pyc匹配/usr/lib/python2.7/dist-packages/gi/_glib/option.py
import gi._glib.option#从/usr/lib/python2.7/dist-packages/gi/_glib/option.pyc预编译
#尝试/usr/lib/python2.7/dist-packages/gi/_glib/sys.so
#尝试/usr/lib/python2.7/dist-packages/gi/_glib/sysmodule.so
#尝试/usr/lib/python2.7/dist-packages/gi/_glib/sys.py
#尝试/usr/lib/python2.7/dist-packages/gi/_glib/sys.pyc
#尝试/usr/lib/python2.7/dist-packages/gi/_glib/optparse.so
#尝试/usr/lib/python2.7/dist-packages/gi/_glib/optparsemodule.so
#尝试/usr/lib/python2.7/dist-packages/gi/_glib/optparse.py
#尝试/usr/lib/python2.7/dist-packages/gi/_glib/optparse.pyc
#尝试optparse.so
#尝试optparsemodule.so
#尝试optparse.py
#尝试optparse.pyc
#尝试/usr/lib/python2.7/optparse.so
#尝试/usr/lib/python2.7/optparsemodule.so
#尝试/usr/lib/python2.7/optparse.py
#/usr/lib/python2.7/optparse.pyc匹配/usr/lib/python2.7/optparse.py
从/usr/lib/python2.7/optparse.pyc预编译import optparse#
#尝试textwrap.so
#尝试textwrapmodule.so
#尝试textwrap.py
#尝试textwrap.pyc
#尝试/usr/lib/python2.7/textwrap.so
#尝试/usr/lib/python2.7/textwrapmodule.so
#尝试/usr/lib/python2.7/textwrap.py
#/usr/lib/python2.7/textwrap.pyc匹配/usr/lib/python2.7/textwrap.py
导入从/usr/lib/python2.7/textwrap.pyc预编译的textwrap#
#尝试string.so
#尝试stringmodule.so
#尝试string.py
#尝试string.pyc
#尝试/usr/lib/python2.7/string.so
#尝试/usr/lib/python2.7/stringmodule.so
#尝试/usr/lib/python2.7/string.py
#/usr/lib/python2.7/string.pyc匹配/usr/lib/python2.7/string.py
导入字符串#从/usr/lib/python2.7/string.pyc预编译
导入strop#内置
#尝试gettext.so
#尝试gettextmodule.so
#尝试gettext.py
#尝试gettext.pyc
#尝试/usr/lib/python2.7/gettext.so
#尝试/usr/lib/python2.7/gettextmodule.so
#尝试/usr/lib/python2.7/gettext.py
#/usr/lib/python2.7/gettext.pyc匹配/usr/lib/python2.7/gettext.py
从/usr/lib/python2.7/gettext.pyc预编译import gettext#
#尝试locale.so
#尝试localemodule.so
#尝试locale.py
#尝试locale.pyc
#尝试/usr/lib/python2.7/locale.so
#尝试/usr/lib/python2.7/localemodule.so
#尝试/usr/lib/python2.7/locale.py
#/usr/lib/python2.7/locale.pyc与/usr/lib/python2.7/locale.py匹配
从/usr/lib/python2.7/locale.pyc预编译的import locale#
导入运算符#内置
#尝试functools.so
#尝试functoolsmodule.so
#尝试functools.py
#尝试functools.pyc
#尝试/usr/lib/python2.7/functools.so
#尝试/usr/lib/python2.7/functoolsmodule.so
#尝试/usr/lib/python2.7/functools.py
#/usr/lib/python2.7/functools.pyc匹配/usr/lib/python2.7/functools.py
导入functools#从/usr/lib/python2.7/functools.pyc预编译
导入_functools#内置
导入_locale#内置
#尝试copy.so
#尝试copymodule.so
#尝试copy.py
#尝试copy.pyc
#尝试/usr/lib/python2.7/copy.so
#尝试/usr/lib/python2.7/copymodule.so
#尝试/usr/lib/python2.7/copy.py
#/usr/lib/python2.7/copy.pyc匹配/usr/lib/python2.7/copy.py
从/usr/lib/python2.7/copy.pyc预编译的import copy#
#尝试weakref.so
#尝试weakrefmodule.so
#尝试weakref.py
#尝试weakref.pyc
#尝试/usr/lib/python2.7/weakref.so
#尝试/usr/lib/python2.7/weakrefmodule.so
#尝试/usr/lib/python2.7/weakref.py
#/usr/lib/python2.7/weakref.pyc匹配/usr/lib/python2.7/weakref.py
从/usr/lib/python2.7/weakref.pyc预编译importweakref#
#尝试org.so
#尝试orgmodule.so
#尝试org.py
#尝试org.pyc
#尝试/usr/lib/python2.7/org.so
#尝试/usr/lib/python2.7/orgmodule.so
#尝试/usr/lib/python2.7/org.py
#尝试/usr/lib/python2.7/org.pyc
#尝试/usr/lib/python2.7/plat-linux2/org.so
#尝试/usr/lib/python2.7/plat-linux2/orgmodule.so
#尝试/usr/lib/python2.7/plat-linux2/org.py
#尝试/usr/lib/python2.7/plat-linux2/org.pyc
#尝试/usr/lib/python2.7/lib-tk/org.so
#尝试/usr/lib/python2.7/lib-tk/orgmodule.so
#尝试/usr/lib/python2.7/lib-tk/org.py
#尝试/usr/lib/python2.7/lib-tk/org.pyc
#尝试/usr/lib/python2.7/lib-dynload/org.so
#尝试/usr/lib/python2.7/lib-dynload/orgmodule.so
#尝试/usr/lib/python2.7/lib-dynload/org.py
#尝试/usr/lib/python2.7/lib-dynload/org.pyc
#尝试/usr/local/lib/python2.7/dist-packages/org.so
#尝试/usr/local/lib/python2.7/dist-packages/orgmodule.so
#尝试/usr/local/lib/python2.7/dist-packages/org.py
#尝试/usr/local/lib/python2.7/dist-packages/org.pyc
#尝试/usr/lib/python2.7/dist-packages/org.so
#尝试/usr/lib/python2.7/dist-packages/orgmodule.so
#尝试/usr/lib/python2.7/dist-packages/org.py
#尝试/usr/lib/python2.7/dist-packages/org.pyc
#尝试/usr/lib/python2.7/dist-packages/PIL/org.so
#尝试/usr/lib/python2.7/dist-packages/PIL/orgmodule.so
#尝试/usr/lib/python2.7/dist-packages/PIL/org.py
#尝试/usr/lib/python2.7/dist-packages/PIL/org.pyc
#尝试/usr/lib/python2.7/dist-packages/gst-0.10/org.so
#尝试/usr/lib/python2.7/dist-packages/gst-0.10/orgmodule.so
#尝试/usr/lib/python2.7/dist-packages/gst-0.10/org.py
#尝试/usr/lib/python2.7/dist-packages/gst-0.10/org.pyc
#尝试/usr/lib/python2.7/dist-packages/gtk-2.0/org.so
#尝试/usr/lib/python2.7/dist-packages/gtk-2.0/orgmodule.so
#尝试/usr/lib/python2.7/dist-packages/gtk-2.0/org.py
#尝试/usr/lib/python2.7/dist-packages/gtk-2.0/org.pyc
#尝试/usr/lib/pymodules/python2.7/org.so
#尝试/usr/lib/pymodules/python2.7/orgmodule.so
#尝试/usr/lib/pymodules/python2.7/org.py
#尝试/usr/lib/pymodules/python2.7/org.pyc
#尝试/usr/lib/python2.7/dist-packages/ubuntu-sso-client/org.so
#尝试/usr/lib/python2.7/dist-packages/ubuntu-sso-client/orgmodule.so
#尝试/usr/lib/python2.7/dist-packages/ubuntu-sso-client/org.py
#尝试/usr/lib/python2.7/dist-packages/ubuntu-sso-client/org.pyc
#尝试/usr/lib/python2.7/dist-packages/ubuntuone-client/org.so
#尝试/usr/lib/python2.7/dist-packages/ubuntuone-client/orgmodule.so
#尝试/usr/lib/python2.7/dist-packages/ubuntuone-client/org.py
#尝试/usr/lib/python2.7/dist-packages/ubuntuone-client/org.pyc
#尝试/usr/lib/python2.7/dist-packages/ubuntuone-control-panel/org.so
#尝试/usr/lib/python2.7/dist-packages/ubuntuone-control-panel/orgmodule.so
#尝试/usr/lib/python2.7/dist-packages/ubuntuone-control-panel/org.py
#尝试/usr/lib/python2.7/dist-packages/ubuntuone-control-panel/org.pyc
#尝试/usr/lib/python2.7/dist-packages/ubuntuone-couch/org.so
#尝试/usr/lib/python2.7/dist-packages/ubuntuone-couch/orgmodule.so
#尝试/usr/lib/python2.7/dist-packages/ubuntuone-couch/org.py
#尝试/usr/lib/python2.7/dist-packages/ubuntuone-couch/org.pyc
#尝试/usr/lib/python2.7/dist-packages/ubuntuone-installer/org.so
#尝试/usr/lib/python2.7/dist-packages/ubuntuone-installer/orgmodule.so
#尝试/usr/lib/python2.7/dist-packages/ubuntuone-installer/org.py
#尝试/usr/lib/python2.7/dist-packages/ubuntuone-installer/org.pyc
#尝试/usr/lib/python2.7/dist-packages/ubuntuone-storage-protocol/org.so
#尝试/usr/lib/python2.7/dist-packages/ubuntuone-storage-protocol/orgmodule.so
#尝试/usr/lib/python2.7/dist-packages/ubuntuone-storage-protocol/org.py
#尝试/usr/lib/python2.7/dist-packages/ubuntuone-storage-protocol/org.pyc
#尝试struct.so
#尝试structmodule.so
#尝试struct.py
#尝试struct.pyc
#尝试/usr/lib/python2.7/struct.so
#尝试/usr/lib/python2.7/structmodule.so
#尝试/usr/lib/python2.7/struct.py
#/usr/lib/python2.7/struct.pyc与/usr/lib/python2.7/struct.py匹配
从/usr/lib/python2.7/struct.pyc预编译导入struct#
导入_struct#内置
#尝试/usr/lib/python2.7/dist-packages/gi/_glib/gi.so
#尝试/usr/lib/python2.7/dist-packages/gi/_glib/gimodule.so
#尝试/usr/lib/python2.7/dist-packages/gi/_glib/gi.py
#尝试/usr/lib/python2.7/dist-packages/gi/_glib/gi.pyc
#尝试/usr/lib/python2.7/dist-packages/gi/_gobject/constants.so
#尝试/usr/lib/python2.7/dist-packages/gi/_gobject/constantsmodule.so
#尝试/usr/lib/python2.7/dist-packages/gi/_gobject/constants.py
#/usr/lib/python2.7/dist-packages/gi/_gobject/constants.pyc匹配/usr/lib/python2.7/dist-packages/gi/_gobject/constants.py
import gi._gobject.constants#从/usr/lib/python2.7/dist-packages/gi/_gobject/constants.pyc预编译
#尝试/usr/lib/python2.7/dist-packages/gi/_gobject/_gobject.so
dlopen(“ / usr / lib / python2.7 / dist-packages / gi / _gobject / _gobject.so”,2);
从/usr/lib/python2.7/dist-packages/gi/_gobject/_gobject.so动态加载import gi._gobject._gobject#
#尝试/usr/lib/python2.7/dist-packages/gi/_gobject/propertyhelper.so
#尝试/usr/lib/python2.7/dist-packages/gi/_gobject/propertyhelpermodule.so
#尝试/usr/lib/python2.7/dist-packages/gi/_gobject/propertyhelper.py
#/usr/lib/python2.7/dist-packages/gi/_gobject/propertyhelper.pyc匹配/usr/lib/python2.7/dist-packages/gi/_gobject/propertyhelper.py
从/usr/lib/python2.7/dist-packages/gi/_gobject/propertyhelper.pyc预编译的import gi._gobject.propertyhelper#
#尝试/usr/lib/python2.7/dist-packages/gi/_gobject/GTypeWrapper.so
#尝试/usr/lib/python2.7/dist-packages/gi/_gobject/GTypeWrappermodule.so
#尝试/usr/lib/python2.7/dist-packages/gi/_gobject/GTypeWrapper.py
#尝试/usr/lib/python2.7/dist-packages/gi/_gobject/GTypeWrapper.pyc
#尝试datetime.so
#尝试datetimemodule.so
#尝试datetime.py
#尝试datetime.pyc
#尝试/usr/lib/python2.7/datetime.so
#尝试/usr/lib/python2.7/datetimemodule.so
#尝试/usr/lib/python2.7/datetime.py
#尝试/usr/lib/python2.7/datetime.pyc
#尝试/usr/lib/python2.7/plat-linux2/datetime.so
#尝试/usr/lib/python2.7/plat-linux2/datetimemodule.so
#尝试/usr/lib/python2.7/plat-linux2/datetime.py
#尝试/usr/lib/python2.7/plat-linux2/datetime.pyc
#尝试/usr/lib/python2.7/lib-tk/datetime.so
#尝试/usr/lib/python2.7/lib-tk/datetimemodule.so
#尝试/usr/lib/python2.7/lib-tk/datetime.py
#尝试/usr/lib/python2.7/lib-tk/datetime.pyc
#尝试/usr/lib/python2.7/lib-dynload/datetime.so
dlopen(“ / usr / lib / python2.7 / lib-dynload / datetime.so”,2);
import datetime#从/usr/lib/python2.7/lib-dynload/datetime.so动态加载
#尝试/usr/lib/python2.7/dist-packages/gi/_gobject/GTypeWrapper.so
#尝试/usr/lib/python2.7/dist-packages/gi/_gobject/GTypeWrappermodule.so
#尝试/usr/lib/python2.7/dist-packages/gi/_gobject/GTypeWrapper.py
#尝试/usr/lib/python2.7/dist-packages/gi/_gobject/GTypeWrapper.pyc
import gi._gi#从/usr/lib/python2.7/dist-packages/gi/_gi.so动态加载
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.