Tuesday 16 September 2014

Re: PackageKit/Python: pk.install_packages() not able to install a package

2014-09-16 16:41 GMT+02:00 Till Kamppeter <till.kamppeter@gmail.com>:
> On 09/16/2014 04:14 PM, Matthias Klumpp wrote:
>>>
>>>> (Also, using PkTask instead of PkClient is recommended)
>>>
>
> After Googling and having seen
>
> https://gitorious.org/appstream/software-center/commit/7d50219075436e2f74cd5a7380e8776eb9d87b03?diffmode=sidebyside
>
> I simply tried replacing
>
> pk = PackageKitGlib.Client()
>
> by
>
> pk = PackageKitGlib.Task()
>
> in install-printerdriver.py
>
> The script kept working as before, including giving the same error when
> installing the package.
That's odd. Maybe reporting a bug is a good option now, since I don't
see an obvious mistake you made here.
Can you run
sudo /usr/lib/packagekit/packagekid --verbose
in a second terminal and then execute your script and attach the
output of the packagekit daemon somewhere?
Cheers,
Matthias

Btw, let's see if posting with my d.o address gets the message pass
through to the list ;-)

--
I welcome VSRE emails. See http://vsre.info/

--
ubuntu-devel mailing list
ubuntu-devel@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel