[SRU] pronterface does not start in jammy
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
printrun (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Jammy |
Fix Released
|
High
|
Unassigned |
Bug Description
[ Impact ]
pronterface is completely unusable in Jammy. If the user tries to execute it then that fails with the error:
Traceback (most recent call last):
File "/usr/bin/
app = PronterApp(False)
File "/usr/lib/
self.mainwindow = PronterWindow(self)
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
viz_pane = VizPane(self, vizpanel)
File "/usr/lib/
root.gwindow = gviz.GvizWindow
File "/usr/lib/
self.p = Gviz(panel, size = size, build_dimensions = build_dimensions, grid = grid, extrusion_width = extrusion_width, bgcolor = bgcolor, realparent = self)
File "/usr/lib/
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'
[ Test Plan ]
* Execute pronterface and verify the gui is working.
Ideally someone with a 3D printer should test and confirm that it is working.
[ Where problems could occur ]
* This is an upstream patch which has been also added in Debian almost 20 months ago.
The upstream patch is only typecasting and changing the datatype of the arguments from float to integer as Pen, DrawLine and others take integers as arguments from Python 3.10+
imho, since the values are typecasted from float to int so it might loose some precision. But again since this is an upstream fix, I will assume that the chances of regression are less.
[ Other Info ]
* The problem has been fixed by upstream in v2.0.0 but Debian has added the patch in its v2.0.0~rc8-2 package so as a result Lunar is not affected and only Jammy is affected.
[ Original Bug Description ]
pronterface does not start:
$ pronterface
WARNING:root:RPC server bound on non-default port 7979
Traceback (most recent call last):
File "/usr/bin/
app = PronterApp(False)
File "/usr/lib/
self.mainwindow = PronterWindow(self)
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
viz_pane = VizPane(self, vizpanel)
File "/usr/lib/
root.gwindow = gviz.GvizWindow
File "/usr/lib/
self.p = Gviz(panel, size = size, build_dimensions = build_dimensions, grid = grid, extrusion_width = extrusion_width, bgcolor = bgcolor, realparent = self)
File "/usr/lib/
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'
ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: pronterface 2.0.0~rc7-1build1
ProcVersionSign
Uname: Linux 5.15.0-33-generic x86_64
ApportVersion: 2.20.11-0ubuntu82.1
Architecture: amd64
CasperMD5CheckR
CurrentDesktop: XFCE
Date: Fri May 27 15:24:36 2022
InstallationDate: Installed on 2016-04-30 (2218 days ago)
InstallationMedia: Ubuntu 16.04 LTS "Xenial Xerus" - Release amd64 (20160420.1)
PackageArchitec
SourcePackage: printrun
UpgradeStatus: Upgraded to jammy on 2022-04-28 (29 days ago)
modified.
# set this to 0 to disable apport, or to 1 to enable it
# you can temporarily override this with
# sudo service apport start force_start=1
enabled=0
mtime.conffile.
Changed in printrun (Ubuntu): | |
status: | Confirmed → Fix Released |
Changed in printrun (Ubuntu Jammy): | |
status: | New → In Progress |
assignee: | nobody → Sudip Mukherjee (sudipmuk) |
summary: |
- pronterface does not start in jammy + [SRU] pronterface does not start in jammy |
description: | updated |
Changed in printrun (Ubuntu Jammy): | |
status: | Confirmed → Fix Committed |
status: | Fix Committed → In Progress |
Status changed to 'Confirmed' because the bug affects multiple users.