Question

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?

Was it helpful?

Solution 2

I find that the PYTHONPATH was set to

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

Comment this will solve it.

OTHER TIPS

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
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top