SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Actually there is an update as of today. It works with CUPS now but the HP setup still does not work for me. I had problems with it on 14.1 and had to try several times until it finally worked. Not sure exactly what is going on but this is better than nothing. I will see if it will load the scanner and fax stuff under cups. The printer does not show up in the HP device manager.
What did you mean when you said hp-setup still fails from the commandline ?
-- kjh
hp-setup -i 192.168.1.65 still fails as it always has with the can't find ppd message I quoted earlier. I had to download the ppd's and install the print cue from the gui.
It would be nice if the command-line setup worked again, since it was less hassle, but this is certainly more than good enough.
Hum you mean from the hp-setup gui or from CUPS? I get error: Printer queue setup failed. Error : successful-ok-ignored-or-substituted-attributes from either the command line or the hp-setup. hplip does not work but CUPS does I get the CUPS Printer Test Page when I tell it to print a test page. It shows up as a valid printer in the KDE system settings. Nothing on the HP side works for me. It shows up as HP Deskjet 3510 Series, hpcups 3.16.5 in the KDE Printers - System Settings.
Zero problems here with Pat's updated version, except for the command-line errors I noted before. Running the hp-setup gui does exactly what it's supposed to do and printing here is fine. I can even print from vim now with the stock :ha which I haven't been able to do since 14.1.
I removed the FAX and Paper printers I set up via the GUI.
And then added them back using: hp-setup -i 192.168.1.5
I was logged into KDE as a 'regular user' but then I ran hp-setup from a Konsole where I had become root via: su -
It worked with and without the firewall turned on.
edit Another tidbit: I am running Current with Alien's multilib which I keep up-to-date via his massconvert.sh script
I am stumped ...
-- kjh
Code:
[root@kjhlt6 rc.d]# lpstat -t
scheduler is running
system default destination: MelHP
device for HP_Officejet_Pro_X476dn_MFP: hp:/net/HP_Officejet_Pro_X476dn_MFP?ip=192.168.1.5
device for HP_Officejet_Pro_X476dn_MFP_fax: hpfax:/net/HP_Officejet_Pro_X476dn_MFP?ip=192.168.1.5
device for lp2pdf2email: ///dev/null
device for MelHP: smb://192.168.0.88/MelHP
device for sahhp: socket://sahhp:9100
HP_Officejet_Pro_X476dn_MFP accepting requests since Wed Jun 1 04:58:01 2016
HP_Officejet_Pro_X476dn_MFP_fax accepting requests since Wed Jun 1 04:57:19 2016
lp2pdf2email accepting requests since Sun Feb 14 07:22:51 2016
MelHP accepting requests since Sun May 29 07:46:51 2016
sahhp accepting requests since Sun Feb 14 05:42:43 2016
printer HP_Officejet_Pro_X476dn_MFP is idle. enabled since Wed Jun 1 04:58:01 2016
ready to print
printer HP_Officejet_Pro_X476dn_MFP_fax is idle. enabled since Wed Jun 1 04:57:19 2016
printer lp2pdf2email is idle. enabled since Sun Feb 14 07:22:51 2016
printer MelHP is idle. enabled since Sun May 29 07:46:51 2016
printer sahhp is idle. enabled since Sun Feb 14 05:42:43 2016
[root@kjhlt6 rc.d]# lpadmin -x HP_Officejet_Pro_X476dn_MFP_fax
[root@kjhlt6 rc.d]# lpadmin -x HP_Officejet_Pro_X476dn_MFP
[root@kjhlt6 rc.d]# hp-setup -i 192.168.1.5
HP Linux Imaging and Printing System (ver. 3.16.5)
Printer/Fax Setup Utility ver. 9.0
Copyright (c) 2001-15 HP Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.
(Note: Defaults for each question are maked with a '*'. Press <enter> to accept the default.)
Setting up device: hp:/net/HP_Officejet_Pro_X476dn_MFP?ip=192.168.1.5
---------------------
| PRINT QUEUE SETUP |
---------------------
Please enter a name for this print queue (m=use model name:'HP_Officejet_Pro_X476dn_MFP'*, q=quit) ?
Using queue name: HP_Officejet_Pro_X476dn_MFP
Locating PPD file... Please wait.
Found PPD file: lsb/usr/HP/hp-officejet_pro_476_576_series-ps.ppd.gz
Description:
Note: The model number may vary slightly from the actual model number on the device.
Does this PPD file appear to be the correct one (y=yes*, n=no, q=quit) ?
Enter a location description for this printer (q=quit) ?SAH Office on HOME LAN
Enter additonal information or notes for this printer (q=quit) ?
Adding print queue to CUPS:
Device URI: hp:/net/HP_Officejet_Pro_X476dn_MFP?ip=192.168.1.5
Queue name: HP_Officejet_Pro_X476dn_MFP
PPD file: lsb/usr/HP/hp-officejet_pro_476_576_series-ps.ppd.gz
Location: SAH Office on HOME LAN
Information:
-------------------
| FAX QUEUE SETUP |
-------------------
Please enter a name for this fax queue (m=use model name:'HP_Officejet_Pro_X476dn_MFP_fax'*, q=quit) ?
Using queue name: HP_Officejet_Pro_X476dn_MFP_fax
Enter a location description for this printer (q=quit) ?
Enter additonal information or notes for this printer (q=quit) ?
Adding fax queue to CUPS:
Device URI: hpfax:/net/HP_Officejet_Pro_X476dn_MFP?ip=192.168.1.5
Queue name: HP_Officejet_Pro_X476dn_MFP_fax
PPD file: /usr/share/ppd/HP/HP-Fax4-hpcups.ppd.gz
Location:
Information:
--------------------
| FAX HEADER SETUP |
--------------------
Would you like to perform fax header setup (y=yes*, n=no, q=quit) ?n
---------------------
| PRINTER TEST PAGE |
---------------------
Would you like to print a test page (y=yes*, n=no, q=quit) ? y
warning: hp-testpage should not be run as root/superuser.
HP Linux Imaging and Printing System (ver. 3.16.5)
Testpage Print Utility ver. 6.0
Copyright (c) 2001-15 HP Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.
Printing test page to printer HP_Officejet_Pro_X476dn_MFP...
Test page has been sent to printer.
note: If an error occured, or the test page failed to print, refer to the HPLIP website
note: at: http://hplip.sourceforge.net for troubleshooting and support.
Done.
Done.
[root@kjhlt6 rc.d]# lpstat -t
scheduler is running
system default destination: MelHP
device for HP_Officejet_Pro_X476dn_MFP: hp:/net/HP_Officejet_Pro_X476dn_MFP?ip=192.168.1.5
device for HP_Officejet_Pro_X476dn_MFP_fax: hpfax:/net/HP_Officejet_Pro_X476dn_MFP?ip=192.168.1.5
device for lp2pdf2email: ///dev/null
device for MelHP: smb://192.168.0.88/MelHP
device for sahhp: socket://sahhp:9100
HP_Officejet_Pro_X476dn_MFP accepting requests since Wed Jun 1 05:04:40 2016
HP_Officejet_Pro_X476dn_MFP_fax accepting requests since Wed Jun 1 05:04:09 2016
lp2pdf2email accepting requests since Sun Feb 14 07:22:51 2016
MelHP accepting requests since Sun May 29 07:46:51 2016
sahhp accepting requests since Sun Feb 14 05:42:43 2016
printer HP_Officejet_Pro_X476dn_MFP now printing HP_Officejet_Pro_X476dn_MFP-42. enabled since Wed Jun 1 05:04:40 2016
printer HP_Officejet_Pro_X476dn_MFP_fax is idle. enabled since Wed Jun 1 05:04:09 2016
printer lp2pdf2email is idle. enabled since Sun Feb 14 07:22:51 2016
printer MelHP is idle. enabled since Sun May 29 07:46:51 2016
printer sahhp is idle. enabled since Sun Feb 14 05:42:43 2016
HP_Officejet_Pro_X476dn_MFP-42 root 422912 Wed Jun 1 05:04:40 2016
[root@kjhlt6 rc.d]# lpstat -t
scheduler is running
system default destination: MelHP
device for HP_Officejet_Pro_X476dn_MFP: hp:/net/HP_Officejet_Pro_X476dn_MFP?ip=192.168.1.5
device for HP_Officejet_Pro_X476dn_MFP_fax: hpfax:/net/HP_Officejet_Pro_X476dn_MFP?ip=192.168.1.5
device for lp2pdf2email: ///dev/null
device for MelHP: smb://192.168.0.88/MelHP
device for sahhp: socket://sahhp:9100
HP_Officejet_Pro_X476dn_MFP accepting requests since Wed Jun 1 05:04:50 2016
HP_Officejet_Pro_X476dn_MFP_fax accepting requests since Wed Jun 1 05:04:09 2016
lp2pdf2email accepting requests since Sun Feb 14 07:22:51 2016
MelHP accepting requests since Sun May 29 07:46:51 2016
sahhp accepting requests since Sun Feb 14 05:42:43 2016
printer HP_Officejet_Pro_X476dn_MFP is idle. enabled since Wed Jun 1 05:04:50 2016
ready to print
printer HP_Officejet_Pro_X476dn_MFP_fax is idle. enabled since Wed Jun 1 05:04:09 2016
printer lp2pdf2email is idle. enabled since Sun Feb 14 07:22:51 2016
printer MelHP is idle. enabled since Sun May 29 07:46:51 2016
printer sahhp is idle. enabled since Sun Feb 14 05:42:43 2016
Last edited by kjhambrick; 06-01-2016 at 05:25 AM.
Reason: more info
You're not going to believe this. I don't believe this. It's a locale issue. Check this out...
Running hp-setup -i 192.168.1.65 gives me the errors I've been talking about. This fixed it:
# export LANG=en
# hp-setup -i 192.168.1.65
it finds the ppd and offers to set up the cue.
It seems that cups sends out more detailed info about LANG than hp-setup can handle. So setting LANG to the plain language works. Why it craps out with such an arcane error message I can't answer.
That also doesn't explain why you're not getting the error and I am with the default LANG settings, but that's beyond my debugging capabilities.
NOW, at least in my case, this thread really IS solved.
[edit: clarify thread status for my situation]
Last edited by reclusivewriter; 06-01-2016 at 06:08 AM.
Just for giggles, I left LANG alone and changed LC_COLLATE=C to LC_ALL=C in /etc/profile.d/lang.sh and reran hp-setup -i. That worked, too, and it found the ppd file just fine.
Perhaps this patch to setup.py would do the trick:
Code:
--- setup.py.orig 2016-05-31 12:50:07.000000000 -0500
+++ setup.py 2016-06-01 11:39:39.977051151 -0500
@@ -42,6 +42,8 @@
pass
+# Set LC_ALL=C so that we can properly parse info from CUPS:
+os.environ["LC_ALL"] = "C"
# Local
from base.g import *
I was going to try the patch to setup.py but the source from HP leaves out most of the drivers including the one I need and I did not feel up to fixing the package from 05/31/16.
Well anyway that seems to be the problem and solution.
Thanks for the continued attention even though the OP got it working earlier.
Perhaps this patch to setup.py would do the trick:
<<snip>>
Thank you Pat !
I created /usr/share/hplip/setup.py.patch ; created setup.py.orig ; applied the patch.
It worked fine for me after removing LC_ALL=C for the session.
That's a keeper !
It should fix Launfal's issue.
I wonder if it will also fix TarFile's issue ?
-- kjh
1. Apply the patch to /usr/share/hplip/setup.py
Code:
# cd /usr/share/hplip
# ls -la *setup.py
-rwxr-xr-x 1 root root 2628 May 31 12:50 faxsetup.py
-rwxr-xr-x 1 root root 38026 May 31 12:50 setup.py
# cp -p setup.py setup.py.orig # make a clone
# vim setup.py.patch # paste Pat's patch
# patch <setup.py.patch # exec the patch
patching file setup.py
# diff -Naur setup.py.orig setup.py # check the results
--- setup.py.orig 2016-05-31 12:50:07.000000000 -0500
+++ setup.py 2016-06-01 12:24:23.153282158 -0500
@@ -42,6 +42,8 @@
pass
+# Set LC_ALL=C so that we can properly parse info from CUPS:
+os.environ["LC_ALL"] = "C"
# Local
from base.g import *
2. Test Pat's Patch ...
Code:
[konrad@kjhlt6 ~]$ su -
# vi /etc/profile.d/zzz-kjh-stuff.sh # pound out LC_ALL=C
# exit
[konrad@kjhlt6 ~]$ su -
# env |grep LC
LC_COLLATE=C # check for Slackware-Standard LC_*
# lpstat -t |grep '^device'
device for HP_Officejet_Pro_X476dn_MFP: hp:/net/HP_Officejet_Pro_X476dn_MFP?ip=192.168.1.5
device for HP_Officejet_Pro_X476dn_MFP_fax: hpfax:/net/HP_Officejet_Pro_X476dn_MFP?ip=192.168.1.5
device for lp2pdf2email: ///dev/null
device for MelHP: smb://192.168.0.88/MelHP
device for sahhp: socket://sahhp:9100
# lpadmin -x HP_Officejet_Pro_X476dn_MFP_fax
# lpadmin -x HP_Officejet_Pro_X476dn_MFP
# hp-setup -i 192.168.1.5
HP Linux Imaging and Printing System (ver. 3.16.5)
Printer/Fax Setup Utility ver. 9.0
Copyright (c) 2001-15 HP Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.
(Note: Defaults for each question are maked with a '*'. Press <enter> to accept the default.)
Setting up device: hp:/net/HP_Officejet_Pro_X476dn_MFP?ip=192.168.1.5
---------------------
| PRINT QUEUE SETUP |
---------------------
Please enter a name for this print queue (m=use model name:'HP_Officejet_Pro_X476dn_MFP'*, q=quit) ?
Using queue name: HP_Officejet_Pro_X476dn_MFP
Locating PPD file... Please wait.
Found PPD file: lsb/usr/HP/hp-officejet_pro_476_576_series-ps.ppd.gz
Description:
Note: The model number may vary slightly from the actual model number on the device.
Does this PPD file appear to be the correct one (y=yes*, n=no, q=quit) ?
Enter a location description for this printer (q=quit) ?SAH Office
Enter additonal information or notes for this printer (q=quit) ?
Adding print queue to CUPS:
Device URI: hp:/net/HP_Officejet_Pro_X476dn_MFP?ip=192.168.1.5
Queue name: HP_Officejet_Pro_X476dn_MFP
PPD file: lsb/usr/HP/hp-officejet_pro_476_576_series-ps.ppd.gz
Location: SAH Office
Information:
-------------------
| FAX QUEUE SETUP |
-------------------
Please enter a name for this fax queue (m=use model name:'HP_Officejet_Pro_X476dn_MFP_fax'*, q=quit) ?
Using queue name: HP_Officejet_Pro_X476dn_MFP_fax
Enter a location description for this printer (q=quit) ?SAH Office FAX
Enter additonal information or notes for this printer (q=quit) ?
Adding fax queue to CUPS:
Device URI: hpfax:/net/HP_Officejet_Pro_X476dn_MFP?ip=192.168.1.5
Queue name: HP_Officejet_Pro_X476dn_MFP_fax
PPD file: /usr/share/ppd/HP/HP-Fax4-hpcups.ppd.gz
Location: SAH Office FAX
Information:
--------------------
| FAX HEADER SETUP |
--------------------
Would you like to perform fax header setup (y=yes*, n=no, q=quit) ?n
---------------------
| PRINTER TEST PAGE |
---------------------
Would you like to print a test page (y=yes*, n=no, q=quit) ? y
warning: hp-testpage should not be run as root/superuser.
HP Linux Imaging and Printing System (ver. 3.16.5)
Testpage Print Utility ver. 6.0
Copyright (c) 2001-15 HP Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.
Printing test page to printer HP_Officejet_Pro_X476dn_MFP...
Test page has been sent to printer.
note: If an error occured, or the test page failed to print, refer to the HPLIP website
note: at: http://hplip.sourceforge.net for troubleshooting and support.
Done.
Done.
# lpstat -o
HP_Officejet_Pro_X476dn_MFP-43 root 422912 Wed Jun 1 12:27:24 2016
# lpstat -t
scheduler is running
system default destination: MelHP
device for HP_Officejet_Pro_X476dn_MFP: hp:/net/HP_Officejet_Pro_X476dn_MFP?ip=192.168.1.5
device for HP_Officejet_Pro_X476dn_MFP_fax: hpfax:/net/HP_Officejet_Pro_X476dn_MFP?ip=192.168.1.5
device for lp2pdf2email: ///dev/null
device for MelHP: smb://192.168.0.88/MelHP
device for sahhp: socket://sahhp:9100
HP_Officejet_Pro_X476dn_MFP accepting requests since Wed Jun 1 12:27:35 2016
HP_Officejet_Pro_X476dn_MFP_fax accepting requests since Wed Jun 1 12:26:55 2016
lp2pdf2email accepting requests since Sun Feb 14 07:22:51 2016
MelHP accepting requests since Sun May 29 07:46:51 2016
sahhp accepting requests since Sun Feb 14 05:42:43 2016
printer HP_Officejet_Pro_X476dn_MFP is idle. enabled since Wed Jun 1 12:27:35 2016
ready to print
printer HP_Officejet_Pro_X476dn_MFP_fax is idle. enabled since Wed Jun 1 12:26:55 2016
printer lp2pdf2email is idle. enabled since Sun Feb 14 07:22:51 2016
printer MelHP is idle. enabled since Sun May 29 07:46:51 2016
printer sahhp is idle. enabled since Sun Feb 14 05:42:43 2016
Well I patched the setup.py file in /usr/share/hplip and tried to add another queue but I got the same error. I also could not remove the old queue. I may have needed to
export LANG=en
not sure.
OK I just tried that and it let me delete the old queue but I could not add the printer queue back until I did the
export LANG=en
Well it all works for me that way not sure about the setup.py patch which seemed to have no effect on my end unless I did it wrong?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.