Bug 2178027 - [abrt] system-config-printer: __init__(): options.py:426:__init__:TypeError: debugprint() takes 1 positional argument but 2 were given
Summary: [abrt] system-config-printer: __init__(): options.py:426:__init__:TypeError: ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: system-config-printer
Version: 37
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Zdenek Dohnal
QA Contact: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:68ce93f629724a351f2c1f6b681...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-03-14 09:25 UTC by Petr Sklenar
Modified: 2023-03-23 01:23 UTC (History)
2 users (show)

Fixed In Version: system-config-printer-1.5.18-3.fc38 system-config-printer-1.5.18-3.fc37 system-config-printer-1.5.18-3.fc36
Clone Of:
Environment:
Last Closed: 2023-03-18 00:18:12 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (1.71 KB, text/plain)
2023-03-14 09:25 UTC, Petr Sklenar
no flags Details
File: cpuinfo (2.77 KB, text/plain)
2023-03-14 09:25 UTC, Petr Sklenar
no flags Details
File: environ (2.06 KB, text/plain)
2023-03-14 09:25 UTC, Petr Sklenar
no flags Details
File: mountinfo (6.25 KB, text/plain)
2023-03-14 09:25 UTC, Petr Sklenar
no flags Details
File: namespaces (172 bytes, text/plain)
2023-03-14 09:25 UTC, Petr Sklenar
no flags Details
File: open_fds (4.02 KB, text/plain)
2023-03-14 09:25 UTC, Petr Sklenar
no flags Details

Description Petr Sklenar 2023-03-14 09:25:19 UTC
Version-Release number of selected component:
system-config-printer-1.5.18-1.fc37

Additional info:
reporter:       libreport-2.17.4
cgroup:         0::/user.slice/user-1000.slice/user/app.slice/app-gnome-system\x2dconfig\x2dprinter-225400.scope
cmdline:        /usr/bin/python3 /usr/share/system-config-printer/system-config-printer.py
crash_function: __init__
exception_type: TypeError
executable:     /usr/share/system-config-printer/system-config-printer.py
interpreter:    python3-3.11.2-1.fc37.x86_64
kernel:         6.1.14-200.fc37.x86_64
runlevel:       N 5
type:           Python3
uid:            1000

Truncated backtrace:
options.py:426:__init__:TypeError: debugprint() takes 1 positional argument but 2 were given

Traceback (most recent call last):
  File "/usr/share/system-config-printer/system-config-printer.py", line 1851, 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 597, in dests_iconview_item_activated
    self.propertiesDlg.show (name, host=self.connect_server,
  File "/usr/share/system-config-printer/printerproperties.py", line 579, in show
    self.load (name, host=host, encryption=encryption, parent=parent)
  File "/usr/share/system-config-printer/printerproperties.py", line 1456, in load
    self.add_job_option (option, value=value,
  File "/usr/share/system-config-printer/printerproperties.py", line 835, in add_job_option
    option = options.OptionWidget(name, value, supported,
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/share/system-config-printer/options.py", line 100, in OptionWidget
    return OptionSelectOneNumber(name, v, s, on_change)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/share/system-config-printer/options.py", line 426, in __init__
    debugprint("Selecting from choices:", supported[0])
TypeError: debugprint() takes 1 positional argument but 2 were given

Local variables in innermost frame:
self: <options.OptionSelectOneNumber object at 0x7f69c82dc950>
name: 'orientation-requested'
value: 0
supported: [3, 4, 5, 6]
on_change: <bound method PrinterPropertiesDialog.option_changed of <printerproperties.PrinterPropertiesDialog object at 0x7f69cbeb9fc0 (printerproperties+PrinterPropertiesDialog at 0x5597b8664d80)>>
selected: None
nr: 3
choice: 6

Comment 1 Petr Sklenar 2023-03-14 09:25:23 UTC
Created attachment 1950554 [details]
File: backtrace

Comment 2 Petr Sklenar 2023-03-14 09:25:24 UTC
Created attachment 1950555 [details]
File: cpuinfo

Comment 3 Petr Sklenar 2023-03-14 09:25:25 UTC
Created attachment 1950556 [details]
File: environ

Comment 4 Petr Sklenar 2023-03-14 09:25:27 UTC
Created attachment 1950557 [details]
File: mountinfo

Comment 5 Petr Sklenar 2023-03-14 09:25:28 UTC
Created attachment 1950558 [details]
File: namespaces

Comment 6 Petr Sklenar 2023-03-14 09:25:30 UTC
Created attachment 1950559 [details]
File: open_fds

Comment 7 Fedora Update System 2023-03-15 16:26:12 UTC
FEDORA-2023-e0973d7562 has been submitted as an update to Fedora 38. https://bodhi.fedoraproject.org/updates/FEDORA-2023-e0973d7562

Comment 8 Fedora Update System 2023-03-15 16:27:17 UTC
FEDORA-2023-0dc434a5b1 has been submitted as an update to Fedora 37. https://bodhi.fedoraproject.org/updates/FEDORA-2023-0dc434a5b1

Comment 9 Fedora Update System 2023-03-15 16:27:19 UTC
FEDORA-2023-713cf2d16c has been submitted as an update to Fedora 36. https://bodhi.fedoraproject.org/updates/FEDORA-2023-713cf2d16c

Comment 10 Fedora Update System 2023-03-18 00:18:12 UTC
FEDORA-2023-e0973d7562 has been pushed to the Fedora 38 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 11 Fedora Update System 2023-03-21 02:46:30 UTC
FEDORA-2023-0dc434a5b1 has been pushed to the Fedora 37 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 12 Fedora Update System 2023-03-23 01:23:21 UTC
FEDORA-2023-713cf2d16c has been pushed to the Fedora 36 stable repository.
If problem still persists, please make note of it in this bug report.


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