【发布时间】:2013-06-01 10:40:27
【问题描述】:
导入 glib 失败:
ImportError: /usr/lib/python2.7/dist-packages/glib/_glib.so: undefined symbol: PyUnicodeUCS4_DecodeUTF8
我该如何解决这个问题?
Python 版本是 Python 2.7.3rc2。操作系统是 Debian。
【问题讨论】:
导入 glib 失败:
ImportError: /usr/lib/python2.7/dist-packages/glib/_glib.so: undefined symbol: PyUnicodeUCS4_DecodeUTF8
我该如何解决这个问题?
Python 版本是 Python 2.7.3rc2。操作系统是 Debian。
【问题讨论】:
该模块是针对 Python 构建的,该 Python 使用 UCS-4 作为其内部 unicode 表示。您的 Python 是使用 UCS-2 作为其内部表示构建的。重建模块,或重建 Python。
the official FAQ 中提到了这个问题。对此进行了深入讨论in python issue 8654。
【讨论】: