Вопрос

My os is archlinux.I have installed guake for a month and it works well.But today it can't start,and the errors is:

[arch@arch ~]$ python2 /usr/bin/guake
Traceback (most recent call last):
  File "/usr/bin/guake", line 34, in <module>
    import dbus
  File "/usr/lib/python3.3/site-packages/dbus/__init__.py", line 82, in <module>
    import dbus.types as types
  File "/usr/lib/python3.3/site-packages/dbus/types.py", line 6, in <module>
    from _dbus_bindings import (
ImportError: /usr/lib/python3.3/site-packages/_dbus_bindings.so: undefined symbol: PyBytes_Type

How can I fix it?

Это было полезно?

Решение 2

I find that the PYTHONPATH was set to

/usr/lib/python3.3/site-packages in /etc/profile

Comment this will solve it.

Другие советы

I think your python2 symlink is pointing to python3 instead. Try checking it using which python2. If it shows python3 and if your python3 symlink also ponts to python3 then you'll probably need to reinstall python2.

To add to other answers, define PYTHONPATH like this:

> PYTHONPATH="..." python2 /usr/bin/guake

In this case you're only changing path for this execution.

Also you can use env in command line to check current PYTHONPATH value.

> env | grep PYTHONPATH
Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top