HP Envy 4570 wireless printer - cannot get it working

File "/usr/share/system-config-printer/newprinter.py", line 4259, in getNPPPD
    ppd = cups.PPD(f)
RuntimeError: ppdOpenFile failed

From system-config-printer

Alway installs flawlessly, tried HP-Lip - it cannot find printer.

Also, from the wiki:

sudo systemctl enable --now org.cups.cupsd.socket

Does not work (can’t remember if it did previously).

I followed the wiki step by step - always worked before, any ideas?

CUPS service changed name with the last update

It’s no longer org.cups.cupsd.socket, but cups.socket.

Just running:

sudo systemctl enable cups.service
sudo systemctl start cups.service

(and possibly rebooting) should fix everything.

Pretty certain I did this, but only on my first :coffee: :smiley: BRB

@Kresimir nope, same error. system-config-printer has updated as well (I checked updates before rebooting).

image

Caught non-fatal exception.  Traceback:
File "/usr/share/system-config-printer/newprinter.py", line 4259, in getNPPPD
    ppd = cups.PPD(f)
RuntimeError: ppdOpenFile failed
Continuing anyway..

And lots of meaningless GTK noise.

Debug output:

/usr/share/system-config-printer/system-config-printer.py:315: DeprecationWarning: Gtk.ActionGroup.list_actions is deprecated
  for action in printer_manager_action_group.list_actions ():
/usr/share/system-config-printer/system-config-printer.py:316: DeprecationWarning: Gtk.Action.set_sensitive is deprecated
  action.set_sensitive (False)
/usr/share/system-config-printer/system-config-printer.py:324: DeprecationWarning: Gtk.ActionGroup.get_action is deprecated
  act = printer_manager_action_group.get_action (action)
/usr/share/system-config-printer/system-config-printer.py:354: DeprecationWarning: Gtk.UIManager.ensure_update is deprecated
  self.ui_manager.ensure_update ()
/usr/share/system-config-printer/system-config-printer.py:355: DeprecationWarning: Gtk.UIManager.get_accel_group is deprecated
  self.PrintersWindow.add_accel_group (self.ui_manager.get_accel_group ())
/usr/share/system-config-printer/system-config-printer.py:364: DeprecationWarning: Gtk.UIManager.get_action is deprecated
  action = self.ui_manager.get_action ("/new-printer")
/usr/share/system-config-printer/system-config-printer.py:365: DeprecationWarning: Gtk.Action.create_menu_item is deprecated
  newprinteritem = action.create_menu_item ()
+<newprinter.NewPrinterGUI object at 0x7f9351fb4700 (newprinter+NewPrinterGUI at 0x55f5c1410e60)>
Connected as user xircon
/usr/share/system-config-printer/system-config-printer.py:663: DeprecationWarning: Gtk.Action.get_proxies is deprecated
  for widget in action.get_proxies ():
+<printerproperties.PrinterPropertiesDialog object at 0x7f9351fd92c0 (printerproperties+PrinterPropertiesDialog at 0x55f5c1444e60)>
<authconn.Connection object at 0x7f9352371a90>: Operation += obtaining queue details
Authentication pass: 1
Authentication: password callback set
Authentication pass: 1
Authentication: password callback set
Authentication pass: 1
Authentication: password callback set
<authconn.Connection object at 0x7f9352371a90>: Operation ended
+<ppdcache.PPDCache object at 0x7f9351fe0220>
/usr/share/system-config-printer/system-config-printer.py:2236: DeprecationWarning: Gdk.threads_enter is deprecated
  Gdk.threads_enter ()
