Hi All
I have loaded pycam 5 on two ubuntu 10.04 machines. I have been unable to generate any G Code from svg or dxf files. This is one of the error messages I get; Can anyone figure out what is going wrong.
Thanx
Aaron
An unexpected exception occoured: please send the text below to the developers of PyCAM. Thanks a lot!
Traceback (most recent call last):
File "/home/aaron/pycam-0.5/src/pycam/Gui/Project.py", line 3951, in generate_toolpath
self.model, toolpath_settings, callback=draw_callback)
File "/home/aaron/pycam-0.5/src/pycam/Toolpath/Generator.py", line 62, in generate_toolpath_from_settings
backend, callback)
File "/home/aaron/pycam-0.5/src/pycam/Toolpath/Generator.py", line 363, in generate_toolpath
callback)
File "/home/aaron/pycam-0.5/src/pycam/PathGenerators/EngraveCutter.py", line 92, in GenerateToolPath
line_groups = inner_sorter.get_polygons() + outer_sorter.get_polygons()
File "/home/aaron/pycam-0.5/src/pycam/Geometry/Polygon.py", line 207, in get_polygons
return
AttributeError: 'NoneType' object has no attribute 'get_polygons'
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Your 2D model triggered a small bug, that is now fixed (r1055). Please apply the following patch to fix this issue:
--- src/pycam/Geometry/Polygon.py (Revision 1054)+++ src/pycam/Geometry/Polygon.py (Revision 1055)@@ -204,7 +204,10 @@
done_polygons.extend(usable_polys)
def get_polygons(self):
- return [poly.polygon for poly in self.sorter.get_polygons()]+ if not self.sorter:+ return []+ else:+ return [poly.polygon for poly in self.sorter.get_polygons()]
class Polygon(TransformableContainer):
Alternatively you could also checkout the current development branch for PyCAM v0.5.1:
svn co https://pycam.svn.sourceforge.net/svnroot/pycam/branches/release-0.5.1 pycam-0.5.1-dev
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The 5.1 branch indeed does fix the issue, although it now appears to hang very often. Ultimately it will return to being responsive, but it is rather annoying.
Now on to trying to figure out how to set routing depth in this version.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I assume you refer to the "hang" during the startup of the toolpath generation. You are right: there are still some remaining functions that need to update the GUI while running. But this should not be different from the behaviour of v0.5. You will see it fixed in v0.6.
"Routing depth" (if I understand you correctly) should be the same as the "Max. step down" parameter (see the "Processes" tab).
cheers,
Lars
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi All
I have loaded pycam 5 on two ubuntu 10.04 machines. I have been unable to generate any G Code from svg or dxf files. This is one of the error messages I get; Can anyone figure out what is going wrong.
Thanx
Aaron
An unexpected exception occoured: please send the text below to the developers of PyCAM. Thanks a lot!
Traceback (most recent call last):
File "/home/aaron/pycam-0.5/src/pycam/Gui/Project.py", line 3951, in generate_toolpath
self.model, toolpath_settings, callback=draw_callback)
File "/home/aaron/pycam-0.5/src/pycam/Toolpath/Generator.py", line 62, in generate_toolpath_from_settings
backend, callback)
File "/home/aaron/pycam-0.5/src/pycam/Toolpath/Generator.py", line 363, in generate_toolpath
callback)
File "/home/aaron/pycam-0.5/src/pycam/PathGenerators/EngraveCutter.py", line 92, in GenerateToolPath
line_groups = inner_sorter.get_polygons() + outer_sorter.get_polygons()
File "/home/aaron/pycam-0.5/src/pycam/Geometry/Polygon.py", line 207, in get_polygons
return
AttributeError: 'NoneType' object has no attribute 'get_polygons'
Hi skinnybottom,
thanks for reporting this issue!
Your 2D model triggered a small bug, that is now fixed (r1055). Please apply the following patch to fix this issue:
Alternatively you could also checkout the current development branch for PyCAM v0.5.1:
The 5.1 branch indeed does fix the issue, although it now appears to hang very often. Ultimately it will return to being responsive, but it is rather annoying.
Now on to trying to figure out how to set routing depth in this version.
Hi Jelle,
I assume you refer to the "hang" during the startup of the toolpath generation. You are right: there are still some remaining functions that need to update the GUI while running. But this should not be different from the behaviour of v0.5. You will see it fixed in v0.6.
"Routing depth" (if I understand you correctly) should be the same as the "Max. step down" parameter (see the "Processes" tab).
cheers,
Lars