hp-setup problem under Ubuntu 10.4

Asked by Dror WARSCHAWSKI

I try to set a new printer and after step 2, I click on Next but nothing happens.

When I look at the comments on the terminal, it says:

Found device: hp:/net/HP_Color_LaserJet_CM1312nfi_MFP?ip=193.49.234.6
/Traceback (most recent call last):
  File "/usr/share/hplip/ui4/setupdialog.py", line 1227, in NextButton_clicked
    self.showAddPrinterPage()
  File "/usr/share/hplip/ui4/setupdialog.py", line 649, in showAddPrinterPage
    ok, sudo_ok = pkit.run_plugin_command(plugin == PLUGIN_REQUIRED, plugin_reason)
  File "/usr/share/hplip/base/pkit.py", line 460, in run_plugin_command
    su_sudo = utils.su_sudo()
  File "/usr/share/hplip/base/utils.py", line 1579, in su_sudo
    elif utils.which('/usr/lib/kde4/libexec/kdesu'):
NameError: global name 'utils' is not defined

Do I need a specific plugin? Which one? How to get it? How to install it?

An hour later:

I tried sudo hp-setup, and I get one step further, trying to download a plugin, and this is where it fails:

Found device: hp:/net/HP_Color_LaserJet_CM1312nfi_MFP?ip=193.49.234.6
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.

(similar thing happen if I do sudo hp-plugin)

Yes, my internet connection is OK, so what should I do?

Thanks again,

Dror

Question information

Language:
English Edit question
Status:
Solved
For:
HPLIP Edit question
Assignee:
No assignee Edit question
Solved by:
Dror WARSCHAWSKI
Solved:
Last query:
Last reply:
Revision history for this message
Dror WARSCHAWSKI (dror-ibpc) said :
#1

An other hour later, problem solved:
I had to install the plugin manually, after downloading it from:
http://www.openprinting.org/download/printdriver/auxfiles/HP/plugins/

hplip-3.11.3a-plugin.run

because my version of HPLIP is 3.11.3a

I don't know why hp-plugin couldn't do it on its own...

D.

Revision history for this message
Brent Creech (brentcreech) said :
#2

This was a very helpful post. I just switched from Linux Ubuntu 11.10 "Oneiric Ocelot" to Linux Mint 12 Lisa in Ubuntu my hp CM1017 scanner was working in Lisa I always got an error: Failed to open device `hpaio:/net/HP_Color_LaserJet_CM1017`
I opened synaptic (Menu/All Applications/Synaptic) searched for hplib and made note of which version was loaded: 3.11.7
Then I basically followed what was posted here:
http://www.openprinting.org/download/printdriver/auxfiles/HP/plugins/
download hplip-3.11.7-plugin.run
[CODE]chmod 755 hplip-3.11.7-plugin.run[/CODE]
[CODE]sudo ./hplip-3.11.7-plugin.run[/CODE]
On the printer I assigned it the IP address: 192.168.0.102
[CODE]hp-setup[/CODE]
Manually configured printer at address: 192.168.0.102
Next/Next/Filled out descriptive fields for printer and click Finish

To download the file click on it and it will display in the browser then hit your back button and click on it a 2nd time it will then prompt you if you want to save it.
I appreciate you leading me in the correct direction to resolve this.