Scanning with M1522n: Failed to open device

Asked by Becca L.

I'm just trying for a basic, direct-via-USB setup on Ubuntu 9.04. My M1522n prints fine, but when I open up XSane and select it as the input device, I get the error "Failed to open device `hpaio:/usb/HP_Laserjet...': Error during device I/O."

The output of hp-check -t is here: http://pastebin.com/m24fa60aa

It gives the error "error: Required plug-in status: Not installed" on line 232, but I did install the plugin and from what I've read in other threads on this forum that error may be a bug.

Thanks,
Becca

Question information

Language:
English Edit question
Status:
Solved
For:
HPLIP Edit question
Assignee:
No assignee Edit question
Solved by:
Aaron Albright
Solved:
Last query:
Last reply:
Revision history for this message
Aaron Albright (albrigha-deactivatedaccount) said :
#1

Becca,

There was an issue in HPLIP 3.9.2 where the plug-in install was not detected correctly. Please upgrade to the latest HPLIP from our website: http://www.hplipopensource.com

The automatic installer supports Ubuntu 9.04 and you shouldn't encounter any issues.

This should resolve the problem.

Thanks for your support of HPLIP--we appreciate it.

Aaron

Revision history for this message
Becca L. (leer) said :
#2

Hi Aaron, thanks for your reply.

I downloaded 3.9.8 from http://www.hplipopensource.com, and installed according to the instructions linked from that page, using automatic install mode, and got this error:

error: Configure failed with error: python-devel not found

I reviewed the installer output and saw a warning about being unable to remove the previous version of HPLIP. I uninstalled myself via Synaptic. Now that warning's gone, but the installer still dies at the same place. The full output is here: http://pastebin.com/mc47ed92

I found this similar issue but I don't think it applies to my situation: https://bugs.launchpad.net/ubuntu/+bug/390194

Is it just a missing package?

Revision history for this message
Aaron Albright (albrigha-deactivatedaccount) said :
#3

Try running:

./configure --with-hpppddir=/usr/share/ppd/HP --libdir=/usr/lib64 --prefix=/usr --enable-qt4 --enable-doc-build --disable-cups-ppd-install --disable-foomatic-drv-install --disable-foomatic-ppd-install --disable-hpijs-install --enable-policykit --enable-cups-drv-install --enable-hpcups-install --enable-network-build --enable-dbus-build --enable-scan-build --enable-fax-build

in the hplip-3.9.2 directory and post the output.

Thanks!

Aaron

Revision history for this message
Becca L. (leer) said :
#4

I uninstalled 3.9.2, should I reinstall it then?

Revision history for this message
Aaron Albright (albrigha-deactivatedaccount) said :
#5

Yeah try installing HPLIP 3.9.8. If you get the same error run:

cd hplip-3.9.8

and then:

./configure --with-hpppddir=/usr/share/ppd/HP --libdir=/usr/lib64 --prefix=/usr --enable-qt4 --enable-doc-build --disable-cups-ppd-install --disable-foomatic-drv-install --disable-foomatic-ppd-install --disable-hpijs-install --enable-policykit --enable-cups-drv-install --enable-hpcups-install --enable-network-build --enable-dbus-build --enable-scan-build --enable-fax-build

and post the output.

Thanks.

Aaron

Revision history for this message
Becca L. (leer) said :
#6

OK, I used the directory from the original failed install. Here's the output: http://pastebin.com/m18237fd2

Thanks!

Revision history for this message
Becca L. (leer) said :
#7

Anything else I should try? I currently can't use even the printer function since uninstalling 3.9.2.

Revision history for this message
Best Aaron Albright (albrigha-deactivatedaccount) said :
#8

Looks like your system is missing some of the required dependencies.

Try running:

sudo aptitude install --assume-yes libcupsys2 cupsddk cupsddk-drivers libcupsys2-dev cupsys-bsd libcupsimage2-dev libdbus-1-dev build-essential gs-esp openssl libjpeg62-dev libsnmp-dev libtool libusb-dev python-imaging policykit policykit-gnome python-qt4 python-qt4-dbus python-dbus python-gobject python-dev python-notify python python-reportlab libsane libsane-dev sane-utils xsane

and then run the configure line again. If you get no errors do make, and then sudo make install .

We test the automatic installer extensively on Ubuntu, so I'm not sure how come you are having such difficulties.

This should get you installed, however.

Thanks for your support of HPLIP--we appreciate it.

Aaron

Revision history for this message
Becca L. (leer) said :
#9

Great, everything installed fine, hp-check -t returns no errors, and I can scan from XSane.

Thanks so much for your help, Aaron.

Becca