You are not logged in.

#1 2013-04-07 14:37:31

From: Berlin, Germany
Registered: 2007-10-26
Posts: 616

[solved] Python issues when trying to run tpfanco-svn from AUR

I installed tpfanco-svn [1] from the AUR, and all that went smoothly. However, I do get some serious Python related errors when I actually try to run tpfand or tpfan-admin, and I do not know whether they are actually Python 2 or Python 3 related.

Here are the error messages:

$ tpfand

Traceback (most recent call last):
  File "/usr/sbin/tpfand", line 26, in <module>
    import tpfand.control
  File "/usr/lib/python2.7/site-packages/tpfand/", line 27, in <module>
    import dbus, dbus.service, dbus.mainloop.glib, dbus.glib
  File "/usr/lib/python3.3/site-packages/dbus/", line 82, in <module>
    import dbus.types as types
  File "/usr/lib/python3.3/site-packages/dbus/", line 6, in <module>
    from _dbus_bindings import (
ImportError: /usr/lib/python3.3/site-packages/ undefined symbol: PyBytes_Type

And for the other command:

$ tpfan-admin

Traceback (most recent call last):
  File "/usr/bin/tpfan-admin", line 21, in <module>
    import tpfanadmin.globals
  File "/usr/lib/python2.7/site-packages/tpfanadmin/", line 24, in <module>
    import gtk,, gobject, gtk.gdk
  File "/usr/lib/python2.7/site-packages/gtk-2.0/gtk/", line 40, in <module>
    from gtk import _gtk
  File "/usr/lib/python3.3/site-packages/cairo/", line 2
SyntaxError: Non-ASCII character '\xc2' in file /usr/lib/python3.3/site-packages/cairo/ on line 3, but no encoding declared; see for details

Any ideas how to debug this? Maybe I am missing some package?


EDIT/Solution: The scripts, both tpfand and the tpfan-admin GUI, are only meant to be run as root. If done so, no errors are thrown.

Last edited by Stalafin (2013-04-19 14:12:01)


Board footer

Powered by FluxBB