The most likely issue is that your repo uses python 2.7 code and that is depreciated in Bookworm which uses Python 3.11 Linuxcnc is now also a python 3 application to match this change.
Rod Webster *1300 896 832* +61 435 765 611 Vehicle Modifications Network www.vehiclemods.net.au On Mon, 5 Feb 2024 at 06:45, ELHIMA Moustapha via Emc-developers < emc-developers@lists.sourceforge.net> wrote: > Hi Guys > I have a question about Dxf2Gcode on Debian BookWorm > I had downloaded the source file from sourceforge.Did :sudo git clone > git://git.code.sf.net/p/dxf2gcode/sourcecode dxf2gcode-sourcecodethen go > to the source folder and try to run the dxf2gcode withsudo python3 > ./make_tr.pysudo python3 ./make_py_uic.pysudo python3 ./st-setup.py > buildand thensudo python3 dxf2gcode.py > The interface start correctly and I can load a dxf file.The problem come > when i try to generate the gcode fileThe interface crash and then I get > this error > > --- Logging error ---Traceback (most recent call last):File > "/usr/lib/python3.11/logging/__init__.py", line 1113, in > emitstream.write(msg + self.terminator)File > "/home/stelus/dxf2gcode-sourcecode/source/dxf2gcode/gui/messagebox.py", > line 80, in writeself.verticalScrollBar().setValue(1e9)TypeError: > setValue(self, a0: int): argument 1 has unexpected type 'float'Call > stack:File "/home/stelus/dxf2gcode-sourcecode/source/dxf2gcode.py", line > 1210, in <module>sys.exit(app.exec_())File > "/home/stelus/dxf2gcode-sourcecode/source/dxf2gcode.py", line 746, in > openself.load()File > "/home/stelus/dxf2gcode-sourcecode/source/dxf2gcode.py", line 867, in > loadlogger.info(self.tr('Loaded blocks: %s') % > len(self.valuesDXF.blocks.Entities))Message: 'Blocs chargés: 0'Arguments: > ()Chargé 135 Entités géométriques; réduit à 1 Contours; calques utilisés: > [0]; nombre d'inserts: 0--- Logging error ---Traceback (most recent call > last):File "/usr/lib/python3.11/logging/__init__.py", line 1113, in > emitstream.write(msg + self.terminator)File > "/home/stelus/dxf2gcode-sourcecode/source/dxf2gcode/gui/messagebox.py", > line 80, in writeself.verticalScrollBar().setValue(1e9)TypeError: > setValue(self, a0: int): argument 1 has unexpected type 'float'Call > stack:File "/home/stelus/dxf2gcode-sourcecode/source/dxf2gcode.py", line > 1210, in <module>sys.exit(app.exec_())File > "/home/stelus/dxf2gcode-sourcecode/source/dxf2gcode.py", line 746, in > openself.load()File > "/home/stelus/dxf2gcode-sourcecode/source/dxf2gcode.py", line 874, in > loadlogger.info(self.tr('Loaded %i entity geometries; reduced to %i > contours; used layers: %s; number of inserts %i')Message: "Chargé 135 > Entités géométriques; réduit à 1 Contours; calques utilisés: [0]; nombre > d'inserts: 0"Arguments: ()Drawing units: millimeters--- Logging error > ---Traceback (most recent call last):File > "/usr/lib/python3.11/logging/__init__.py", line 1113, in > emitstream.write(msg + self.terminator)File > "/home/stelus/dxf2gcode-sourcecode/source/dxf2gcode/gui/messagebox.py", > line 80, in writeself.verticalScrollBar().setValue(1e9)TypeError: > setValue(self, a0: int): argument 1 has unexpected type 'float'Call > stack:File "/home/stelus/dxf2gcode-sourcecode/source/dxf2gcode.py", line > 1210, in <module>sys.exit(app.exec_())File > "/home/stelus/dxf2gcode-sourcecode/source/dxf2gcode.py", line 746, in > openself.load()File > "/home/stelus/dxf2gcode-sourcecode/source/dxf2gcode.py", line 877, in > loadself.setMeasurementUnits(g.config.metric, True)File > "/home/stelus/dxf2gcode-sourcecode/source/dxf2gcode.py", line 711, in > setMeasurementUnitslogger.info(self.tr("Drawing units: > millimeters"))Message: 'Drawing units: millimeters'Arguments: ()Traceback > (most recent call last):File > "/home/stelus/dxf2gcode-sourcecode/source/dxf2gcode.py", line 299, in > exportShapesself.updateExportRoute()File > "/home/stelus/dxf2gcode-sourcecode/source/dxf2gcode.py", line 378, in > updateExportRouteself.canvas_scene.addexproute(layer.exp_order, layer.nr)File > "/home/stelus/dxf2gcode-sourcecode/source/dxf2gcode/gui/canvas2d.py", line > 418, in addexprouteself.routetext.append(RouteText(text=("%s,%s" % > (layer_nr, > shape_nr+1)),^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^File > "/home/stelus/dxf2gcode-sourcecode/source/dxf2gcode/gui/routetext.py", line > 59, in __init__QFont("Arial", 10/self.sc),^^^^^^^^^^^^^^^^^^^^^^^^^^TypeError: > arguments did not match any overloaded call:QFont(): too many > argumentsQFont(family: str, pointSize: int = -1, weight: int = -1, italic: > bool = False): argument 2 has unexpected type 'float'QFont(a0: QFont, pd: > QPaintDevice): argument 1 has unexpected type 'str'QFont(a0: QFont): > argument 1 has unexpected type 'str'QFont(variant: Any): too many > argumentsAbandon > > I was using the same source with debian Wheezy without any problem > Do you have any idea? > Thanks for your help > > > Cordialement, > Best Regards, > > Moustapha Elhima > P Penser à préserver l'environnement avant d'imprimer ce message. Merci > > | | Sans virus.www.avast.com | > > > _______________________________________________ > Emc-developers mailing list > Emc-developers@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/emc-developers > _______________________________________________ Emc-developers mailing list Emc-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-developers