Bug 489512 - properties gives "TypeError: argument 5 to map() must support iteration" for marker_info['marker-levels']
properties gives "TypeError: argument 5 to map() must support iteration" for ...
Product: Fedora
Classification: Fedora
Component: system-config-printer (Show other bugs)
All Linux
low Severity medium
: ---
: ---
Assigned To: Tim Waugh
Fedora Extras Quality Assurance
Depends On:
Blocks: F11Target
  Show dependency treegraph
Reported: 2009-03-10 10:54 EDT by Mads Kiilerich
Modified: 2009-03-16 13:36 EDT (History)
1 user (show)

See Also:
Fixed In Version: 1.1.6-1.fc11
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2009-03-16 13:36:48 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Mads Kiilerich 2009-03-10 10:54:09 EDT
Description of problem:

I added a printer (selected and auto-detected network printer), and when I select its icon and try to see properties on it I get:

Traceback (most recent call last):
  File "/usr/share/system-config-printer/system-config-printer.py", line 3088, 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 961, in dests_iconview_item_activated
    self.fillPrinterTab (name)
  File "/usr/share/system-config-printer/system-config-printer.py", line 2422, in fillPrinterTab
  File "/usr/share/system-config-printer/system-config-printer.py", line 2460, in updateMarkerLevels
TypeError: argument 5 to map() must support iteration

I don't know what is relevant, but printers.conf is:

# Printer configuration file for CUPS v1.4b3
# Written by cupsd on 2009-03-10 15:34
<DefaultPrinter HP-LaserJet-2430>
Info HP LaserJet 2430
MakeModel HP LaserJet 2430 Postscript (recommended)
DeviceURI socket://
State Idle
StateTime 1236695622
Reason media-low-report
Type 8425684
Filter application/vnd.cups-raw 0 -
Filter application/vnd.cups-command 0 commandtops
Filter application/vnd.cups-postscript 0 -
Accepting Yes
Shared Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
OpPolicy default
ErrorPolicy stop-printer
Attribute marker-colors none
Attribute marker-levels 31
Attribute marker-names Black Cartridge HP Q6511A
Attribute marker-types tonerCartridge
Attribute marker-change-time 1236695622

Version-Release number of selected component (if applicable):

Comment 1 Tim Waugh 2009-03-10 11:18:36 EDT
Thanks.  Fixed upstream.

Note You need to log in before you can comment on or make changes to this bug.