Bug 2022732 - [abrt] pronterface: __init__(): gviz.py:196:__init__:TypeError: Pen(): arguments did not match any overloaded call:
Summary: [abrt] pronterface: __init__(): gviz.py:196:__init__:TypeError: Pen(): argume...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: printrun
Version: 35
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miro Hrončok
QA Contact: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:468e119799016036290f0eb91ef...
Depends On:
Blocks: PYTHON3.10
TreeView+ depends on / blocked
 
Reported: 2021-11-12 13:14 UTC by John Duchek
Modified: 2021-11-27 01:09 UTC (History)
2 users (show)

Fixed In Version: printrun-2.0.0-0.20.rc8.fc36 printrun-2.0.0-0.20.rc8.fc35
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-11-27 01:09:23 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (1.96 KB, text/plain)
2021-11-12 13:14 UTC, John Duchek
no flags Details
File: cgroup (59 bytes, text/plain)
2021-11-12 13:14 UTC, John Duchek
no flags Details
File: cpuinfo (2.41 KB, text/plain)
2021-11-12 13:14 UTC, John Duchek
no flags Details
File: environ (2.38 KB, text/plain)
2021-11-12 13:14 UTC, John Duchek
no flags Details
File: mountinfo (2.86 KB, text/plain)
2021-11-12 13:14 UTC, John Duchek
no flags Details
File: namespaces (172 bytes, text/plain)
2021-11-12 13:14 UTC, John Duchek
no flags Details
File: open_fds (1.69 KB, text/plain)
2021-11-12 13:14 UTC, John Duchek
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Github kliment Printrun issues 1225 0 None open Pronterface crashes under python 3.10 2021-11-17 11:01:16 UTC
Github kliment Printrun pull 1224 0 None open Pen width is an integer, fix a TypeError on Python 3.10+ 2021-11-15 12:09:48 UTC

Description John Duchek 2021-11-12 13:14:22 UTC
Description of problem:
just ran pronterface; it is working in fed34

Version-Release number of selected component:
pronterface-1:2.0.0-0.19.rc5.fc35

Additional info:
reporter:       libreport-2.15.2
cmdline:        /usr/bin/python3 -s /usr/bin/pronterface
crash_function: __init__
exception_type: TypeError
executable:     /usr/bin/pronterface
interpreter:    python3-3.10.0-1.fc35.x86_64
kernel:         5.14.16-301.fc35.x86_64
runlevel:       N 5
type:           Python3
uid:            1000

Truncated backtrace:
gviz.py:196:__init__:TypeError: Pen(): arguments did not match any overloaded call:
  overload 1: too many arguments
  overload 2: argument 2 has unexpected type 'float'
  overload 3: argument 1 has unexpected type 'Colour'

Traceback (most recent call last):
  File "/usr/bin/pronterface", line 62, in <module>
    app = PronterApp(False)
  File "/usr/lib64/python3.10/site-packages/printrun/pronterface.py", line 2388, in __init__
    self.mainwindow = PronterWindow(self)
  File "/usr/lib64/python3.10/site-packages/printrun/pronterface.py", line 218, in __init__
    self.reload_ui()
  File "/usr/lib64/python3.10/site-packages/printrun/pronterface.py", line 294, in reload_ui
    self.createGui(self.settings.uimode == _("Compact"),
  File "/usr/lib64/python3.10/site-packages/printrun/gui/__init__.py", line 255, in createGui
    viz_pane = VizPane(self, vizpanel)
  File "/usr/lib64/python3.10/site-packages/printrun/gui/viz.py", line 103, in __init__
    root.gwindow = gviz.GvizWindow(build_dimensions = root.build_dimensions_list,
  File "/usr/lib64/python3.10/site-packages/printrun/gviz.py", line 77, in __init__
    self.p = Gviz(panel, size = size, build_dimensions = build_dimensions, grid = grid, extrusion_width = extrusion_width, bgcolor = bgcolor, realparent = self)
  File "/usr/lib64/python3.10/site-packages/printrun/gviz.py", line 196, in __init__
    self.mainpen = wx.Pen(wx.Colour(0, 0, 0), penwidth)
TypeError: Pen(): arguments did not match any overloaded call:
  overload 1: too many arguments
  overload 2: argument 2 has unexpected type 'float'
  overload 3: argument 1 has unexpected type 'Colour'

Local variables in innermost frame:
self: <printrun.gviz.Gviz object at 0x7fe6a3a48670>
parent: <wx._core.Panel object at 0x7fe6a3a48430>
size: [600, 600]
build_dimensions: [200.0, 200.0, 100.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]
grid: (10.0, 50.0)
extrusion_width: 0.5
bgcolor: '#FFFFFF'
realparent: <printrun.gviz.GvizWindow object at 0x7fe6a3a481f0>
ratio: 1.0
penwidth: 1.4975

Comment 1 John Duchek 2021-11-12 13:14:24 UTC
Created attachment 1841436 [details]
File: backtrace

Comment 2 John Duchek 2021-11-12 13:14:25 UTC
Created attachment 1841437 [details]
File: cgroup

Comment 3 John Duchek 2021-11-12 13:14:26 UTC
Created attachment 1841438 [details]
File: cpuinfo

Comment 4 John Duchek 2021-11-12 13:14:27 UTC
Created attachment 1841439 [details]
File: environ

Comment 5 John Duchek 2021-11-12 13:14:28 UTC
Created attachment 1841440 [details]
File: mountinfo

Comment 6 John Duchek 2021-11-12 13:14:29 UTC
Created attachment 1841441 [details]
File: namespaces

Comment 7 John Duchek 2021-11-12 13:14:30 UTC
Created attachment 1841442 [details]
File: open_fds

Comment 8 Miro Hrončok 2021-11-12 14:04:27 UTC
We need to round penwidth.

Comment 12 Fedora Update System 2021-11-18 10:58:56 UTC
FEDORA-2021-d883f5d3fb has been submitted as an update to Fedora 36. https://bodhi.fedoraproject.org/updates/FEDORA-2021-d883f5d3fb

Comment 13 Fedora Update System 2021-11-18 11:00:43 UTC
FEDORA-2021-d883f5d3fb has been pushed to the Fedora 36 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 14 Fedora Update System 2021-11-18 12:26:53 UTC
FEDORA-2021-e669ae4175 has been submitted as an update to Fedora 35. https://bodhi.fedoraproject.org/updates/FEDORA-2021-e669ae4175

Comment 15 Fedora Update System 2021-11-19 19:09:28 UTC
FEDORA-2021-e669ae4175 has been pushed to the Fedora 35 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-e669ae4175`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-e669ae4175

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 16 Fedora Update System 2021-11-27 01:09:23 UTC
FEDORA-2021-e669ae4175 has been pushed to the Fedora 35 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.