[Julian Andres Klode]
> That example then works, with both packagekit and
> gir1.2-packagekitglib installed.

Thank you for the feedback.  This is how the script fail when I try:

% python console.py install chrpath
<enum PK_PROGRESS_TYPE_ROLE of type PkProgressType> None
<enum PK_PROGRESS_TYPE_ALLOW_CANCEL of type PkProgressType> None
<enum PK_PROGRESS_TYPE_CALLER_ACTIVE of type PkProgressType> None
<enum PK_PROGRESS_TYPE_PERCENTAGE of type PkProgressType> None
<enum PK_PROGRESS_TYPE_STATUS of type PkProgressType> None
<enum PK_PROGRESS_TYPE_UID of type PkProgressType> None
<enum PK_PROGRESS_TYPE_STATUS of type PkProgressType> None
Traceback (most recent call last):
  File "console.py", line 45, in <module>
    sys.exit(main(sys.argv))
  File "console.py", line 28, in main
    client.install_packages(False, [args[2],], None, progress_cb, None)
GLib.Error: pk_client_error: The package id's 'chrpath' are not valid (6)
%

Is this working for you?  Packagekit is running:

% /usr/sbin/service packagekit status
* packagekit.service - PackageKit Daemon
   Loaded: loaded (/lib/systemd/system/packagekit.service; static)
   Active: active (running) since fr. 2015-12-25 22:27:11 CET; 13h ago
 Main PID: 3864 (packagekitd)
   CGroup: /system.slice/packagekit.service
           └─3864 /usr/lib/packagekit/packagekitd
%

-- 
Happy hacking
Petter Reinholdtsen

Reply via email to