dxf2gcode is in debian

243 views
Skip to first unread message

Sebastian Kuzminsky

unread,
Feb 16, 2018, 12:04:39 PM2/16/18
to dxf2gcode-dev
I uploaded the package I made of dxf2gcode to Debian's git server:

https://salsa.debian.org/science-team/dxf2gcode


A helpful Debian Developer named Sébastien Villemot sponsored the
package (uploaded it to Debian's package archive), and it's now
available in sid/unstable, though it might not have propagated all the
way through the mirror system just yet:

https://packages.debian.org/dxf2gcode
https://packages.debian.org/sid/dxf2gcode

It's packaged for sid, but I verified that the package installs and runs
fine on stretch (stable).


Thanks to all the awesome dxf2gcode devs for creating this useful
software! :-)


--
Sebastian Kuzminsky

Jamtek

unread,
Feb 22, 2018, 8:03:48 PM2/22/18
to dxf2gcode-dev
Confirmed, I was able to install this with `dpkg -i` and run this in Raspbian 9 Stretch on Raspberry Pi 3b (armv71).

I plan on using RPi for CNC controller for MaslowCNC, I am in group awaiting next shipment in March,

Thanks!!!

tux...@gmail.com

unread,
Jun 17, 2018, 1:24:50 PM6/17/18
to dxf2gcode-dev


W dniu piątek, 16 lutego 2018 18:04:39 UTC+1 użytkownik Sebastian Kuzminsky napisał:

It's packaged for sid, but I verified that the package installs and runs
fine on stretch (stable).
 
--
Sebastian Kuzminsky

But the Linuxcnc installation iso is Wheezy  ...

Fuyun Ling

unread,
Mar 23, 2019, 10:42:11 PM3/23/19
to dxf2gcode-dev
Will it work on Ubuntu 18.04?

William Bucknall

unread,
May 5, 2019, 6:19:38 PM5/5/19
to dxf2gcode-dev
I assumed  that dxf2gcode would not be in Debian and installed it manually in Buster ... it just crashes on loading a dxf file.

I then found that it is in Debian so I apt install dxf2gcode in Sid

... it just crashes on loading a dxf file.

Have not tried on stretch. Does it still work?

On the Buster PC I uninstalled as much as I could then tried the your proper Debian install but it states 'No module named 'dxf2gcode.globals.six' so I can't try it.

I am trying Python 3, it must be very difficult keeping up with Python dependencies.

Yes I know this is over a year old! :)

Fuyun Ling

unread,
May 5, 2019, 10:22:43 PM5/5/19
to dxf2gcode-dev
I have no problem to install it on Debian Stretch and Ubunut 18.04.

--
--
You received this message because you subscribed to the Google
Groups-group "dxf2gcode-dev".
To post a message, send mail to dxf2gc...@googlegroups.com
To unsubscribe, send mail to dxf2gcode-de...@googlegroups.com
See http://groups.google.de/group/dxf2gcode-dev?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-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dxf2gcode-de...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

William Bucknall

unread,
May 6, 2019, 6:29:09 AM5/6/19
to dxf2gcode-dev

Thanks for your answer.

I haven't got a stretch  box, so will have to make one.
Was it recently (in the last year or so) that you installed it?

There are others on the user forum with a similar problem, even on a different OS.

I'll ask for help on the Debian list about the python problem I have created in Buster.

I have since found FreeCAM does gcode.
To unsubscribe, send mail to dxf2gc...@googlegroups.com

See http://groups.google.de/group/dxf2gcode-dev?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-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dxf2gc...@googlegroups.com.

William Bucknall

unread,
May 6, 2019, 11:25:21 AM5/6/19
to dxf2gcode-dev
Sorry I meant FreeCAD above.

I managed to get rid of the Buster install errors (deleted everything with dxf2gcode).

I then installed using :

apt install dxf2gcode

but it also just crashes on opening a simple dxf (just a circle or rectangle):
Creating configuration window
Creating configuration window
Loading file: DESIGNS/xGear Sample-iss4.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: 3
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 255 entity geometries; reduced to 255 contours; used layers: [0, 1, 2]; 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 1198, in <module>
    window
