当我在命令行开始guake时:
➜ guake
Traceback (most recent call last):
File "/usr/local/lib/python2.7/runpy.py", line 162, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "/usr/local/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/usr/lib/python2.7/dist-packages/guake/main.py", line 27, in <module>
import dbus
File "/usr/lib/python2.7/dist-packages/dbus/__init__.py", line 82, in <module>
import dbus.types as types
File "/usr/lib/python2.7/dist-packages/dbus/types.py", line 6, in <module>
from _dbus_bindings import (
ImportError: /usr/lib/python2.7/dist-packages/_dbus_bindings.so: undefined symbol: PyUnicodeUCS4_DecodeUTF8
但是,我的python是在PyUnicodeUCS4_DecodeUTF8中构建的
>>> import sys
>>> if sys.maxunicode > 65535:
... print 'UCS4 build'
... else:
... print 'UCS2 build'
print 'UCS4 build'
所以,我认为dbus_python