Meningkatkan verbositas penerjemah sangat membantu dalam menentukan masalah ini. Bahkan setelah semua itu, saya mencoba melakukan symlink sederhana dari paket 2,7 dist ke paket usr / lokal saya 3.x dan mendapatkan sedikit lebih jauh, tetapi tidak banyak.
sudo ln -s /usr/lib/python2.7/dist-packages/gi/ /usr/local/lib/python3.2/dist-packages
~ $ python3
Python 3.2.2+ (default, 16 Feb 2012, 19:05:44)
[GCC 4.6.2] di linux2
Ketik "bantuan", "hak cipta", "kredit" atau "lisensi" untuk informasi lebih lanjut.
>>> impor gi
Traceback (panggilan terakhir terakhir):
File "", baris 1, dalam
File "/usr/local/lib/python3.2/dist-packages/gi/__init__.py", baris 23, di
dari ._gi import _API, Repository
ImportError: /usr/lib/libpyglib-gi-2.0-python2.7.so.0: simbol yang tidak terdefinisi: _Py_ZeroStruct
Jika Anda dapat melacak simbol yang hilang itu, Anda mungkin dapat menyelesaikan masalah ini. Inilah semua keluaran impor verbose yang membawa saya sejauh ini. Juga, ini tampaknya relevan: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=645963 , Semoga Sukses.
>>> impor gi
# mencoba gi.cpython-32mu.so
# mencoba gimodule.cpython-32mu.so
# mencoba gi.abi3.so
# mencoba gimodule.abi3.so
# mencoba gi.so
# mencoba gimodule.so
# mencoba gi.py
# mencoba gi.pyc
# mencoba /usr/lib/python3.2/gi.cpython-32mu.so
# mencoba /usr/lib/python3.2/gimodule.cpython-32mu.so
# mencoba /usr/lib/python3.2/gi.abi3.so
# mencoba /usr/lib/python3.2/gimodule.abi3.so
# mencoba /usr/lib/python3.2/gi.so
# mencoba /usr/lib/python3.2/gimodule.so
# mencoba /usr/lib/python3.2/gi.py
# mencoba /usr/lib/python3.2/gi.pyc
# mencoba /usr/lib/python3.2/plat-linux2/gi.cpython-32mu.so
# mencoba /usr/lib/python3.2/plat-linux2/gimodule.cpython-32mu.so
# mencoba /usr/lib/python3.2/plat-linux2/gi.abi3.so
# mencoba /usr/lib/python3.2/plat-linux2/gimodule.abi3.so
# mencoba /usr/lib/python3.2/plat-linux2/gi.so
# mencoba /usr/lib/python3.2/plat-linux2/gimodule.so
# mencoba /usr/lib/python3.2/plat-linux2/gi.py
# mencoba /usr/lib/python3.2/plat-linux2/gi.pyc
# mencoba /usr/lib/python3.2/lib-dynload/gi.cpython-32mu.so
# mencoba /usr/lib/python3.2/lib-dynload/gimodule.cpython-32mu.so
# mencoba /usr/lib/python3.2/lib-dynload/gi.abi3.so
# mencoba /usr/lib/python3.2/lib-dynload/gimodule.abi3.so
# mencoba /usr/lib/python3.2/lib-dynload/gi.so
# mencoba /usr/lib/python3.2/lib-dynload/gimodule.so
# mencoba /usr/lib/python3.2/lib-dynload/gi.py
# mencoba /usr/lib/python3.2/lib-dynload/gi.pyc
# mencoba /usr/local/lib/python3.2/dist-packages/gi.cpython-32mu.so
# mencoba /usr/local/lib/python3.2/dist-packages/gimodule.cpython-32mu.so
# mencoba /usr/local/lib/python3.2/dist-packages/gi.abi3.so
# mencoba /usr/local/lib/python3.2/dist-packages/gimodule.abi3.so
# mencoba /usr/local/lib/python3.2/dist-packages/gi.so
# mencoba /usr/local/lib/python3.2/dist-packages/gimodule.so
# mencoba /usr/local/lib/python3.2/dist-packages/gi.py
# mencoba /usr/local/lib/python3.2/dist-packages/gi.pyc
# mencoba /usr/lib/python3/dist-packages/gi.cpython-32mu.so
# mencoba /usr/lib/python3/dist-packages/gimodule.cpython-32mu.so
# mencoba /usr/lib/python3/dist-packages/gi.abi3.so
# mencoba /usr/lib/python3/dist-packages/gimodule.abi3.so
# mencoba /usr/lib/python3/dist-packages/gi.so
# mencoba /usr/lib/python3/dist-packages/gimodule.so
# mencoba /usr/lib/python3/dist-packages/gi.py
# mencoba /usr/lib/python3/dist-packages/gi.pyc
Traceback (panggilan terakhir terakhir):
File "", baris 1, dalam
ImportError: Tidak ada modul bernama gi
Jalur pencarian bahkan tidak melihat jalur python2.7. Begini tampilannya dari sisi sukses python2.7.
>>> impor gi
# mencoba gi.so
# mencoba gimodule.so
# mencoba gi.py
# mencoba gi.pyc
# mencoba /usr/lib/python2.7/gi.so
# mencoba /usr/lib/python2.7/gimodule.so
# mencoba /usr/lib/python2.7/gi.py
# mencoba /usr/lib/python2.7/gi.pyc
# mencoba /usr/lib/python2.7/plat-linux2/gi.so
# mencoba /usr/lib/python2.7/plat-linux2/gimodule.so
# mencoba /usr/lib/python2.7/plat-linux2/gi.py
# mencoba /usr/lib/python2.7/plat-linux2/gi.pyc
# mencoba /usr/lib/python2.7/lib-tk/gi.so
# mencoba /usr/lib/python2.7/lib-tk/gimodule.so
# mencoba /usr/lib/python2.7/lib-tk/gi.py
# mencoba /usr/lib/python2.7/lib-tk/gi.pyc
# mencoba /usr/lib/python2.7/lib-dynload/gi.so
# mencoba /usr/lib/python2.7/lib-dynload/gimodule.so
# mencoba /usr/lib/python2.7/lib-dynload/gi.py
# mencoba /usr/lib/python2.7/lib-dynload/gi.pyc
# mencoba /usr/local/lib/python2.7/dist-packages/gi.so
# mencoba /usr/local/lib/python2.7/dist-packages/gimodule.so
# mencoba /usr/local/lib/python2.7/dist-packages/gi.py
# mencoba /usr/local/lib/python2.7/dist-packages/gi.pyc
import gi # direktori /usr/lib/python2.7/dist-packages/gi
# mencoba /usr/lib/python2.7/dist-packages/gi/__init__.so
# mencoba /usr/lib/python2.7/dist-packages/gi/__init__module.so
# mencoba /usr/lib/python2.7/dist-packages/gi/__init__.py
# /usr/lib/python2.7/dist-packages/gi/__init__.pyc cocok dengan /usr/lib/python2.7/dist-packages/gi/__init__.py
import gi # dikompilasi dari /usr/lib/python2.7/dist-packages/gi/__init__.pyc
# mencoba __future__.so
# mencoba __future__module.so
# mencoba __future__.py
# mencoba __future __. pyc
# mencoba /usr/lib/python2.7/__future__.so
# mencoba /usr/lib/python2.7/__future__module.so
# mencoba /usr/lib/python2.7/__future__.py
# /usr/lib/python2.7/__future__.pyc cocok dengan /usr/lib/python2.7/__future__.py
import __future__ # dikompilasi dari /usr/lib/python2.7/__future__.pyc
# mencoba /usr/lib/python2.7/dist-packages/gi/_gi.so
dlopen ("/ usr / lib / python2.7 / dist-Packages / gi / _gi.so", 2);
import gi._gobject # direktori /usr/lib/python2.7/dist-packages/gi/_gobject
# mencoba /usr/lib/python2.7/dist-packages/gi/_gobject/__init__.so
# mencoba /usr/lib/python2.7/dist-packages/gi/_gobject/__init__module.so
# mencoba /usr/lib/python2.7/dist-packages/gi/_gobject/__init__.py
# /usr/lib/python2.7/dist-packages/gi/_gobject/__init__.pyc cocok dengan /usr/lib/python2.7/dist-packages/gi/_gobject/__init__.py
import gi._gobject # dikompilasi dari /usr/lib/python2.7/dist-packages/gi/_gobject/__init__.pyc
# mencoba /usr/lib/python2.7/dist-packages/gi/_gobject/sys.so
# mencoba /usr/lib/python2.7/dist-packages/gi/_gobject/sysmodule.so
# mencoba /usr/lib/python2.7/dist-packages/gi/_gobject/sys.py
# mencoba /usr/lib/python2.7/dist-packages/gi/_gobject/sys.pyc
import gi._glib # direktori /usr/lib/python2.7/dist-packages/gi/_glib
# mencoba /usr/lib/python2.7/dist-packages/gi/_glib/__init__.so
# mencoba /usr/lib/python2.7/dist-packages/gi/_glib/__init__module.so
# mencoba /usr/lib/python2.7/dist-packages/gi/_glib/__init__.py
# /usr/lib/python2.7/dist-packages/gi/_glib/__init__.pyc cocok dengan /usr/lib/python2.7/dist-packages/gi/_glib/__init__.py
import gi._glib # dikompilasi dari /usr/lib/python2.7/dist-packages/gi/_glib/__init__.pyc
# mencoba /usr/lib/python2.7/dist-packages/gi/_glib/_glib.so
dlopen ("/ usr / lib / python2.7 / dist-paket / gi / _glib / _glib.so", 2);
import gi._glib._glib # dimuat secara dinamis dari /usr/lib/python2.7/dist-packages/gi/_glib/_glib.so
# mencoba /usr/lib/python2.7/dist-packages/gi/_glib/option.so
# mencoba /usr/lib/python2.7/dist-packages/gi/_glib/optionmodule.so
# mencoba /usr/lib/python2.7/dist-packages/gi/_glib/option.py
# /usr/lib/python2.7/dist-packages/gi/_glib/option.pyc cocok dengan /usr/lib/python2.7/dist-packages/gi/_glib/option.py
import gi._glib.option # dikompilasi dari /usr/lib/python2.7/dist-packages/gi/_glib/option.pyc
# mencoba /usr/lib/python2.7/dist-packages/gi/_glib/sys.so
# mencoba /usr/lib/python2.7/dist-packages/gi/_glib/sysmodule.so
# mencoba /usr/lib/python2.7/dist-packages/gi/_glib/sys.py
# mencoba /usr/lib/python2.7/dist-packages/gi/_glib/sys.pyc
# mencoba /usr/lib/python2.7/dist-packages/gi/_glib/optparse.so
# mencoba /usr/lib/python2.7/dist-packages/gi/_glib/optparsemodule.so
# mencoba /usr/lib/python2.7/dist-packages/gi/_glib/optparse.py
# mencoba /usr/lib/python2.7/dist-packages/gi/_glib/optparse.pyc
# mencoba optparse.so
# mencoba optparsemodule.so
# mencoba optparse.py
# mencoba optparse.pyc
# mencoba /usr/lib/python2.7/optparse.so
# mencoba /usr/lib/python2.7/optparsemodule.so
# mencoba /usr/lib/python2.7/optparse.py
cocok dengan /usr/lib/python2.7/optparse.pyc /usr/lib/python2.7/optparse.py
import optparse # dikompilasi dari /usr/lib/python2.7/optparse.pyc
# mencoba textwrap.so
# mencoba textwrapmodule.so
# mencoba textwrap.py
# mencoba textwrap.pyc
# mencoba /usr/lib/python2.7/textwrap.so
# mencoba /usr/lib/python2.7/textwrapmodule.so
# mencoba /usr/lib/python2.7/textwrap.py
# /usr/lib/python2.7/textwrap.pyc cocok dengan /usr/lib/python2.7/textwrap.py
import textwrap # dikompilasi dari /usr/lib/python2.7/textwrap.pyc
# mencoba string.so
# mencoba stringmodule.so
# mencoba string.py
# mencoba string.pyc
# mencoba / usr/lib/python2.7/string.so
# mencoba /usr/lib/python2.7/stringmodule.so
# mencoba /usr/lib/python2.7/string.py
# /usr/lib/python2.7/string.pyc cocok dengan /usr/lib/python2.7/string.py
import string # yang dikompilasi dari /usr/lib/python2.7/string.pyc
impor strop # builtin
# mencoba gettext.so
# mencoba gettextmodule.so
# mencoba gettext.py
# mencoba gettext.pyc
# mencoba /usr/lib/python2.7/gettext.so
# mencoba /usr/lib/python2.7/gettextmodule.so
# mencoba /usr/lib/python2.7/gettext.py
# /usr/lib/python2.7/gettext.pyc cocok dengan /usr/lib/python2.7/gettext.py
import gettext # dikompilasi dari /usr/lib/python2.7/gettext.pyc
# mencoba locale.so
# mencoba localemodule.so
# mencoba locale.py
# mencoba locale.pyc
# mencoba /usr/lib/python2.7/locale.so
# mencoba /usr/lib/python2.7/localemodule.so
# mencoba /usr/lib/python2.7/locale.py
# /usr/lib/python2.7/locale.pyc cocok dengan /usr/lib/python2.7/locale.py
impor lokal # yang dikompilasi dari /usr/lib/python2.7/locale.pyc
operator impor # builtin
# mencoba functools.so
# mencoba functoolsmodule.so
# mencoba functools.py
# mencoba functools.pyc
# mencoba /usr/lib/python2.7/functools.so
# mencoba /usr/lib/python2.7/functoolsmodule.so
# mencoba /usr/lib/python2.7/functools.py
# /usr/lib/python2.7/functools.pyc cocok dengan /usr/lib/python2.7/functools.py
import functools # dikompilasi dari /usr/lib/python2.7/functools.pyc
import _functools # builtin
import _locale # builtin
# mencoba copy.so
# mencoba copymodule.so
# mencoba copy.py
# mencoba copy.pyc
# mencoba / usr/lib/python2.7/copy.so
# mencoba /usr/lib/python2.7/copymodule.so
# mencoba /usr/lib/python2.7/copy.py
# /usr/lib/python2.7/copy.pyc cocok dengan /usr/lib/python2.7/copy.py
impor salinan # yang dikompilasi dari /usr/lib/python2.7/copy.pyc
# mencoba lemahref.so
# mencoba lemahrefmodule.so
# mencoba lemahref.py
# mencoba lemahref.pyc
# mencoba /usr/lib/python2.7/weakref.so
# mencoba /usr/lib/python2.7/weakrefmodule.so
# mencoba /usr/lib/python2.7/weakref.py
# /usr/lib/python2.7/weakref.pyc cocok dengan /usr/lib/python2.7/weakref.py
import lemahkan # yang dikompilasi dari /usr/lib/python2.7/weakref.pyc
# mencoba org.so
# mencoba orgmodule.so
# mencoba org.py
# mencoba org.pyc
# mencoba / usr/lib/python2.7/org.so
# mencoba /usr/lib/python2.7/orgmodule.so
# mencoba / usr/lib/python2.7/org.py
# mencoba /usr/lib/python2.7/org.pyc
# mencoba /usr/lib/python2.7/plat-linux2/org.so
# mencoba /usr/lib/python2.7/plat-linux2/orgmodule.so
# mencoba /usr/lib/python2.7/plat-linux2/org.py
# mencoba /usr/lib/python2.7/plat-linux2/org.pyc
# mencoba /usr/lib/python2.7/lib-tk/org.so
# mencoba /usr/lib/python2.7/lib-tk/orgmodule.so
# mencoba /usr/lib/python2.7/lib-tk/org.py
# mencoba /usr/lib/python2.7/lib-tk/org.pyc
# mencoba /usr/lib/python2.7/lib-dynload/org.so
# mencoba /usr/lib/python2.7/lib-dynload/orgmodule.so
# mencoba /usr/lib/python2.7/lib-dynload/org.py
# mencoba /usr/lib/python2.7/lib-dynload/org.pyc
# mencoba /usr/local/lib/python2.7/dist-packages/org.so
# mencoba /usr/local/lib/python2.7/dist-packages/orgmodule.so
# mencoba /usr/local/lib/python2.7/dist-packages/org.py
# mencoba /usr/local/lib/python2.7/dist-packages/org.pyc
# mencoba /usr/lib/python2.7/dist-packages/org.so
# mencoba /usr/lib/python2.7/dist-packages/orgmodule.so
# mencoba /usr/lib/python2.7/dist-packages/org.py
# mencoba /usr/lib/python2.7/dist-packages/org.pyc
# mencoba /usr/lib/python2.7/dist-packages/PIL/org.so
# mencoba /usr/lib/python2.7/dist-packages/PIL/orgmodule.so
# mencoba /usr/lib/python2.7/dist-packages/PIL/org.py
# mencoba /usr/lib/python2.7/dist-packages/PIL/org.pyc
# mencoba /usr/lib/python2.7/dist-packages/gst-0.10/org.so
# mencoba /usr/lib/python2.7/dist-packages/gst-0.10/orgmodule.so
# mencoba /usr/lib/python2.7/dist-packages/gst-0.10/org.py
# mencoba /usr/lib/python2.7/dist-packages/gst-0.10/org.pyc
# mencoba /usr/lib/python2.7/dist-packages/gtk-2.0/org.so
# mencoba /usr/lib/python2.7/dist-packages/gtk-2.0/orgmodule.so
# mencoba /usr/lib/python2.7/dist-packages/gtk-2.0/org.py
# mencoba /usr/lib/python2.7/dist-packages/gtk-2.0/org.pyc
# mencoba /usr/lib/pymodules/python2.7/org.so
# mencoba /usr/lib/pymodules/python2.7/orgmodule.so
# mencoba /usr/lib/pymodules/python2.7/org.py
# mencoba /usr/lib/pymodules/python2.7/org.pyc
# mencoba /usr/lib/python2.7/dist-packages/ubuntu-sso-client/org.so
# mencoba /usr/lib/python2.7/dist-packages/ubuntu-sso-client/orgmodule.so
# mencoba /usr/lib/python2.7/dist-packages/ubuntu-sso-client/org.py
# mencoba /usr/lib/python2.7/dist-packages/ubuntu-sso-client/org.pyc
# mencoba /usr/lib/python2.7/dist-packages/ubuntuone-client/org.so
# mencoba /usr/lib/python2.7/dist-packages/ubuntuone-client/orgmodule.so
# mencoba /usr/lib/python2.7/dist-packages/ubuntuone-client/org.py
# mencoba /usr/lib/python2.7/dist-packages/ubuntuone-client/org.pyc
# mencoba /usr/lib/python2.7/dist-packages/ubuntuone-control-panel/org.so
# mencoba /usr/lib/python2.7/dist-packages/ubuntuone-control-panel/orgmodule.so
# mencoba /usr/lib/python2.7/dist-packages/ubuntuone-control-panel/org.py
# mencoba /usr/lib/python2.7/dist-packages/ubuntuone-control-panel/org.pyc
# mencoba /usr/lib/python2.7/dist-packages/ubuntuone-couch/org.so
# mencoba /usr/lib/python2.7/dist-packages/ubuntuone-couch/orgmodule.so
# mencoba /usr/lib/python2.7/dist-packages/ubuntuone-couch/org.py
# mencoba /usr/lib/python2.7/dist-packages/ubuntuone-couch/org.pyc
# mencoba /usr/lib/python2.7/dist-packages/ubuntuone-installer/org.so
# mencoba /usr/lib/python2.7/dist-packages/ubuntuone-installer/orgmodule.so
# mencoba /usr/lib/python2.7/dist-packages/ubuntuone-installer/org.py
# mencoba /usr/lib/python2.7/dist-packages/ubuntuone-installer/org.pyc
# mencoba /usr/lib/python2.7/dist-packages/ubuntuone-storage-protocol/org.so
# mencoba /usr/lib/python2.7/dist-packages/ubuntuone-storage-protocol/orgmodule.so
# mencoba /usr/lib/python2.7/dist-packages/ubuntuone-storage-protocol/org.py
# mencoba /usr/lib/python2.7/dist-packages/ubuntuone-storage-protocol/org.pyc
# mencoba struct.so
# mencoba structmodule.so
# mencoba struct.py
# mencoba struct.pyc
# mencoba /usr/lib/python2.7/struct.so
# mencoba /usr/lib/python2.7/structmodule.so
# mencoba / usr/lib/python2.7/struct.py
# /usr/lib/python2.7/struct.pyc cocok dengan /usr/lib/python2.7/struct.py
import struct # dikompilasi dari /usr/lib/python2.7/struct.pyc
import _struct # builtin
# mencoba /usr/lib/python2.7/dist-packages/gi/_glib/gi.so
# mencoba /usr/lib/python2.7/dist-packages/gi/_glib/gimodule.so
# mencoba /usr/lib/python2.7/dist-packages/gi/_glib/gi.py
# mencoba /usr/lib/python2.7/dist-packages/gi/_glib/gi.pyc
# mencoba /usr/lib/python2.7/dist-packages/gi/_gobject/constants.so
# mencoba /usr/lib/python2.7/dist-packages/gi/_gobject/constantsmodule.so
# mencoba /usr/lib/python2.7/dist-packages/gi/_gobject/constants.py
# /usr/lib/python2.7/dist-packages/gi/_gobject/constants.pyc cocok dengan /usr/lib/python2.7/dist-packages/gi/_gobject/constants.py
import gi._gobject.constants # dikompilasi dari /usr/lib/python2.7/dist-packages/gi/_gobject/constants.pyc
# mencoba /usr/lib/python2.7/dist-packages/gi/_gobject/_gobject.so
dlopen ("/ usr / lib / python2.7 / dist-paket / gi / _gobject / _gobject.so", 2);
import gi._gobject._gobject # dimuat secara dinamis dari /usr/lib/python2.7/dist-packages/gi/_gobject/_gobject.so
# mencoba /usr/lib/python2.7/dist-packages/gi/_gobject/propertyhelper.so
# mencoba /usr/lib/python2.7/dist-packages/gi/_gobject/propertyhelpermodule.so
# mencoba /usr/lib/python2.7/dist-packages/gi/_gobject/propertyhelper.py
# /usr/lib/python2.7/dist-packages/gi/_gobject/propertyhelper.pyc cocok dengan /usr/lib/python2.7/dist-packages/gi/_gobject/propertyhelper.py
import gi._gobject.propertyhelper # dikompilasi dari /usr/lib/python2.7/dist-packages/gi/_gobject/propertyhelper.pyc
# mencoba /usr/lib/python2.7/dist-packages/gi/_gobject/GTypeWrapper.so
# mencoba /usr/lib/python2.7/dist-packages/gi/_gobject/GTypeWrappermodule.so
# mencoba /usr/lib/python2.7/dist-packages/gi/_gobject/GTypeWrapper.py
# mencoba /usr/lib/python2.7/dist-packages/gi/_gobject/GTypeWrapper.pyc
# mencoba datetime.so
# mencoba datetimemodule.so
# mencoba datetime.py
# mencoba datetime.pyc
# mencoba / usr/lib/python2.7/datetime.so
# mencoba /usr/lib/python2.7/datetimemodule.so
# mencoba /usr/lib/python2.7/datetime.py
# mencoba /usr/lib/python2.7/datetime.pyc
# mencoba /usr/lib/python2.7/plat-linux2/datetime.so
# mencoba /usr/lib/python2.7/plat-linux2/datetimemodule.so
# mencoba /usr/lib/python2.7/plat-linux2/datetime.py
# mencoba /usr/lib/python2.7/plat-linux2/datetime.pyc
# mencoba /usr/lib/python2.7/lib-tk/datetime.so
# mencoba /usr/lib/python2.7/lib-tk/datetimemodule.so
# mencoba /usr/lib/python2.7/lib-tk/datetime.py
# mencoba /usr/lib/python2.7/lib-tk/datetime.pyc
# mencoba /usr/lib/python2.7/lib-dynload/datetime.so
dlopen ("/ usr / lib / python2.7 / lib-dynload / datetime.so", 2);
impor datetime # secara dinamis diambil dari /usr/lib/python2.7/lib-dynload/datetime.so
# mencoba /usr/lib/python2.7/dist-packages/gi/_gobject/GTypeWrapper.so
# mencoba /usr/lib/python2.7/dist-packages/gi/_gobject/GTypeWrappermodule.so
# mencoba /usr/lib/python2.7/dist-packages/gi/_gobject/GTypeWrapper.py
# mencoba /usr/lib/python2.7/dist-packages/gi/_gobject/GTypeWrapper.pyc
import gi._gi # dimuat secara dinamis dari /usr/lib/python2.7/dist-packages/gi/_gi.so