[packagekit] Packagekit Python API has problems with Dbus in F14

Daniel Nicoletti daniel_nic85 at yahoo.com.br
Mon Nov 22 11:31:05 PST 2010

yes the python bindings probably are not up2date
(if you are using a recent version of PK)
since we don't have setLocale anymore
it should use setHints, but I don't like to
touch py code :P

If you want take a look at were the binding
calls setLocale

Daniel Nicoletti - KDE Developer
When a wicked man dies, his hope perishes;
all he expected from his power comes to nothing. Prov. 11:7

De: "rotru at br.ibm.com" <rotru at br.ibm.com>
Para: PackageKit users and developers list <packagekit at lists.freedesktop.org>
Enviadas: Segunda-feira, 22 de Novembro de 2010 17:27:29
Assunto: [packagekit] Packagekit Python API has problems with Dbus in F14


I think this is a bug. I am trying to
run this simple script in Python in a Fedora 14:

from packagekit import client 
cli = client.PackageKitClient() 

got this error: 

Traceback (most recent call last): 
  File "<string>",
line 1, in <module> 
  File "/usr/lib/python2.7/site-packages/packagekit/client.py",
line 233, in resolve 
  File "/usr/lib/python2.7/site-packages/packagekit/client.py",
line 441, in _run_transaction 
  File "/usr/lib/python2.7/site-packages/packagekit/client.py",
line 171, in set_locale 
    return self._iface.SetLocale(code) 
  File "/usr/lib/python2.7/site-packages/dbus/proxies.py",
line 140, in __call__ 
  File "/usr/lib/python2.7/site-packages/dbus/connection.py",
line 630, in call_blocking 
    message, timeout) 
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.UnknownMethod:
Method "SetLocale" with signature "s" on interface
"org.freedesktop.PackageKit.Transaction" doesn't exist 



Rodrigo Trujillo
Software Engineer
Linux Technology Center - Brasil

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/packagekit/attachments/20101122/7e85944e/attachment-0004.htm>

More information about the PackageKit mailing list