Error: Option 'printer-resolution' has value '(unknown IPP tag)' and cannot be edited.

Bug #1000923 reported by João Sousa
18
This bug affects 4 people
Affects Status Importance Assigned to Milestone
HPLIP
New
Undecided
Unassigned

Bug Description

Hello!

System: Debian Testing, hplip 3.12.4
Printer1: HP Officejet 7500A E910 Wide Format, wired network connected
Printer2: HP PSC 1500, usb connected

Problem: Printers are correctly installed but I can't print to both printers. On HP Device Manager no errors are shown on the device "Status" but the print jobs are shown as "Stopped". On system-config-printer both printers are shown with a red (!) exclamation mark, trying to show its properties results in error:

"Option 'printer-resolution' has value '(unknown IPP tag)' and cannot be edited."

After which the printer properties are shown. The field "Printer State" shows:

"Idle - File "/usr/lib/cups/filter/foomatic-rip-hplip" not available: No such file or directory"

I've upgraded hplip from 3.12.2 to 3.12.4, by completely removing (purging) any hplip, hpijs install and then downloading and installing 3.12.4 from http://hplipopensource.com. Same result. hp-check results in no errors (attached). Please help!

Revision history for this message
João Sousa (jotapesse) wrote :
Revision history for this message
João Sousa (jotapesse) wrote :

I forgot to write that while trying to print a self-test page for both printers, the printers take their time and finally print an ASCII text as follows:

"
%!
   userdict dup (\004)cvn{}put (\004\004)cvn{}put

                                                                    % You are using the wrong driver
"

I've checked the installed drivers and they seem correct:
HP Officejet 7500 e910 hpijs, 3.12.4
HP PSC 1500 Series hpijs, 3.12.4

Please help!

Revision history for this message
Sanjay Kumar (sanjay-kumar14) wrote :

Hi,

Thanks for reporting the issue in HPLIP. To help us understand and analyze the issue please follow following things.
=> Download and install the latest HPLIP release from http://hplipopensource.com/hplip-web/install/install/index.html (automatic)
or http://hplipopensource.com/hplip-web/install/manual/index.html (manual if automatic does not work)

=> Reconfigure print queue with the commands in the terminal mentioned below.
       => system-config-printer (remove all print queues)
       => 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 and not an ijs or foomatic ppd)
=>Try printing now.

If problem does not get solved then please capture some logs by doing following things.

