You are not logged in.
Pages: 1
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
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
Where did you get the hp-setup script from?
From official repo : https://www.archlinux.org/packages/extra/x86_64/hplip/
Offline
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
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
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
hplip and hplip plugin work perfectly fine together. What exactly was your error?
| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |
Offline
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
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
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
Pages: 1