kliment / Printrun

Pronterface, Pronsole, and Printcore - Pure Python 3d printing host software
GNU General Public License v3.0
2.36k stars 997 forks source link

Error When launching #1281

Closed Xeidit closed 1 year ago

Xeidit commented 2 years ago

`WARNING:root:RPC server bound on non-default port 7994 Traceback (most recent call last): File "/usr/bin/pronterface", line 62, in app = PronterApp(False) File "/usr/lib/python3/dist-packages/printrun/pronterface.py", line 2439, in init self.mainwindow = PronterWindow(self) File "/usr/lib/python3/dist-packages/printrun/pronterface.py", line 207, in init self.reload_ui() File "/usr/lib/python3/dist-packages/printrun/pronterface.py", line 281, in reloadui self.createGui(self.settings.uimode == ("Compact"), File "/usr/lib/python3/dist-packages/printrun/gui/init.py", line 259, in createGui viz_pane = VizPane(self, vizpanel) File "/usr/lib/python3/dist-packages/printrun/gui/viz.py", line 115, in init root.gwindow = gviz.GvizWindow(build_dimensions = root.build_dimensions_list, File "/usr/lib/python3/dist-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/lib/python3/dist-packages/printrun/gviz.py", line 197, 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'

`Version 2.0 Using pop os,

I'm new with linux so any fixes need to be written for a noob

rockstorm101 commented 2 years ago

Duplicate of #1225.

Hi @Xeidit please see this comment for the reason behind the error and a temporary workaround. You might need to (re)install Python 3.9. I could provide a .deb file for you if you are into trusting binaries from random strangers on the internet. This is issue seems to be becoming more common and patching through official repositories is not fast enough for it.

rockstorm101 commented 1 year ago

Duplicate of #1225. Which is already fixed. Closing.