LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Fresh installs of Slackware 14.2 and hp-setup is unable to add a printer . (https://www.linuxquestions.org/questions/linux-software-2/fresh-installs-of-slackware-14-2-and-hp-setup-is-unable-to-add-a-printer-4175601937/)

gmartin69 03-16-2017 02:46 PM

Fresh installs of Slackware 14.2 and hp-setup is unable to add a printer .
 
On two fresh installs of 14.2, one on Dell laptop and one on desktop and on both systems hp-setup is unable to successfully add a network printer. I can add a printer inside of Cups and can print with no issues.


The gui starts and the printer is found on the network and properly identified but the add printer button timesout after a couple seconds and doesn't advance. Repeated clicks on the add printer button yields the same.

Output when using hp-setup as root from the command line:


Qt: Session management error: Authentication Rejected, reason : None of the authentication protocols specified are supported and host-based authentication failed

Searching... (bus=net, timeout=5, ttl=4, search=(None) desc=0, method=slp)Traceback (most recent call last):

File "/usr/share/hplip/ui4/setupdialog.py", line 1305, in NextButton_clicked self.showAddPrinterPage()

File "/usr/share/hplip/ui4/setupdialog.py", line 731, in showAddPrinterPage self.readwriteFaxInformation()

File "/usr/share/hplip/ui4/setupdialog.py", line 1128, in readwriteFaxInformation self.fax_number = to_unicode(d.getPhoneNum())

File "/usr/share/hplip/fax/pmlfax.py", line 149, in getPhoneNum return utils.printable(self.getPML(pml.OID_FAX_LOCAL_PHONE_NUM)[1])

File "/usr/share/hplip/base/utils.py", line 956, in printable return s.translate(identity, unprintable)

AttributeError: 'NoneType' object has no attribute 'translate'

Thanks for any ideas...

X-LFS-2010 03-16-2017 06:12 PM

is it USB connected ? if so make sure you have the correct kernel module loaded (there is a few kind)

GO TO http://www.linuxprinting.org they have all the know how of what printers work how much: and how to get them working.

try CUPS with another printer if you can - insure you don't blame the wrong thing (is it the printer, CUPS, your installation of your OS?)

expect the HP utility works for ONLY the 'nix it said it did (exact version and 'nix, and only basic install of - but correctly configured), that's how big companies usually release things. it's .py so it's human readable you might be able to "fix it" - time spent unk though.

X-LFS-2010 03-16-2017 06:14 PM

i rarely print so still use a dot matrix (pin impact) printer from the late 1980's

it's not high resolution but it doesn't need drivers to print text and never ever ever fails to print

frankbell 03-16-2017 08:23 PM

Did you try

Code:

hp-setup -i [printer ip address]
to pass the printer's ip address to hp-setup? I've had this work with discovery did not work. (It was suggested to me by someone in some other forum I stumbled over.)

(I give my network printers static ip addresses. It makes life much easier.)

gmartin69 03-17-2017 09:06 AM

That was exactly what I needed. Thanks for your assistance...



Quote:

Originally Posted by frankbell (Post 5684521)
Did you try

Code:

hp-setup -i [printer ip address]
to pass the printer's ip address to hp-setup? I've had this work with discovery did not work. (It was suggested to me by someone in some other forum I stumbled over.)

(I give my network printers static ip addresses. It makes life much easier.)



All times are GMT -5. The time now is 10:13 PM.