refresh
Created subscription 15, events=['printer-added', 'printer-modified', 'printer-deleted', 'printer-state-changed']
Next notifications fetch in 1s
update_jobs
get_notifications
update_jobs
Next notifications fetch in 60s
Connected as user xircon
Authentication pass: 1
Authentication: password callback set
Authentication pass: 1
Authentication: password callback set
Device  added to physical device: <PhysicalDevice.PhysicalDevice (,,,None,None,)>
Device network added to physical device: <PhysicalDevice.PhysicalDevice (,,,None,None,network)>
Device smb added to physical device: <PhysicalDevice.PhysicalDevice (,,,None,None,smb)>
Selected connection type. URI: 
Fetching devices
Using polkit-1 connection class
+<asyncipp._IPPAuthOperation object at 0x7f9342441310>
New IPPConnection
+<_IPPConnectionThread(Thread-1, initial daemon)>
+<asyncipp.IPPAuthConnection object at 0x7f9342441370>
Awaiting further instructions
Exception assessing DevicesGet API: DBusException('The name org.opensuse.CupsPkHelper.Mechanism was not provided by any .service files')
+<asyncpk1.PK1Connection object at 0x7f9342441250>
+<asyncconn.Connection object at 0x7f93424410a0>
fetchDevices
+<asyncconn._AsyncMethodCall object at 0x7f93424699a0>
<asyncconn._AsyncMethodCall object at 0x7f93424699a0>: calling <bound method PK1Connection.getDevices of <asyncpk1.PK1Connection object at 0x7f9342441250>>
Converted ()/{'exclude_schemes': ['dnssd', 'snmp', 'driverless', 'bjnp', 'bluetooth'], 'reply_handler': <bound method _AsyncMethodCall.reply_handler of <asyncconn._AsyncMethodCall object at 0x7f93424699a0>>, 'error_handler': <bound method _AsyncMethodCall.error_handler of <asyncconn._AsyncMethodCall object at 0x7f93424699a0>>, 'auth_handler': <bound method _AsyncMethodCall.auth_handler of <asyncconn._AsyncMethodCall object at 0x7f93424699a0>>} to (0, [], ['dnssd', 'snmp', 'driverless', 'bjnp', 'bluetooth'])
+_PK1AsyncMethodCall: <asyncpk1._PK1AsyncMethodCall object at 0x7f9342469a00>
Calling PK method DevicesGet
D-Bus call failed: DBusException('The name org.opensuse.CupsPkHelper.Mechanism was not provided by any .service files')
<asyncpk1._PK1AsyncMethodCall object at 0x7f9342469a00>: calling <function IPPConnection._make_binding.<locals>.<lambda> at 0x7f934245f670>
+<asyncipp._IPPAuthOperation object at 0x7f9342469a90>
Next task: (<method 'getDevices' of 'cups.Connection' objects>, (), {'exclude_schemes': ['dnssd', 'snmp', 'driverless', 'bjnp', 'bluetooth']}, <bound method _PK1AsyncMethodCall._ipp_reply_handler of <asyncpk1._PK1AsyncMethodCall object at 0x7f9342469a00>>, <bound method _IPPAuthOperation.error_handler of <asyncipp._IPPAuthOperation object at 0x7f9342469a90>>, <bound method _IPPAuthOperation.auth_handler of <asyncipp._IPPAuthOperation object at 0x7f9342469a90>>)
-<asyncipp._IPPAuthOperation object at 0x7f9342441310>
Call <method 'getDevices' of 'cups.Connection' objects>
...success
Awaiting further instructions
<asyncpk1._PK1AsyncMethodCall object at 0x7f9342469a00>: chaining up to <bound method _AsyncMethodCall.reply_handler of <asyncconn._AsyncMethodCall object at 0x7f93424699a0>>
<asyncconn._AsyncMethodCall object at 0x7f93424699a0>: to reply_handler at <bound method Connection._subst_reply_handler of <asyncconn.Connection object at 0x7f93424410a0>>
DESTROY: <asyncconn._AsyncMethodCall object at 0x7f93424699a0>
<asyncconn.Connection object at 0x7f93424410a0>: chaining up to <bound method _GetDevicesCall._reply_handler of <cupshelpers.cupshelpers._GetDevicesCall object at 0x7f9342469940>>
fetchDevices
+<asyncconn._AsyncMethodCall object at 0x7f9342469c40>
<asyncconn._AsyncMethodCall object at 0x7f9342469c40>: calling <bound method PK1Connection.getDevices of <asyncpk1.PK1Connection object at 0x7f9342441250>>
Converted ()/{'include_schemes': ['dnssd', 'snmp', 'driverless', 'bjnp', 'bluetooth'], 'reply_handler': <bound method _AsyncMethodCall.reply_handler of <asyncconn._AsyncMethodCall object at 0x7f9342469c40>>, 'error_handler': <bound method _AsyncMethodCall.error_handler of <asyncconn._AsyncMethodCall object at 0x7f9342469c40>>, 'auth_handler': <bound method _AsyncMethodCall.auth_handler of <asyncconn._AsyncMethodCall object at 0x7f9342469c40>>} to (0, ['dnssd', 'snmp', 'driverless', 'bjnp', 'bluetooth'], [])
+_PK1AsyncMethodCall: <asyncpk1._PK1AsyncMethodCall object at 0x7f9342469ca0>
Calling PK method DevicesGet
D-Bus call failed: DBusException('The name org.opensuse.CupsPkHelper.Mechanism was not provided by any .service files')
<asyncpk1._PK1AsyncMethodCall object at 0x7f9342469ca0>: calling <function IPPConnection._make_binding.<locals>.<lambda> at 0x7f934245f670>
+<asyncipp._IPPAuthOperation object at 0x7f9342469d30>
Adding device with URI cups-brf:/
Next task: (<method 'getDevices' of 'cups.Connection' objects>, (), {'include_schemes': ['dnssd', 'snmp', 'driverless', 'bjnp', 'bluetooth']}, <bound method _PK1AsyncMethodCall._ipp_reply_handler of <asyncpk1._PK1AsyncMethodCall object at 0x7f9342469ca0>>, <bound method _IPPAuthOperation.error_handler of <asyncipp._IPPAuthOperation object at 0x7f9342469d30>>, <bound method _IPPAuthOperation.auth_handler of <asyncipp._IPPAuthOperation object at 0x7f9342469d30>>)
Device cups-brf:/ added to physical device: <PhysicalDevice.PhysicalDevice (Generic,CUPS-BRF,,None,None,cups-brf:/)>
-<asyncipp._IPPAuthOperation object at 0x7f9342469a90>
   Created physical device <PhysicalDevice.PhysicalDevice (Generic,CUPS-BRF,,None,None,cups-brf:/)>
