Menu

#142 2 changes needed to make dxf2gcode work on devuan / debian testing

Fixed
chrisko
None
High
Patch
2023-02-02
2022-10-11
No

dxf2gcode does not run on devuan daedalus/debian testing, but you just need to change 2 lines to get it going:

1) source/dxf2gcode/gui/messagebox.py, line 80: change "1e9" to something big like "100000". If you don't do it, you get "TypeError: setValue(self, int): argument 1 has unexpected type 'float'"

2) source/dxf2gcode/gui/routetext.py, line 59: change "10/self.sc" to "13", otherwise you get "TypeError: arguments did not match any overloaded call", again complaining over a float.

These 2 sed lines make the changes for you:

sed 's#self.verticalScrollBar().setValue(1e9)#self.verticalScrollBar().setValue(1000000)#g' -i $(find . -name messagebox.py)
sed 's#QFont("Arial", 10/self.sc)#QFont("Arial", 13)#g' -i $(find . -name routetext.py)

Discussion

  • chrisko

    chrisko - 2023-02-02

    Following 2 changes have been implemented already by @spicer. I think this should also solve the issue.

    source/dxf2gcode/gui/messagebox.py, line 80

       if stripped_string:
                self.append(stripped_string)
                self.verticalScrollBar().setValue(int(1e7))
    

    source/dxf2gcode/gui/routetext.py, line 59

            self.path.addText(QtCore.QPointF(0, 0),
                              QFont("Arial", int(10/self.sc)),
    
     

    Last edit: chrisko 2023-02-02
  • chrisko

    chrisko - 2023-02-02
    • status: New --> Fixed
    • assigned_to: chrisko
     

Log in to post a comment.

MongoDB Logo MongoDB