=>Enable/Clear Logs as mentioned below
    a) Enable Log capture
       => su (switch to root mode here and execute all remaing commands in root mode)
      => open /etc/cups/cupsd.conf from terminal e.g (vi /etc/cups/cupsd.conf or gedit /etc/cups/cupsd.conf) and then replace
         LogLevel warn
                   with
        LogLevel debug
        hpLogLevel 15

    b) Open Terminal and run following commands:
       => su (switch to root mode here and execute all remaing commands in root mode)
       => /etc/init.d/cups restart
                  or
       => service cups restart
       => cd /tmp
       => rm *.out
       => rm *.bmp
       => cat /dev/null > /var/log/cups/error_log
       => cat /dev/null > /var/log/messages
       => cat /dev/null > /var/log/syslog
       => hp-check -t > /tmp/hpcheck.log

    c) Try to print the file. If issue is not resolved then please send following files
        (**Please use "Create a bug report" to attach the logs as "Ask a Question" does not provide the file attachment option)
          => /var/log/syslog (if present),
          => /var/log/messages (if present),
          => /var/log/cups/error_log
          => /tmp/*.bmp
          => /tmp/*.out
          => /tmp/hpcheck.log
          => document used for printing
          => scanned copy of the printed document (if present)
    d) Please let me know the application used for testing.

Revision history for this message
João Sousa (jotapesse) wrote :

Ok, I've tried unistalling and reinstalling several times, by running the automatic installer hplip-3.12.4.run. I now have the following issues:

#1: Regarding your step: "=> 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 and not an ijs or foomatic ppd)"

It seems that the automatic (either automatic or custom mode) install does not install any ppd hpcups or ps drivers by default. See the displayed "build and install" options:

"
BUILD AND INSTALL
-----------------
Running './configure --libdir=/usr/lib64 --prefix=/usr --enable-qt4 --enable-doc-build --disable-cups-ppd-install --disable-foomatic-drv-install --enable-foomatic-ppd-install --enable-hpijs-install --disable-policykit --disable-cups-drv-install --disable-hpcups-install --enable-network-build --enable-dbus-build --enable-scan-build --enable-fax-build'
"

There are no hpcups ppd drivers available after install.

#2: hp-systray fails to start:

"
RE-STARTING HP_SYSTRAY
----------------------
Traceback (most recent call last):
  File "/usr/bin/hp-systray", line 35, in <module>
    from base import utils, module
  File "/usr/share/hplip/base/module.py", line 30, in <module>
    import tui, utils, device
  File "/usr/share/hplip/base/device.py", line 39, in <module>
    import status
  File "/usr/share/hplip/base/status.py", line 45, in <module>
    import hpmudext
ImportError: libhpmud.so.0: cannot open shared object file: No such file or directory
"

After this I unistalled again by running hp-uninstall and uninstalled sucessfully. Tried a new install, same problem.

I then uninstalled and reinstalled (3.12.2) with "apt-get install hplip hplip-gui hplip-doc" which installed the following:

"hplip hplip-doc hplip-gui hplip-data libhpmud0 libsane-hpaio printer-driver-hpcups python-pexpect"

While trying to run hp-setup I got:

"
$ hp-setup
error: Unable to locate models.dat file

HP Linux Imaging and Printing System (ver. 0.0.0)
Printer/Fax Setup Utility ver. 9.0

Copyright (c) 2001-9 Hewlett-Packard 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.)

Using connection type: usb

error: No device selected/specified or that supports this functionality.
"

Please help, what is going on here?

Revision history for this message
João Sousa (jotapesse) wrote :

Here are my latest hplip-install 3.12.4 log.

Revision history for this message
João Sousa (jotapesse) wrote :

May this be related to a bug in python-cups package? I have an updated installed python-cups 1.9.48-1+b1 from debian.

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=656640

Revision history for this message
Sanjay Kumar (sanjay-kumar14) wrote :

Hi,

Thanks for the logs. I am looking into the issue, however in the meantime can you try to install HPLIP manually as mentioned below.

1) Please uninstall HPLIP by running "hp-uninstall" command in the terminal.
2) Remove hplip, ijs and foomatic packages from package manager.
3) Follow manual install instructions from http://hplipopensource.com/hplip-web/install/manual/distros/debian.html

Revision history for this message
João Sousa (jotapesse) wrote :

Hi,

Did what you've requested. Installed manually successfully. HP PSC 1500 Series USB printer detected but installed hpijs driver by default. Same behaviour:

- Printer is displayed on system-config-printer with a red (!) exclamation mark:
- Trying to display its properties results in error: "Option 'printer-resolution' has value '(unknown IPP tag)' and cannot be edited."
- The printer properties are then displayed.
- The installed driver is: HP PSC 1500 Series, hpijs 3.12.4
- This time the HP PSC 1500 Series, hpcups 3.12.4 driver is available, I selected it.
- Now the red (!) exclamation mark disappeared and I successfully printed a test page.

However, trying to run hp-setup results in error:

$ sudo hp-setup
Traceback (most recent call last):
  File "/usr/bin/hp-setup", line 45, in <module>
    from base import device, utils, tui, models, module
  File "/usr/share/hplip/base/device.py", line 39, in <module>
    import status
  File "/usr/share/hplip/base/status.py", line 45, in <module>
    import hpmudext
ImportError: libhpmud.so.0: cannot open shared object file: No such file or directory

Running hp-check results error in hpmudext (see attached hp-check.log):

Checking 'hpmudext' I/O extension...
error: NOT FOUND OR FAILED TO LOAD! Please reinstall HPLIP and check for the proper installation of hpmudext.

So, what to do next?

Revision history for this message
João Sousa (jotapesse) wrote :

hp-check.log after manually installation of hplip-3.12.4.

Revision history for this message
João Sousa (jotapesse) wrote :

After, I was also able to manually install the HP Officejet 7500A E910 network printer on system-config-printer, select its HP Officejet 7500 e910, hpcups 3.12.4 driver and successfully print a test page.

Revision history for this message
João Sousa (jotapesse) wrote :

hp-systray also fails:

$ hp-systray
Traceback (most recent call last):
  File "/usr/bin/hp-systray", line 35, in <module>
    from base import utils, module
  File "/usr/share/hplip/base/module.py", line 30, in <module>
    import tui, utils, device
  File "/usr/share/hplip/base/device.py", line 39, in <module>
    import status
  File "/usr/share/hplip/base/status.py", line 45, in <module>
    import hpmudext
ImportError: libhpmud.so.0: cannot open shared object file: No such file or directory

Revision history for this message
Amarnath Chitumalla (amarnath-chitumalla) wrote :

Hi,
From hp-check.log, seems like hpcups is not enable during configuration. Please run the following commands again.

$ cd ~/Download/hplip-3.12.4 (note:- if hplip-3.12.4 directory is different location, use accordingly...).

$ ./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 --disable-policykit --enable-cups-drv-install --enable-hpcups-install --enable-network-build --enable-dbus-build --enable-scan-build --enable-fax-build

$ make

$ su -c 'make install'

$ hp-setup

Thanks & Regards,
Amarnath

Revision history for this message
João Sousa (jotapesse) wrote :

Hello,

Did as requested, configure, make and make install successfully, no errors shown. Same problem:

$ hp-setup
Traceback (most recent call last):
  File "/usr/bin/hp-setup", line 45, in <module>
    from base import device, utils, tui, models, module
  File "/usr/share/hplip/base/device.py", line 39, in <module>
    import status
  File "/usr/share/hplip/base/status.py", line 45, in <module>
    import hpmudext
ImportError: libhpmud.so.0: cannot open shared object file: No such file or directory

Also same error in hp-check.log (see attached).

Revision history for this message
João Sousa (jotapesse) wrote :

Hello, again!

I'm sorry to say that the problem persisted without solution. However, today I noticed that hplip 3.12.4 was available from unstable debian repository so I tried to install it to see if it would help. It did!

I started by running "hp-uninstall" to uninstall previous manual/automatic installs. It uninstalled successfully.

I then installed by running "apt-get -t unstable install hplip hplip-gui hplip-doc". Then run "hp-setup". No more errors about hpmudext, hp-setup detected and installed my both printers and fax. I then started "hp-systray" again with no errors.

Checking "system-config-printer" I noticed that the same red (!) exclamation mark and error "Option 'printer-resolution' has value '(unknown IPP tag)' and cannot be edited." persisted. I then tried to manually change each driver to the "hpcups" version and had success. Using the "hpcups" eliminated any error and I now can use both printers normally! Finally!

So, in conclusion:

1. Why hplip 3.12.4 installs by default the "hpijs" drivers if they give errors and the "hpcups" are to be used?
2. Why is the user required to change the drivers after hplip install? Shouldn't hplip install the proper drivers to start?
3. Why, in my case, hplip automatic install (hplip-3.12.4.run) and manual build and install gave after install (hpmudext) errors, only solved by installing the debian hplip 3.12.4 package?

Thank you for your help. I hope that my report may help you improve hplip or any other user with the same issue. My best regards!

Revision history for this message
jujenio (linux-jujenio) wrote :

hi. i got the same issue 'printer-resolution' has value '(unknown IPP tag)', in debian wheezy, printer: hp 3050; try to install from source, from the hp site, falling all the installation's steps and all the solutions but no solved the problem, plz tellme how to change manually each driver to the "hpcups"? cuz my printer doesnt print at all!!!

Revision history for this message
João Sousa (jotapesse) wrote :

^ You may change the driver on system-config-printer by double clicking on the installed printer (to open it's properties), close the "Option 'printer-resolution' has value '(unknown IPP tag)' and cannot be edited." message and on the printer properties where says "Make and Model" click "Change" and then "Choose Driver" -> "Provide PPD file" and browse /usr/share/ppd/HP for the model series of your printer, select the ppd file without "-hpijs" and finish it.

Anyway, I must correct my previous report, where I said that «Using the "hpcups" eliminated any error and I now can use both printers normally!» I should have said that although the red (!) exclamation mark disappeared and it prints normally, the error message "Option 'printer-resolution' has value '(unknown IPP tag)' and cannot be edited." is still displayed when opening the printer properties.

This error is related to python-cups 1.9.48-1+b1 bug, you may either install and updated version or wait that debian provides an updated version. See more information here: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=656640

Revision history for this message
jujenio (linux-jujenio) wrote :

hi. thanx to reply, im already try to changed drivers that way, and isnt worked, but now im changing the python-cups and solved the unknown IPP tag, how ever doesnt print, keep the error message "cups-insecure-filter", and changing the permission doesnt solved the problem...

Revision history for this message
João Sousa (jotapesse) wrote :

^ Sorry, can't help you there because I didn't follow that road. You could perhaps ask for help on that bug/solution report. Anyway, you should have been able to change the driver, don't know why you couldn't. I would try to uninstall everything, reinstall hplip package from debian and try again. Good luck!

Revision history for this message
jujenio (linux-jujenio) wrote :

hi, the printer was successful installed in debian stable (squeeze), using hplip, no problem! in ubuntu natty worked fine too! but wheezy keep same error "cups-insecure-filter". :( . keep trying!

Revision history for this message
SF (favre-zg) wrote :

Hi we are 2013, and Hewlett Packard products are not only affecting 1 or 2 people in the World like this thread on top suggests. Has this been brought to attention to the hplipopensource project? They might have also a big interesst in having this solved!

Revision history for this message
Suma Byrappa (suma-byrappa) wrote :

Hi,

The problem was with hpijs filter which is not supported by HP/HPLIP since last year. As you can see in the above comments, using the officially supported hpcups filter, the problem isn't seen.

Some distros might have pre-bundled hpijs which sometimes causes problems. Installing hpcups (hplipopensource.com) helps in such cases.

Please let us know in case you are facing problems even while using hpcups filter.

Regards,
Suma

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.