.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 191, in setNearestStPoint
    key
=lambda geo:
RuntimeError: generator raised StopIteration


The Buster uses Python 3.7.

I made a Debian Stretch installation which uses Python 3.5 and used the dxf2gcode_20170925-4_all.deb and dxf2gcode seems to work o.k. 

I have not tested the gcode yet (just a circle or rectangle).

I am assuming a  dependency issue in Buster.

Thanks
Billy

Sebastian Kuzminsky

unread,
May 6, 2019, 12:53:08 PM5/6/19
to dxf2gc...@googlegroups.com, William Bucknall
Hi all, I'm the person that made the debian package for dxf2gcode. I'll
be happy to try to help debug this problem that William Bucknell
reported, and upload a new fixed version.

When i made the original package based on 20170925 I did most of my
testing on Stretch. dxf2gcode 20170925-4 still runs fine on my Stretch
machine, for what that's worth.

Here's the crash I get when running the 20170925-4 debian package on Buster:

> $ dxf2gcode
> Creating configuration window
> No OpenGL_accelerate module loaded: No module named 'OpenGL_accelerate'
> Traceback (most recent call last):
> File "/usr/lib/python3/dist-packages/dxf2gcode/core/layercontent.py", line 157, in selected_iter
> raise StopIteration()
> StopIteration
>
> The above exception was the direct cause of the following exception:
>
> Traceback (most recent call last):
> File "/usr/lib/python3/dist-packages/dxf2gcode/gui/canvas3d.py", line 341, in paintGL
> for shape in self.shapes.selected_iter():
> RuntimeError: generator raised StopIteration
> Aborted

I get the same error when i try to run the current tip of the master
branch (also on Buster):

> $ python3 ./dxf2gcode.py
> Creating configuration window
> No OpenGL_accelerate module loaded: No module named 'OpenGL_accelerate'
> Traceback (most recent call last):
> File "/data/home/seb/cad-cam/dxf2gcode/dxf2gcode/source/dxf2gcode/core/layercontent.py", line 168, in selected_iter
> raise StopIteration()
> StopIteration
>
> The above exception was the direct cause of the following exception:
>
> Traceback (most recent call last):
> File "/data/home/seb/cad-cam/dxf2gcode/dxf2gcode/source/dxf2gcode/gui/canvas3d.py", line 340, in paintGL
> for shape in self.shapes.selected_iter():
> RuntimeError: generator raised StopIteration
> Aborted


That's all for now.


--
Sebastian Kuzminsky

Fuyun Ling

unread,
May 6, 2019, 1:06:57 PM5/6/19
to dxf2gcode-dev
Hi,
I am pretty happy with dxf2gcode on Ubuntu/VMWare.  However, I was not able to run it on my 
Windows 10.  The problem is, whenever I save a .ngc file, it always crashes.  Do you know why?  I am willing to do some testing if you tell me how.
Thanks.

--
--
You received this message because you subscribed to the Google
Groups-group  "dxf2gcode-dev".
To post a message, send mail to dxf2gc...@googlegroups.com
To unsubscribe, send mail to dxf2gcode-de...@googlegroups.com

See http://groups.google.de/group/dxf2gcode-dev?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-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dxf2gcode-de...@googlegroups.com.

William Bucknall

unread,
May 6, 2019, 1:19:33 PM5/6/19
to dxf2gcode-dev
Great, I am happy to test.

@Fuyun Ling ... new thread, I would have thought.

Thanks

Fuyun Ling

unread,
May 6, 2019, 3:33:48 PM5/6/19
to dxf2gcode-dev
Thanks.  Please let me know if it is an issue for you also.  I will be happy to open a new thread if you feel appropriate.

--
--
You received this message because you subscribed to the Google
Groups-group "dxf2gcode-dev".
To post a message, send mail to dxf2gc...@googlegroups.com
To unsubscribe, send mail to dxf2gcode-de...@googlegroups.com

See http://groups.google.de/group/dxf2gcode-dev?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-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dxf2gcode-de...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages