The_Great_Sephiroth Veteran
Joined: 03 Oct 2014 Posts: 1602 Location: Fayetteville, NC, USA
|
Posted: Mon Sep 04, 2017 9:41 pm Post subject: HP printer not finding PPD... |
|
|
I have three HP OJ Pro 8720 printers on a print server. Scanning already works. I am attempting to set them up with CUPS to print. I build HPLIP with the "static-ppds" USE flag since the first time I ran it, it told me it didn't find a compatible PPD. Now the PPD exists in /usr/share/ppd/HP/hp-officejet_pro_8720.ppd.gz, but hp-setup still says it cannot find it. I tried to specify the file manually and hp-setup crashed.
Code: |
Traceback (most recent call last):
File "/usr/bin/hp-setup", line 560, in <module>
desc = nickname_pat.search(nickname).group(1)
TypeError: can't use a string pattern on a bytes-like object
|
So how do I get this working? The goal is shared printing and scanning for all office employees. One will also be on a phone line and used to send faxes, but that will normally be done at the machine.
*UPDATE*
I made minor progress. I decompressed the PPD to /usr/share/cups/model/HP/hp-officejet_pro_8720.ppd, specified it, and then it crashed when trying to install the printer into CUPS.
Code: |
Adding print queue to CUPS:
Device URI: hp:/usb/HP_OfficeJet_Pro_8720?serial=CNxxxxxxxx
Queue name: Left_OJ_8720
PPD file: /usr/share/cups/model/HP/hp-officejet_pro_8720.ppd
Location: Left HP Officejet Pro 8720
Information: Work room
Traceback (most recent call last):
File "/usr/bin/hp-setup", line 627, in <module>
utils.sendEvent(EVENT_CUPS_QUEUES_ADDED,print_uri, printer_name)
File "/usr/share/hplip/base/utils.py", line 2109, in sendEvent
SystemBus().send_message(msg)
File "/usr/lib64/python3.4/site-packages/dbus/_dbus.py", line 194, in __new__
private=private)
File "/usr/lib64/python3.4/site-packages/dbus/_dbus.py", line 100, in __new__
bus = BusConnection.__new__(subclass, bus_type, mainloop=mainloop)
File "/usr/lib64/python3.4/site-packages/dbus/bus.py", line 122, in __new__
bus = cls._new_for_bus(address_or_type, mainloop=mainloop)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.FileNotFound: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory
|
*UPDATE*
I got it. I used "cupsctl --remote-admin" to allow me access to the UI, removed the decompressed file, and added the printers without a single issue. Things are good. I also disabled remote access once I finished. _________________ Ever picture systemd as what runs "The Borg"? |
|