Call <method 'getDevices' of 'cups.Connection' objects>
   Physical device <PhysicalDevice.PhysicalDevice (Generic,CUPS-BRF,,None,None,cups-brf:/)> is a completely new device
Adding device with URI https
Device https added to physical device: <PhysicalDevice.PhysicalDevice (,,,None,None,https)>
   Created physical device <PhysicalDevice.PhysicalDevice (,,,None,None,https)>
   Physical device <PhysicalDevice.PhysicalDevice (,,,None,None,https)> is a completely new device
Adding device with URI ipp
Device ipp added to physical device: <PhysicalDevice.PhysicalDevice (,,,None,None,ipp)>
   Created physical device <PhysicalDevice.PhysicalDevice (,,,None,None,ipp)>
   Physical device <PhysicalDevice.PhysicalDevice (,,,None,None,ipp)> is a completely new device
Adding device with URI ipps
Device ipps added to physical device: <PhysicalDevice.PhysicalDevice (,,,None,None,ipps)>
   Created physical device <PhysicalDevice.PhysicalDevice (,,,None,None,ipps)>
   Physical device <PhysicalDevice.PhysicalDevice (,,,None,None,ipps)> is a completely new device
Adding device with URI lpd
Device lpd added to physical device: <PhysicalDevice.PhysicalDevice (,,,None,None,lpd)>
   Created physical device <PhysicalDevice.PhysicalDevice (,,,None,None,lpd)>
   Physical device <PhysicalDevice.PhysicalDevice (,,,None,None,lpd)> is a completely new device
Adding device with URI cups-pdf:/
Device cups-pdf:/ added to physical device: <PhysicalDevice.PhysicalDevice (Generic,CUPS-PDF,,None,None,cups-pdf:/)>
   Created physical device <PhysicalDevice.PhysicalDevice (Generic,CUPS-PDF,,None,None,cups-pdf:/)>
   Physical device <PhysicalDevice.PhysicalDevice (Generic,CUPS-PDF,,None,None,cups-pdf:/)> is a completely new device
Adding device with URI socket
Device socket added to physical device: <PhysicalDevice.PhysicalDevice (,,,None,None,socket)>
   Created physical device <PhysicalDevice.PhysicalDevice (,,,None,None,socket)>
   Physical device <PhysicalDevice.PhysicalDevice (,,,None,None,socket)> is a completely new device
DESTROY: <asyncpk1._PK1AsyncMethodCall object at 0x7f9342469a00>
-<asyncconn._AsyncMethodCall object at 0x7f93424699a0>
-_PK1AsyncMethodCall: <asyncpk1._PK1AsyncMethodCall object at 0x7f9342469a00>
Skipping firewall adjustment: discovery in progress
...success
Awaiting further instructions
<asyncpk1._PK1AsyncMethodCall object at 0x7f9342469ca0>: chaining up to <bound method _AsyncMethodCall.reply_handler of <asyncconn._AsyncMethodCall object at 0x7f9342469c40>>
<asyncconn._AsyncMethodCall object at 0x7f9342469c40>: to reply_handler at <bound method Connection._subst_reply_handler of <asyncconn.Connection object at 0x7f93424410a0>>
DESTROY: <asyncconn._AsyncMethodCall object at 0x7f9342469c40>
<asyncconn.Connection object at 0x7f93424410a0>: chaining up to <bound method _GetDevicesCall._reply_handler of <cupshelpers.cupshelpers._GetDevicesCall object at 0x7f9342469be0>>
DESTROY: <asyncconn.Connection object at 0x7f93424410a0>
DESTROY: <asyncpk1.PK1Connection object at 0x7f9342441250>
DESTROY: <asyncipp.IPPAuthConnection object at 0x7f9342441370>
Stopping worker thread
Next task: None
Adding device with URI socket://192.168.0.12
Thread exiting
Device socket://192.168.0.12 added to physical device: <PhysicalDevice.PhysicalDevice (HP,ENVY 4520,TH62H3J0Q20660,192.168.0.12,None,socket://192.168.0.12)>
-<asyncipp._IPPAuthOperation object at 0x7f9342469d30>
   Created physical device <PhysicalDevice.PhysicalDevice (HP,ENVY 4520,TH62H3J0Q20660,192.168.0.12,None,socket://192.168.0.12)>
   Physical device <PhysicalDevice.PhysicalDevice (HP,ENVY 4520,TH62H3J0Q20660,192.168.0.12,None,socket://192.168.0.12)> is a completely new device
Adding device with URI ipps://HP%20ENVY%204520%20series%20%5B70AB62%5D._ipps._tcp.local/
Device ipps://HP%20ENVY%204520%20series%20%5B70AB62%5D._ipps._tcp.local/ added to physical device: <PhysicalDevice.PhysicalDevice (HP,ENVY 4520,,HP%20ENVY%204520%20series%20%5B70AB62%5D._ipps._tcp.local,None,ipps://HP%20ENVY%204520%20series%20%5B70AB62%5D._ipps._tcp.local/)>
   Created physical device <PhysicalDevice.PhysicalDevice (HP,ENVY 4520,,HP%20ENVY%204520%20series%20%5B70AB62%5D._ipps._tcp.local,None,ipps://HP%20ENVY%204520%20series%20%5B70AB62%5D._ipps._tcp.local/)>
   Physical device <PhysicalDevice.PhysicalDevice (HP,ENVY 4520,,HP%20ENVY%204520%20series%20%5B70AB62%5D._ipps._tcp.local,None,ipps://HP%20ENVY%204520%20series%20%5B70AB62%5D._ipps._tcp.local/)> is a completely new device
+<dnssdresolve.DNSSDHostNamesResolver object at 0x7f9342441cd0>
Resolving address for HP%20ENVY%204520%20series%20%5B70AB62%5D._ipp._tcp.local
Skipping firewall adjustment: discovery in progress
-<asyncconn.Connection object at 0x7f93424410a0>
DESTROY: <asyncpk1._PK1AsyncMethodCall object at 0x7f9342469ca0>
-<asyncconn._AsyncMethodCall object at 0x7f9342469c40>
-<asyncpk1.PK1Connection object at 0x7f9342441250>
-_PK1AsyncMethodCall: <asyncpk1._PK1AsyncMethodCall object at 0x7f9342469ca0>
dnssd://HP%20ENVY%204520%20series%20%5B70AB62%5D._ipp._tcp.local/?uuid=1c852a4d-b800-1f08-abcd-705a0f70ab62 is at 192.168.0.12 (HP705A0F70AB62)
All addresses resolved
Adding device with URI dnssd://HP%20ENVY%204520%20series%20%5B70AB62%5D._ipp._tcp.local/?uuid=1c852a4d-b800-1f08-abcd-705a0f70ab62
   Device address 192.168.0.12
   Device host name HP705A0F70AB62
Device dnssd://HP%20ENVY%204520%20series%20%5B70AB62%5D._ipp._tcp.local/?uuid=1c852a4d-b800-1f08-abcd-705a0f70ab62 added to physical device: <PhysicalDevice.PhysicalDevice (HP,ENVY 4520,,192.168.0.12,HP705A0F70AB62.local,dnssd://HP%20ENVY%204520%20series%20%5B70AB62%5D._ipp._tcp.local/?uuid=1c852a4d-b800-1f08-abcd-705a0f70ab62)>
   Created physical device <PhysicalDevice.PhysicalDevice (HP,ENVY 4520,,192.168.0.12,HP705A0F70AB62.local,dnssd://HP%20ENVY%204520%20series%20%5B70AB62%5D._ipp._tcp.local/?uuid=1c852a4d-b800-1f08-abcd-705a0f70ab62)>
   Physical device 8 is the same printer
Device dnssd://HP%20ENVY%204520%20series%20%5B70AB62%5D._ipp._tcp.local/?uuid=1c852a4d-b800-1f08-abcd-705a0f70ab62 added to physical device: <PhysicalDevice.PhysicalDevice (HP,ENVY 4520,TH62H3J0Q20660,192.168.0.12,HP705A0F70AB62.local,socket://192.168.0.12)>
   New physical device <PhysicalDevice.PhysicalDevice (HP,ENVY 4520,,192.168.0.12,HP705A0F70AB62.local,dnssd://HP%20ENVY%204520%20series%20%5B70AB62%5D._ipp._tcp.local/?uuid=1c852a4d-b800-1f08-abcd-705a0f70ab62)> is same as physical device 8: <PhysicalDevice.PhysicalDevice (HP,ENVY 4520,TH62H3J0Q20660,192.168.0.12,HP705A0F70AB62.local,socket://192.168.0.12)>
   Joining devices
Skipping firewall adjustment: network printers found
-<dnssdresolve.DNSSDHostNamesResolver object at 0x7f9342441cd0>
-<asyncipp.IPPAuthConnection object at 0x7f9342441370>
-<_IPPConnectionThread(Thread-1, stopped daemon 140270703879744)>
HP705A0F70AB62.local: ['hp-makeuri', '-c', 'HP705A0F70AB62.local']
Selected connection type. URI: dnssd://HP%20ENVY%204520%20series%20%5B70AB62%5D._ipp._tcp.local/?uuid=1c852a4d-b800-1f08-abcd-705a0f70ab62
Selected connection type. URI: dnssd://HP%20ENVY%204520%20series%20%5B70AB62%5D._ipp._tcp.local/?uuid=1c852a4d-b800-1f08-abcd-705a0f70ab62
Next clicked on page 1
nextNPTab: need PPDs loaded
+<ppdsloader.PPDsLoader object at 0x7f9351fc1bc0 (ppdsloader+PPDsLoader at 0x55f5c14a31a0)>
Asking PackageKit to install drivers
Failed to talk to PackageKit: DBusException('The name org.freedesktop.PackageKit was not provided by any .service files')
Asking CUPS for PPDs
Using polkit-1 connection class
+<asyncipp._IPPAuthOperation object at 0x7f9342441a60>
New IPPConnection
+<_IPPConnectionThread(Thread-2, initial daemon)>
+<asyncipp.IPPAuthConnection object at 0x7f9342441af0>
Awaiting further instructions
Exception assessing DevicesGet API: DBusException('The name org.opensuse.CupsPkHelper.Mechanism was not provided by any .service files')
+<asyncpk1.PK1Connection object at 0x7f9342441c70>
+<asyncconn.Connection object at 0x7f9342469bb0>
<asyncconn.Connection object at 0x7f9342469bb0>: chaining up to <bound method PPDsLoader._cups_connect_reply of <ppdsloader.PPDsLoader object at 0x7f9351fc1bc0 (ppdsloader+PPDsLoader at 0x55f5c14a31a0)>>
+<asyncconn._AsyncMethodCall object at 0x7f9351fe04c0>
<asyncconn._AsyncMethodCall object at 0x7f9351fe04c0>: calling <function PK1Connection._make_binding.<locals>.binding at 0x7f933d5c8d30>
+_PK1AsyncMethodCall: <asyncpk1._PK1AsyncMethodCall object at 0x7f9342469b20>
<asyncpk1._PK1AsyncMethodCall object at 0x7f9342469b20>: calling <function IPPConnection._make_binding.<locals>.<lambda> at 0x7f934245c700>
+<asyncipp._IPPAuthOperation object at 0x7f9342469c40>
Next task: (<method 'getPPDs2' of 'cups.Connection' objects>, (), {}, <bound method _PK1AsyncMethodCall._ipp_reply_handler of <asyncpk1._PK1AsyncMethodCall object at 0x7f9342469b20>>, <bound method _IPPAuthOperation.error_handler of <asyncipp._IPPAuthOperation object at 0x7f9342469c40>>, <bound method _IPPAuthOperation.auth_handler of <asyncipp._IPPAuthOperation object at 0x7f9342469c40>>)
-<asyncipp._IPPAuthOperation object at 0x7f9342441a60>
Call <method 'getPPDs2' of 'cups.Connection' objects>
Interrupting execution of nextNPTab(): Operations pending
...success
Awaiting further instructions
<asyncpk1._PK1AsyncMethodCall object at 0x7f9342469b20>: chaining up to <bound method _AsyncMethodCall.reply_handler of <asyncconn._AsyncMethodCall object at 0x7f9351fe04c0>>
<asyncconn._AsyncMethodCall object at 0x7f9351fe04c0>: to reply_handler at <bound method Connection._subst_reply_handler of <asyncconn.Connection object at 0x7f9342469bb0>>
DESTROY: <asyncconn._AsyncMethodCall object at 0x7f9351fe04c0>
<asyncconn.Connection object at 0x7f9342469bb0>: chaining up to <bound method PPDsLoader._cups_reply of <ppdsloader.PPDsLoader object at 0x7f9351fc1bc0 (ppdsloader+PPDsLoader at 0x55f5c14a31a0)>>

HP ENVY 4520 series
Trying make/model names
init_makes: 0.284s
mfgl: hp
mdll: envy 4520 series
make: HP
re-split mdll: envy 4520
exact: driverless:ipps://HP%20ENVY%204520%20series%20%5B70AB62%5D._ipps._tcp.local/
exact: drv:///hp/hpcups.drv/hp-envy_4520_series.ppd
exact: lsb/usr/HP/hp-envy_4520_series.ppd.gz
Checking CMD field
Trying best match
IPP Everywhere <= PCL 3 <= PCL 3
PCL 3: match length 5
generic: foomatic:Generic-PCL_3_Printer-pcl3.ppd
exact-cmd: driverless:ipps://HP%20ENVY%204520%20series%20%5B70AB62%5D._ipps._tcp.local/
Removed set() due to CMD mis-match
Valid driver types for this printer in priority order: ['driverless', 'manufacturer-cmd', 'foomatic-recommended-nonpostscript', 'manufacturer-ricoh-ps', 'manufacturer-ricoh-pxl', 'manufacturer', 'pdf', 'foomatic-recommended-postscript', 'hpcups', 'splix', 'foomatic-postscript', 'gutenprint-simplified', 'gutenprint-expert', 'foomatic-gutenprint', 'foomatic', 'cups', 'generic-postscript', 'generic-foomatic-recommended', 'generic-pcl6', 'generic-pcl5e', 'generic-pcl5', 'generic-pcl', 'generic-escp', 'ghostscript', 'generic', 'foomatic-recommended-hpijs', 'hpijs', 'foomatic-hpijs', 'hpcups-plugin', 'hpijs-plugin', 'turboprint']
PPDs with assigned driver types in priority order: [('driverless', 'driverless:ipps://HP%20ENVY%204520%20series%20%5B70AB62%5D._ipps._tcp.local/'), ('manufacturer', 'lsb/usr/HP/hp-envy_4520_series.ppd.gz'), ('hpcups', 'drv:///hp/hpcups.drv/hp-envy_4520_series.ppd'), ('generic-foomatic-recommended', 'foomatic:Generic-PCL_3_Printer-pcl3.ppd')]
Resulting PPD list in priority order: ['driverless:ipps://HP%20ENVY%204520%20series%20%5B70AB62%5D._ipps._tcp.local/', 'lsb/usr/HP/hp-envy_4520_series.ppd.gz', 'drv:///hp/hpcups.drv/hp-envy_4520_series.ppd', 'foomatic:Generic-PCL_3_Printer-pcl3.ppd']
DESTROY: <asyncconn.Connection object at 0x7f9342469bb0>
DESTROY: <asyncpk1.PK1Connection object at 0x7f9342441c70>
DESTROY: <asyncipp.IPPAuthConnection object at 0x7f9342441af0>
Stopping worker thread
Next task: None
Thread exiting
-<asyncipp._IPPAuthOperation object at 0x7f9342469c40>
<ppdsloader.PPDsLoader object at 0x7f9351fc1bc0 (ppdsloader+PPDsLoader at 0x55f5c14a31a0)>: stored error is None
DESTROY: <ppdsloader.PPDsLoader object at 0x7f9351fc1bc0 (ppdsloader+PPDsLoader at 0x55f5c14a31a0)>
Loaded PPDs this time; try nextNPTab again...
Next clicked on page 1

HP ENVY 4520 series
Trying make/model names
mfgl: hp
mdll: envy 4520 series
make: HP
re-split mdll: envy 4520
exact: driverless:ipps://HP%20ENVY%204520%20series%20%5B70AB62%5D._ipps._tcp.local/
exact: drv:///hp/hpcups.drv/hp-envy_4520_series.ppd
exact: lsb/usr/HP/hp-envy_4520_series.ppd.gz
Checking CMD field
Trying best match
IPP Everywhere <= PCL 3 <= PCL 3
PCL 3: match length 5
generic: foomatic:Generic-PCL_3_Printer-pcl3.ppd
exact-cmd: driverless:ipps://HP%20ENVY%204520%20series%20%5B70AB62%5D._ipps._tcp.local/
Removed set() due to CMD mis-match
Suitable PPDs found: {'driverless:ipps://HP%20ENVY%204520%20series%20%5B70AB62%5D._ipps._tcp.local/': 'exact-cmd', 'drv:///hp/hpcups.drv/hp-envy_4520_series.ppd': 'exact', 'lsb/usr/HP/hp-envy_4520_series.ppd.gz': 'exact', 'foomatic:Generic-PCL_3_Printer-pcl3.ppd': 'generic'}
Valid driver types for this printer in priority order: ['driverless', 'manufacturer-cmd', 'foomatic-recommended-nonpostscript', 'manufacturer-ricoh-ps', 'manufacturer-ricoh-pxl', 'manufacturer', 'pdf', 'foomatic-recommended-postscript', 'hpcups', 'splix', 'foomatic-postscript', 'gutenprint-simplified', 'gutenprint-expert', 'foomatic-gutenprint', 'foomatic', 'cups', 'generic-postscript', 'generic-foomatic-recommended', 'generic-pcl6', 'generic-pcl5e', 'generic-pcl5', 'generic-pcl', 'generic-escp', 'ghostscript', 'generic', 'foomatic-recommended-hpijs', 'hpijs', 'foomatic-hpijs', 'hpcups-plugin', 'hpijs-plugin', 'turboprint']
PPDs with assigned driver types in priority order: [('driverless', 'driverless:ipps://HP%20ENVY%204520%20series%20%5B70AB62%5D._ipps._tcp.local/'), ('manufacturer', 'lsb/usr/HP/hp-envy_4520_series.ppd.gz'), ('hpcups', 'drv:///hp/hpcups.drv/hp-envy_4520_series.ppd'), ('generic-foomatic-recommended', 'foomatic:Generic-PCL_3_Printer-pcl3.ppd')]
Resulting PPD list in priority order: ['driverless:ipps://HP%20ENVY%204520%20series%20%5B70AB62%5D._ipps._tcp.local/', 'lsb/usr/HP/hp-envy_4520_series.ppd.gz', 'drv:///hp/hpcups.drv/hp-envy_4520_series.ppd', 'foomatic:Generic-PCL_3_Printer-pcl3.ppd']
PPDs in priority order: ['driverless:ipps://HP%20ENVY%204520%20series%20%5B70AB62%5D._ipps._tcp.local/', 'lsb/usr/HP/hp-envy_4520_series.ppd.gz', 'drv:///hp/hpcups.drv/hp-envy_4520_series.ppd', 'foomatic:Generic-PCL_3_Printer-pcl3.ppd']
Valid driver types for this printer in priority order: ['driverless', 'manufacturer-cmd', 'foomatic-recommended-nonpostscript', 'manufacturer-ricoh-ps', 'manufacturer-ricoh-pxl', 'manufacturer', 'pdf', 'foomatic-recommended-postscript', 'hpcups', 'splix', 'foomatic-postscript', 'gutenprint-simplified', 'gutenprint-expert', 'foomatic-gutenprint', 'foomatic', 'cups', 'generic-postscript', 'generic-foomatic-recommended', 'generic-pcl6', 'generic-pcl5e', 'generic-pcl5', 'generic-pcl', 'generic-escp', 'ghostscript', 'generic', 'foomatic-recommended-hpijs', 'hpijs', 'foomatic-hpijs', 'hpcups-plugin', 'hpijs-plugin', 'turboprint']
PPDs with assigned driver types in priority order: [('driverless', 'driverless:ipps://HP%20ENVY%204520%20series%20%5B70AB62%5D._ipps._tcp.local/'), ('manufacturer', 'lsb/usr/HP/hp-envy_4520_series.ppd.gz'), ('hpcups', 'drv:///hp/hpcups.drv/hp-envy_4520_series.ppd')]
Resulting PPD list in priority order: ['driverless:ipps://HP%20ENVY%204520%20series%20%5B70AB62%5D._ipps._tcp.local/', 'lsb/usr/HP/hp-envy_4520_series.ppd.gz', 'drv:///hp/hpcups.drv/hp-envy_4520_series.ppd']
ID matched PPDs: ['driverless:ipps://HP%20ENVY%204520%20series%20%5B70AB62%5D._ipps._tcp.local/', 'lsb/usr/HP/hp-envy_4520_series.ppd.gz', 'drv:///hp/hpcups.drv/hp-envy_4520_series.ppd', 'foomatic:Generic-PCL_3_Printer-pcl3.ppd']
Will fetch ppd? 1
ppd: 'driverless:ipps://HP%20ENVY%204520%20series%20%5B70AB62%5D._ipps._tcp.local/'
<authconn.Connection object at 0x7f9351fe0520>: Operation += fetching PPD
Authentication pass: 1
Authentication: password callback set
Caught non-fatal exception.  Traceback:
File "/usr/share/system-config-printer/newprinter.py", line 4259, in getNPPPD
    ppd = cups.PPD(f)
RuntimeError: ppdOpenFile failed
Continuing anyway..
libcups from CUPS 1.3 not available: never mind
<authconn.Connection object at 0x7f9351fe0520>: Operation ended
Examining installable options
No PPD so no installable options
Will advance to page 0
-<asyncconn.Connection object at 0x7f9342469bb0>
-<ppdsloader.PPDsLoader object at 0x7f9351fc1bc0 (ppdsloader+PPDsLoader at 0x55f5c14a31a0)>
DESTROY: <asyncpk1._PK1AsyncMethodCall object at 0x7f9342469b20>
-<asyncconn._AsyncMethodCall object at 0x7f9351fe04c0>
-<asyncpk1.PK1Connection object at 0x7f9342441c70>
-_PK1AsyncMethodCall: <asyncpk1._PK1AsyncMethodCall object at 0x7f9342469b20>
-<asyncipp.IPPAuthConnection object at 0x7f9342441af0>
-<_IPPConnectionThread(Thread-2, stopped daemon 140270703879744)>
<authconn.Connection object at 0x7f9351fe0520>: Operation += adding printer HP-ENVY-4520-series
Authentication pass: 1
Authentication: password callback set
1280: 'server-error-internal-error'
D-Bus signal from CUPS... calling update
Next notifications fetch in 200ms (update called)
<newprinter.NewPrinterGUI object at 0x7f9351fb4700 (newprinter+NewPrinterGUI at 0x55f5c1410e60)>: IPP error dialog (1280, server-error-internal-error)
get_notifications
1 printer-state-changed Printer "HP-ENVY-4520-series" state changed.
{'notify-charset': 'utf-8',
 'notify-natural-language': 'en-us',
 'notify-printer-uri': 'ipp://xircon-w6567sz/printers/HP-ENVY-4520-series',
 'notify-sequence-number': 1,
 'notify-subscribed-event': 'printer-state-changed',
 'notify-subscription-id': 15,
 'notify-text': 'Printer "HP-ENVY-4520-series" state changed.',
 'printer-is-accepting-jobs': False,
 'printer-name': 'HP-ENVY-4520-series',
 'printer-state': 5,
 'printer-state-reasons': ['paused'],
 'printer-up-time': 1605949703}
update_jobs
<authconn.Connection object at 0x7f9351fe0520>: Operation ended
Canceled subscription 15
DESTROY: <printerproperties.PrinterPropertiesDialog object at 0x7f9351fd92c0 (printerproperties+PrinterPropertiesDialog at 0x55f5c1444e60)>
DESTROY: <newprinter.NewPrinterGUI object at 0x7f9351fb4700 (newprinter+NewPrinterGUI at 0x55f5c1410e60)>

cups.socket is fine because it runs cups when it needed…

Yeh, it is either or both, so should not cause a problem which ever.

i dont know :slight_smile: try to find internal to the ppd driver… mayby something happend to that

gave sort same error output…

but is in systemd-config f that printing turned on?

Tried Appsocket/HP Jetdirect option and it works!

1 Like