You are not logged in.
I am trying to install the printer driver for my HP Laserjet p1102w (hplip-3.10.9.run). The program starts then stops with the error "TabError: inconsistent use of tabs and spaces in indentatiion". I did some research, but it could not resolve the issue. I think it has something to do with the way python handles tabs?? I did not have any problem installing this on my Fedora 13 desktop. Not sure how to proceed.
Thanks!
Offline
pacman -S hplip
is all you need.
Always check the repos and the AUR first before installing anything manually.
Offline
Thanks. I downloaded the package, but I was not able to install the printer. When I run hp-setup it finds the printer then asks for a plugin. It trys to download and fails. It says it needs a binary plugin - which I think is hplip, but that won't execute. I am not sure how to proceed.
Thanks.
Offline
install cups and hplip
go to - http://localhost:631/
go to adminitration, add printer
username is root with root password
find driver in list
For some reason hp-setup never worked for me.
Offline
I have cups set up. When I try to print a test page I get /usr/lib/cups/filter/hpcups failed. Trying to figure that out now, but have made no progress.
Offline
Please post these files in pastebin:
/var/log/cups/error_log
/etc/cups/client.conf
/etc/cups/cupsd.conf
¿Did you blacklisted usblp module in /etc/rc.conf?
Last edited by mmfmarin (2010-11-06 00:19:08)
Offline
Back at it.
Since I was having trouble with cups. I revisted the hplip approach. I was able to get hp-setup to run, but a binary plugin is required from HP to complete the process. It would not load. I thought I missed a step so I tried to install the hplip-3.10.9 tar ball it would not install. I did not blacklist usblp module in /etc/rc.conf. I must have missed that. .
I am new to arch, but installing a printer should not be this difficult. The problem is probably in front of me and I can't see it!
Thanks for the help.
Hope this does it.
The pastebin files are - pastebin.ca/1984845,19845846,1984850
Last edited by jubai_san (2010-11-08 01:30:15)
Offline
The pastebin files are 1984845,19845846,1984850.
Post the links, not the numbers - you haven't said which pastebin you used, and you can't expect people to go trying them all.
Offline
I did not blacklist usblp module in /etc/rc.conf. I must have missed that.
The instructions for that are in this wiki:
https://wiki.archlinux.org/index.php/CUPS
I am new to arch, but installing a printer should not be this difficult. The problem is probably in front of me and I can't see it!
I know, I am dealing with the same issue in arch, with a deskjet d2660. It seems that recent changes in cups 1.4 have produced these problems.
You should expect these things to happen in a rolling distro, remember that arch is targeted to users who are expected to get their hands dirty. I have ubuntu in other partition, and my printer wasn't working in ubuntu beta but I made a fresh install with the official release and it is working now. I am comparing the configuration files from both distros to see what might be causing the problem.
Offline
I have used the suggestions given, and I still can't get the printer driver to load. I did check the /var/log/cups/error-Log and found th following:
D[08/Nov/2010:18:17:21 -0600] [Job 25] STATE: +connecting-to-device
D [08/Nov/2010:18:17:21 -0600] [Job 25] STATE: +hplip.plugin-error
D [08/Nov/2010:18:17:21 -0600] [Job 25] prnt/hpcups/HPCupsFilter.cpp 413: m_Job initialization failed with error = 48STATE: -connecting-to-device
The following was from a Fedora bug report. not sure if it is applicable to my problem
Tim Waugh 2010-04-23 11:17:41 EDT
Description of problem:
See in error_log from bug #520200 comment #7:
D [17/Apr/2010:12:34:43 +0530] [Job 29] prnt/hpcups/HPCupsFilter.cpp 413: m_Job
initialization failed with error = 48STATE: +connecting-to-device
There is a missing newline at the end of the string output from
HPCupsFilter.cpp:413.
In fact, looking around, there are *loads* of newlines missed from dbglog()
calls. This messes up STATE and ATTR reporting, as we can see above.
Version-Release number of selected component (if applicable):
hplip-3.10.2-4.fc11
D [08/Nov/2010:18:17:21 -0600] [Job 25] STATE: -media-empty-error,media-jam-error,hplip.plugin-error,cover-open-error,toner-empty-error,other
At this point not sure what to try next
Offline
Run from terminal:
su
hp-plugin -i
I got that suggestion from:
https://bugzilla.redhat.com/show_bug.cgi?id=611255
Not sure if it will work.
Offline
I've little time for further investigations at the moment, but I thought you were supposed to use exclusively either the hpcups driver or the hplip driver for a HP printer.
Last edited by Nichollan (2010-11-10 06:08:24)
Offline
I found a user who was having the same problem with his printer as I am with my HP p1102w laser jet. He found a solution. I found the files he changed, but I am not sure of the change to make. The /usr/bin/python is a link to an executable. The link target is python 3. It appears that it should be to python 2. Am I on track here.
Thanks.
From the Arch Forum:
Index» Workstation User» HPLIP: "Syntax error: invalid syntax" installing HP LaserJet 1018
Offline
I found a user who was having the same problem with his printer as I am with my HP p1102w laser jet. He found a solution. I found the files he changed, but I am not sure of the change to make. The /usr/bin/python is a link to an executable. The link target is python 3. It appears that it should be to python 2. Am I on track here.
Thanks.
From the Arch Forum:
Index» Workstation User» HPLIP: "Syntax error: invalid syntax" installing HP LaserJet 1018
I would say yes.
Open the executable with a text editor. The first line should be a "Crunch Bang" It probably says
#!/usr/bin/python
or
#! env python
Change the references to 'python' to 'python2' and see if that helps.
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way
Offline
Problem solved.
As I see it, the hplip plugin failed to load because it was not compatible with the latest version of python release 3.1.2-2. which the /usr/lib/python referenced. I renamed the existing link and created a new executable with a target of python2. The plugin installed ans printer works.
I guess I took the long road on this one. Thanks!
Offline
Problem solved.
As I see it, the hplip plugin failed to load because it was not compatible with the latest version of python release 3.1.2-2. which the /usr/lib/python referenced. I renamed the existing link and created a new executable with a target of python2. The plugin installed ans printer works.
I guess I took the long road on this one. Thanks!
Okay, but be aware. Arch is leading the way towards Python3. Changing that link might have negative effects on other Python 3 programs on your system either now, or in the near future.
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way
Offline
Our thinking is the same on that issue. I restored the python executable target link to python3, and renamed the modified link to pythonretro - where it waits to be used again.
Thanks for your help.
Offline
There is a post for running hplip-plugin:
Offline
Thanks for the information and your help.
Offline
cd /usr/bin
cp python2 python (if python installed - mv python python_bak first)
install drivers
rm python or mv python_bak python
Offline
Same problem in here:
Searching... (bus=usb, search=(None), desc=0)
error: The printer you are trying to setup requires a binary driver plug-in and it failed to install. Please check your internet connection and try again. Visit http://hplipopensource.com for more infomation.
Dont know how to solve it. I have hp 1018 printer, I installed cups, hplip..according to wiki.
Offline
Same problem in here:
Searching... (bus=usb, search=(None), desc=0)
error: The printer you are trying to setup requires a binary driver plug-in and it failed to install. Please check your internet connection and try again. Visit http://hplipopensource.com for more infomation.Dont know how to solve it. I have hp 1018 printer, I installed cups, hplip..according to wiki.
This is again because of /usr/bin/python directing to python3.
Just while before you continue downloading the plugin from the hp-setup dialogue box, rename /usr/bin/python to python4lol. Rename /usr/bin/python2 to python. And then click next i.e. download the plugin. Revert the changes to file names afterwards.
Offline