Hi,<div><br></div><div>The python client interface is currently broken but with a bit of hacking you can get everything working again. </div><div><br></div><div>I have some patches that fix this that I've been meaning to submit.</div>
<div><br></div><div>Andy</div><div><br></div><div><div class="gmail_quote">On 28 September 2010 04:47, Garrett Holmstrom <span dir="ltr"><<a href="mailto:gholms@fedoraproject.org">gholms@fedoraproject.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi folks,<br>
<br>
I'm trying to familiarize myself with PK's python API as I try to generalize a script that normally calls apt directly, but I seem to be doing something wrong. When I call the following script on Fedora DBus throws an exception. Any clue what my problem might be?<br>
<br>
--<br>
<br>
#!/usr/bin/python -tt<br>
<br>
import packagekit.client<br>
<br>
client = packagekit.client.PackageKitClient()<br>
print client.get_updates()<br>
<br>
--<br>
<br>
Traceback (most recent call last):<br>
File "./test2.py", line 6, in <module><br>
print client.get_updates()<br>
File "/usr/lib/python2.6/site-packages/packagekit/client.py", line 310, in get_updates<br>
return self._run_transaction("GetUpdates", [filters], exit_handler)<br>
File "/usr/lib/python2.6/site-packages/packagekit/client.py", line 441, in _run_transaction<br>
trans.set_locale(self._locale)<br>
File "/usr/lib/python2.6/site-packages/packagekit/client.py", line 171, in set_locale<br>
return self._iface.SetLocale(code)<br>
File "/usr/lib/python2.6/site-packages/dbus/proxies.py", line 140, in __call__<br>
**keywords)<br>
File "/usr/lib/python2.6/site-packages/dbus/connection.py", line 630, in call_blocking<br>
message, timeout)<br>
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.UnknownMethod: Method "SetLocale" with signature "s" on interface "org.freedesktop.PackageKit.Transaction" doesn't exist<br>
_______________________________________________<br>
PackageKit mailing list<br>
<a href="mailto:PackageKit@lists.freedesktop.org" target="_blank">PackageKit@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/packagekit" target="_blank">http://lists.freedesktop.org/mailman/listinfo/packagekit</a><br>
</blockquote></div><br></div>