/usr/lib/cups/filter/hpcups failed

Asked by Peter White

Hi

Trying to get my HP Photosmart Plus B210 working as a USB printer from my Raspberry Pi. Printer appears to install correctly but on printing a test page from CUPS I get /usr/lib/cups/filter/hpcups failed.

Trying to manually follow the filters, when running

/usr/lib/cups/filter/hpcupsold 1 me '' 1 ''<out.ras >out.prn

I get

terminate called after throwing an instance of 'std::logic_error'
  what(): basic_string::_S_construct null not valid
Aborted

so looks like HPCUPS filter is broken?

Thanks for your help!

Question information

Language:
English Edit question
Status:
Answered
For:
HPLIP Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Peter White (3eter) said :
#1

UPDATE: I have managed to gain access to another printer: HP OfficeJet 6110 and this worked first time once configured in CUPS. Therefore must be a problem with the HP Photosmart Plus B210 configuration??

Revision history for this message
Sanjay Kumar (sanjay-kumar14) said :
#2

Hi,

Please try following things and see if you can print on Photosmart Plus B210 .
=> Download and install the latest HPLIP release from
http://hplipopensource.com/hplip-web/install/install/index.html (automatic installer) or
http://hplipopensource.com/hplip-web/install/manual/index.html (manual installation, if automatic installer does not work)

=> Reconfigure print queue with the commands in the terminal mentioned below.
       => system-config-printer (remove all print queues)
      => su -c "hp-plugin"
             or
      => sudo hp-plugin (This will download right plugin)
       => hp-setup (It should not be run in a root mode. This command is adding print queue, make sure you select ppd name having "-ps" or "hpcups" substring)
=>Try printing now.

Revision history for this message
brian_p (claremont102) said :
#3

The HPCUPS filter is not broken. The filter has to given some environment varaibles.

DEVICE_URI=<whatever> PPD=<PPD_location>
/usr/lib/cups/filter/hpcups 1 1 1 1 "'' cups-raster-data > out.prn

All on one line would be OK. "whatever" can be empty.

Can you help with this problem?

Provide an answer of your own, or ask Peter White for more information if necessary.

To post a message you must log in.