You are not logged in.

#1 2017-12-06 09:09:03

ChoromPotro
Member
Registered: 2017-07-16
Posts: 11

[SOLVED]HP Printer using hplip issue

I am facing this issue when I am trying to install an HP printer:

☹  hp-setup -i                                                                                                                                                                                                    

HP Linux Imaging and Printing System (ver. 3.17.10)
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.)


--------------------------------
| SELECT CONNECTION (I/O) TYPE |
--------------------------------

  Num       Connection  Description                                               
            Type                                                                  
  --------  ----------  ----------------------------------------------------------
  0*        usb         Universal Serial Bus (USB)                                
  1         net         Network/Ethernet/Wireless (direct connection or JetDirect)
  2         par         Parallel Port (LPT:)                                      

Enter number 0...2 for connection type (q=quit, enter=usb*) ? 

Using connection type: usb

 
Setting up device: hp:/usb/HP_LaserJet_Professional_P1102?serial=000000000Q8CAH6FPR1a


Traceback (most recent call last):
  File "/usr/bin/hp-setup", line 409, in <module>
    pluginObj = pluginhandler.PluginHandle() 
  File "/usr/share/hplip/installer/pluginhandler.py", line 61, in __init__
    self.__readPluginStatus()
  File "/usr/share/hplip/installer/pluginhandler.py", line 162, in __readPluginStatus
    copies = self.__getPluginFilesList( home )
  File "/usr/share/hplip/installer/pluginhandler.py", line 73, in __getPluginFilesList
    products = plugin_spec.keys("products")
  File "/usr/share/hplip/base/g.py", line 117, in options
    return self.conf.options(section)
  File "/usr/lib/python3.6/configparser.py", line 675, in options
    raise NoSectionError(section) from None
configparser.NoSectionError: No section: 'products'

What should I do to get the printer working?

Last edited by ChoromPotro (2017-12-06 10:18:25)

Offline

#2 2017-12-06 10:00:53

schard
Member
From: Hannover
Registered: 2016-05-06
Posts: 1,932
Website

Re: [SOLVED]HP Printer using hplip issue

Where did you get the hp-setup script from? It's from hplip, alright.
It is obviously a python script using the configparser library.
The respective parser is expecting a config section like

[products]
var = value

in the parsed file.
Further information on the invoked software is necessary to help you.

Last edited by schard (2017-12-06 10:05:45)

Offline

#3 2017-12-06 10:04:45

ChoromPotro
Member
Registered: 2017-07-16
Posts: 11

Re: [SOLVED]HP Printer using hplip issue

schard wrote:

Where did you get the hp-setup script from?

From official repo : https://www.archlinux.org/packages/extra/x86_64/hplip/

Offline

#4 2017-12-06 10:09:16

progandy
Member
Registered: 2012-05-17
Posts: 5,184

Re: [SOLVED]HP Printer using hplip issue

hp-setup is part of [extra]/hplip
Edit: Too slow..

Last edited by progandy (2017-12-06 10:24:13)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#5 2017-12-06 10:16:17

schard
Member
From: Hannover
Registered: 2016-05-06
Posts: 1,932
Website

Re: [SOLVED]HP Printer using hplip issue

Please insert

        print('DEBUG:', src_dir)

(with 8 leading spaces) after line 70 in /usr/share/hplip/installer/pluginhandler.py for debugging and run the script again and show the output, respectively the content of the file plugin.spec inside the printed directory.

Last edited by schard (2017-12-06 10:18:45)

Offline

#6 2017-12-06 10:17:18

ChoromPotro
Member
Registered: 2017-07-16
Posts: 11

Re: [SOLVED]HP Printer using hplip issue

I fixed the issue.

What I did wrong:

1. I installed hplip from official repository then for some reason my printer driver did not get the necessary plugin, so I installed hplip-plugins too , which errored out, but then I forced it. So the hplip went awry.

How did I fix it:

1. Installed hplip-minimal from AUR

Offline

#7 2017-12-06 10:26:13

progandy
Member
Registered: 2012-05-17
Posts: 5,184

Re: [SOLVED]HP Printer using hplip issue

hplip and hplip plugin work perfectly fine together. What exactly was your error?


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#8 2017-12-06 10:27:02

ChoromPotro
Member
Registered: 2017-07-16
Posts: 11

Re: [SOLVED]HP Printer using hplip issue

progandy wrote:

hplip and hplip plugin work perfectly fine together. What exactly was your error?

hplip plugin was showing me a bunch of file "already exists"

Offline

#9 2017-12-06 10:44:35

progandy
Member
Registered: 2012-05-17
Posts: 5,184

Re: [SOLVED]HP Printer using hplip issue

hp-setup might try to download and install hplip-plugin directly from hp without a package if you are not careful I think. Or maybe you did try it with hp-plugin first?

Last edited by progandy (2017-12-06 10:45:35)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#10 2017-12-06 11:51:37

ChoromPotro
Member
Registered: 2017-07-16
Posts: 11

Re: [SOLVED]HP Printer using hplip issue

progandy wrote:

hp-setup might try to download and install hplip-plugin directly from hp without a package if you are not careful I think. Or maybe you did try it with hp-plugin first?

Somehow hp-setup installed the plugin, but I overrode it manually. That's why this happened. All fixed now.

Offline

Board footer

Powered by FluxBB