system-config-printer: Unknown value for media-col: (unknown IPP value tag 0x34)

Bug #1070002 reported by Tobiasz Jarczyk
36
This bug affects 7 people
Affects Status Importance Assigned to Milestone
system-config-printer (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

When running system-config-printer from the console and then entering my HP-LJ-2200 preferences I get the following errors in the console:

$ system-config-printer
Unknown value for media-col: (unknown IPP value tag 0x34)
Choices: [u'media-bottom-margin', u'media-left-margin', u'media-right-margin', u'media-size', u'media-source', u'media-top-margin', u'media-type']
Selecting from choices: media-bottom-margin

ProblemType: Bug
DistroRelease: Ubuntu 12.10
Package: system-config-printer-common 1.3.11+20120807-0ubuntu10
ProcVersionSignature: Ubuntu 3.5.0-17.28-generic 3.5.5
Uname: Linux 3.5.0-17-generic x86_64
ApportVersion: 2.6.1-0ubuntu3
Architecture: amd64
Date: Mon Oct 22 21:57:49 2012
InstallationMedia: Ubuntu 12.10 "Quantal Quetzal" - Beta amd64 (20120926)
Lpstat: device for HP-LaserJet-2200: socket://10.100.10.9
Lsusb:
 Bus 003 Device 002: ID 08ff:2580 AuthenTec, Inc. AES2501 Fingerprint Sensor
 Bus 003 Device 003: ID 04b4:0033 Cypress Semiconductor Corp. Mouse
 Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
 Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
 Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
MachineType: Hewlett-Packard HP Compaq nx6325 (EY349EA#AKD)
PackageArchitecture: all
Papersize: a4
PccardctlIdent:
 Socket 0:
   no product info available
PccardctlStatus:
 Socket 0:
   no card
PpdFiles: HP-LaserJet-2200: HP LaserJet 2200 Postscript (recommended)
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.5.0-17-generic root=UUID=4f0c1391-e243-4e37-aaab-52625df3e3bd ro
SourcePackage: system-config-printer
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 05/08/2007
dmi.bios.vendor: Hewlett-Packard
dmi.bios.version: 68TT2 Ver. F.07
dmi.board.name: 30B0
dmi.board.vendor: Hewlett-Packard
dmi.board.version: KBC Version 40.15
dmi.chassis.asset.tag: CNU7110B09
dmi.chassis.type: 10
dmi.chassis.vendor: Hewlett-Packard
dmi.modalias: dmi:bvnHewlett-Packard:bvr68TT2Ver.F.07:bd05/08/2007:svnHewlett-Packard:pnHPCompaqnx6325(EY349EA#AKD):pvrF.07:rvnHewlett-Packard:rn30B0:rvrKBCVersion40.15:cvnHewlett-Packard:ct10:cvr:
dmi.product.name: HP Compaq nx6325 (EY349EA#AKD)
dmi.product.version: F.07
dmi.sys.vendor: Hewlett-Packard

Revision history for this message
Tobiasz Jarczyk (dotnokato-q) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in system-config-printer (Ubuntu):
status: New → Confirmed
Revision history for this message
Eugene Savelov (savelov) wrote :

affects me as well in ubuntu 13.10 , printer xerox phaser 6010, russian locale

Unknown value for media-col: (unknown IPP value tag 0x34)
Choices: [u'media-bottom-margin', u'media-left-margin', u'media-right-margin', u'media-size', u'media-source', u'media-top-margin', u'media-type']
Selecting from choices: media-bottom-margin
Traceback (most recent call last):
  File "/usr/share/system-config-printer/system-config-printer.py", line 1698, in on_edit_activate
    self.dests_iconview_item_activated (self.dests_iconview, paths[0])
  File "/usr/share/system-config-printer/system-config-printer.py", line 509, in dests_iconview_item_activated
    parent=self.PrintersWindow)
  File "/usr/share/system-config-printer/printerproperties.py", line 578, in show
    self.load (name, host=host, encryption=encryption, parent=parent)
  File "/usr/share/system-config-printer/printerproperties.py", line 1484, in load
    self.updateMarkerLevels()
  File "/usr/share/system-config-printer/printerproperties.py", line 1578, in updateMarkerLevels
    localized_name = self.ppd.localizeMarkerName(name)
UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-6: ordinal not in range(128)

Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Tim, note that the IPP attribute "media-col" is not a user-settable option but a list of the media properties used by the IPP printer (or CUPS queue). Please make sure that when auto-generating the job options tab (= non-PPD options) that the options presented there make sense as user-settable options. Also make all console output of system-config-printer debug-level (only appearing if "--debug" is used), the messages only irritate the users and cause bug reports.

To the original poster of this bug and everyone affected, the message is harmless, the real bug is the "media-col" option appearing under the job options (at the very end, under "Advanced") which does not make sense. Selecting some item in this option has no influence on the job at all.

There is no printing problem caused by this. If you suffer any problem, it is a different bug, please report it separately.

Eugene, please report a separate bug for your traceback.

Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

I have found a simply one-line patch to not display "media-col" which also eliminates the console messages. W also should use debugprint() more consequently. For options.py I have already a patch.

Changed in system-config-printer (Ubuntu):
status: Confirmed → In Progress
Changed in system-config-printer (Ubuntu):
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package system-config-printer - 1.5.7+20150819-0ubuntu4

---------------
system-config-printer (1.5.7+20150819-0ubuntu4) wily; urgency=medium

  * debian/patches/40_do-not-show-media-col-option.patch: Suppress
    the display of the "media-col" attribute under the job options,
    this is not a user-settable option (LP: #1070002).
  * debian/patches/43_options-py-use-debugprint.patch,
    debian/patches/45_ppds-py-use-debugprint.patch: Silence console
    output.

 -- Till Kamppeter <email address hidden> Sun, 4 Oct 2015 09:28:25 -0300

Changed in system-config-printer (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
nilandenterprise (nilands55s) wrote :

I have the same error on a Dell C1765nfw-MFP; on 198.168.0.7:9100 that had been working for years, However cups was update approximately July 14, 2018
I am running Ubuntu-Gnome 14.04.5-LTS, with the Gnome flashback Metacity desktop and I am wonderfully stuck on this desktop.
Also since the update I can't print at all as I get a 'Filter error', reported as Bug #1784512. I could do a timeshift backup, but then other things I like and net would be broke Like apache 2 and PHP.INI and my-weather indicator, and so on.
Also since the update my gcc-4.8 will not compile (Make) Bug #1575109
So far I have had to r-sync a backup on my system because of updates 4 times the last 2 months due to upstates. I am confused, frustrated and dismayed recently with Ubuntu

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

Duplicates of this bug

Other bug subscribers

Remote bug watches

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