You are not logged in.

#1 2010-11-04 05:23:43

jubai_san
Member
From: Chicago, IL USA
Registered: 2010-10-27
Posts: 13

Problem installing HP Printer driver hplip-3.10.9

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

#2 2010-11-04 07:13:43

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Problem installing HP Printer driver hplip-3.10.9

pacman -S hplip

is all you need.

Always check the repos and the AUR first before installing anything manually.

Offline

#3 2010-11-05 00:56:48

jubai_san
Member
From: Chicago, IL USA
Registered: 2010-10-27
Posts: 13

Re: Problem installing HP Printer driver hplip-3.10.9

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

#4 2010-11-05 02:49:04

defears
Member
Registered: 2010-07-26
Posts: 218

Re: Problem installing HP Printer driver hplip-3.10.9

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

#5 2010-11-05 03:05:31

jubai_san
Member
From: Chicago, IL USA
Registered: 2010-10-27
Posts: 13

Re: Problem installing HP Printer driver hplip-3.10.9

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

#6 2010-11-06 00:18:20

mmfmarin
Member
Registered: 2010-10-28
Posts: 12

Re: Problem installing HP Printer driver hplip-3.10.9

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

#7 2010-11-07 23:47:25

jubai_san
Member
From: Chicago, IL USA
Registered: 2010-10-27
Posts: 13

Re: Problem installing HP Printer driver hplip-3.10.9

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

#8 2010-11-08 00:37:03

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Problem installing HP Printer driver hplip-3.10.9

jubai_san wrote:

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. yikes

Offline

#9 2010-11-09 02:15:23

mmfmarin
Member
Registered: 2010-10-28
Posts: 12

Re: Problem installing HP Printer driver hplip-3.10.9

jubai_san wrote:

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

jubai_san wrote:

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

#10 2010-11-10 04:41:48

jubai_san
Member
From: Chicago, IL USA
Registered: 2010-10-27
Posts: 13

Re: Problem installing HP Printer driver hplip-3.10.9

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

#11 2010-11-10 05:14:55

mmfmarin
Member
Registered: 2010-10-28
Posts: 12

Re: Problem installing HP Printer driver hplip-3.10.9

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

#12 2010-11-10 06:04:14

Nichollan
Member
From: Stavanger, Norway
Registered: 2010-05-18
Posts: 110

Re: Problem installing HP Printer driver hplip-3.10.9

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

#13 2010-11-10 17:44:14

jubai_san
Member
From: Chicago, IL USA
Registered: 2010-10-27
Posts: 13

Re: Problem installing HP Printer driver hplip-3.10.9

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

#14 2010-11-10 18:08:05

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,739

Re: Problem installing HP Printer driver hplip-3.10.9

jubai_san wrote:

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
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#15 2010-11-10 23:26:56

jubai_san
Member
From: Chicago, IL USA
Registered: 2010-10-27
Posts: 13

Re: Problem installing HP Printer driver hplip-3.10.9

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

#16 2010-11-11 00:43:25

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,739

Re: Problem installing HP Printer driver hplip-3.10.9

jubai_san wrote:

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
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#17 2010-11-11 02:44:20

jubai_san
Member
From: Chicago, IL USA
Registered: 2010-10-27
Posts: 13

Re: Problem installing HP Printer driver hplip-3.10.9

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

#18 2010-11-20 15:41:52

mmfmarin
Member
Registered: 2010-10-28
Posts: 12

Re: Problem installing HP Printer driver hplip-3.10.9

There is a post for running hplip-plugin:

http://www.go2linux.org/linux/2010/11/h … syntax-816

Offline

#19 2010-11-20 17:35:34

jubai_san
Member
From: Chicago, IL USA
Registered: 2010-10-27
Posts: 13

Re: Problem installing HP Printer driver hplip-3.10.9

Thanks for the information and your help.

Offline

#20 2010-11-21 19:28:01

LukynZ
Member
From: Ostrava, Czech Republic
Registered: 2008-11-13
Posts: 122

Re: Problem installing HP Printer driver hplip-3.10.9

cd /usr/bin
cp python2 python (if python installed - mv python python_bak first)
install drivers
rm python or mv python_bak python

Offline

#21 2011-10-14 14:39:44

rado3105
Member
Registered: 2011-10-09
Posts: 103

Re: Problem installing HP Printer driver hplip-3.10.9

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

#22 2011-12-15 08:46:11

ico
Member
Registered: 2011-01-25
Posts: 35

Re: Problem installing HP Printer driver hplip-3.10.9

rado3105 wrote:

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

Board footer

Powered by FluxBB