You are not logged in.

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

Stalafin
Member
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/control.py", line 27, in <module>
    import dbus, dbus.service, dbus.mainloop.glib, dbus.glib
  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

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/globals.py", line 24, in <module>
    import gtk, gtk.glade, gobject, gtk.gdk
  File "/usr/lib/python2.7/site-packages/gtk-2.0/gtk/__init__.py", line 40, in <module>
    from gtk import _gtk
  File "/usr/lib/python3.3/site-packages/cairo/__init__.py", line 2
SyntaxError: Non-ASCII character '\xc2' in file /usr/lib/python3.3/site-packages/cairo/__init__.py on line 3, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details

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



1: https://aur.archlinux.org/packages/tpfanco-svn/


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)

Offline

Board footer

Powered by FluxBB