problems with dxf2gcode

368 views
Skip to first unread message

Martin Bitz

unread,
Dec 10, 2020, 12:42:44 PM12/10/20
to dxf2gcode-users
Hello.

My name is Martin and I'm looking for successor for my CAM Expert software.

To me, it seems that dxf2gcode could do the job.

I'm running Kubuntu 20.04 on my laptop and I already installed dxf2gcode with muon package installer.

When I start the GUI everything seems to be okay.

But as soon as I try to open a dxf file nothing happens and the "loading" or "hourglass" cursor appears.


Here the terminal output when I start dxf2gcode and try to open the dxf-file:
martin@Kubuntu2004:~$ dxf2gcode
Creating configuration window
Creating configuration window
File: /home/martin/Test.dxf selected
Loading file: /home/martin/Test.dxf
Reading DXF Structure
Reading Block *Model_Space; Nr: 0
Reading Block *Paper_Space; Nr: 1
Creating Contours of Block Nr: 0
Creating Contours of Block Nr: 1
Creating Contours of Entities
Loaded layers: 1
Loaded blocks: 2
Block 0 includes 0 Geometries, reduced to 0 Contours, used layers: []
Block 1 includes 0 Geometries, reduced to 0 Contours, used layers: []
Loaded 6 entity geometries; reduced to 2 contours; used layers: [0]; number of inserts 0
Drawing units: millimeters
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/dxf2gcode/core/shape.py", line 609, in abs_iter
    raise StopIteration()
StopIteration

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/bin/dxf2gcode", line 727, in open
    self.load()
  File "/usr/bin/dxf2gcode", line 874, in load
    self.makeShapes()
  File "/usr/bin/dxf2gcode", line 922, in makeShapes
    self.makeEntityShapes(self.entityRoot)
  File "/usr/bin/dxf2gcode", line 996, in makeEntityShapes
    tmp_shape.AnalyseAndOptimize()
  File "/usr/lib/python3/dist-packages/dxf2gcode/core/shape.py", line 175, in AnalyseAndOptimize
    self.setNearestStPoint(Point())
  File "/usr/lib/python3/dist-packages/dxf2gcode/core/shape.py", line 190, in setNearestStPoint
    min_geo_nr, _ = min(enumerate(self.geos.abs_iter()),
RuntimeError: generator raised StopIteration
Error in atexit._run_exitfuncs:
Traceback (most recent call last):
  File "/usr/lib/python3.8/logging/__init__.py", line 2114, in shutdown
    h.flush()
  File "/usr/lib/python3.8/logging/__init__.py", line 1064, in flush
    if self.stream and hasattr(self.stream, "flush"):
RuntimeError: wrapped C/C++ object of type MessageBox has been deleted




I would be glad if someone could give me a hint, how to solve the problem.

Thank you in advance.

Martin

Christian Kohlöffel

unread,
Dec 10, 2020, 3:40:00 PM12/10/20
to dxf2gco...@googlegroups.com

Try to load one of the test dxf files you will find in the source folder of dxf2gcode or try to load another file. I think the dxf you want to load ist not drawn in a good way.

 

Regards

Christian

--
--
You received this message because you subscribed to the Google
Groups-group "dxf2gcode-users".
To post a message, send mail to dxf2gco...@googlegroups.com
To unsubscribe, send mail to dxf2gcode-use...@googlegroups.com
See http://groups.google.de/group/dxf2gcode-users?hl=en for more options
and the dxf2gcode project page at http://code.google.com/p/dxf2gcode/
---
You received this message because you are subscribed to the Google Groups "dxf2gcode-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dxf2gcode-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dxf2gcode-users/d1873c2c-5ef5-4154-b327-b200846126ben%40googlegroups.com.

Christian Kohlöffel

unread,
Dec 10, 2020, 4:18:34 PM12/10/20
to dxf2gco...@googlegroups.com

I just see it now. You use python 3.8. This is not supported please read the README …..

 

 

Von: dxf2gco...@googlegroups.com [mailto:dxf2gco...@googlegroups.com] Im Auftrag von Martin Bitz
Gesendet: Donnerstag, 10. Dezember 2020 18:43
An: dxf2gcode-users <dxf2gco...@googlegroups.com>
Betreff: [dxf2gcode-users] problems with dxf2gcode

 

Hello.

--

Martin Bitz

unread,
Dec 10, 2020, 5:21:45 PM12/10/20
to dxf2gcode-users
Hello Christian.

Thank you for the hint.
As dxf2gcode was installed by the provided package manager of Kubuntu, I thought that all dependencies are fulfilled.
I will read the README and hope that I will be able to get dxf2gcode running.

Martin
Reply all
Reply to author
Forward
Message has been deleted
0 new messages