open_gerber -follow error

Issue #246 new
Martin P created an issue

Hi,

I want to import the milling layer from EAGLE to FlatCAM as a geometry object. If I understand the documentation correctly, this command should work to do just that:

open_gerber /home/.../flatcam-bottom-mill.gbr -follow 1 -outname milling

instead, I get this error:

ERROR: 'list' object has no attribute 'is_empty'
Python traceback: <type 'exceptions.AttributeError'>
  File "shapely/speedups/_speedups.pyx", line 473, in shapely.speedups._speedups.affine_transform > if geom.is_empty:
  File "shapely/speedups/_speedups.pyx", line 471, in shapely.speedups._speedups.affine_transform > cpdef affine_transform(geom, matrix):
  File "/usr/lib/python2.7/site-packages/shapely/speedups/__init__.py", line 74, in affine_transform > return _speedups.affine_transform(geom, matrix)
  File "/usr/lib/python2.7/site-packages/shapely/affinity.py", line 199, in scale > return affine_transform(geom, matrix)
  File "/opt/flatcam/camlib.py", line 1491, in scale > factor, origin=(0, 0))
  File "/opt/flatcam/camlib.py", line 854, in convert_units > self.scale(factor)
  File "/opt/flatcam/FlatCAMObj.py", line 579, in convert_units > factor = Gerber.convert_units(self, units)
  File "/opt/flatcam/FlatCAMApp.py", line 1046, in new_object > obj.convert_units(self.options["units"])
  File "/opt/flatcam/tclCommands/TclCommandOpenGerber.py", line 87, in execute > self.app.new_object("gerber", outname, obj_init)
  File "/opt/flatcam/tclCommands/TclCommand.py", line 302, in execute_call > self.output = self.execute(args, unnamed_args)
    while executing
"open_gerber /home/.../flatcam-bottom-mill.gbr -follow 1 -outname milling"

I attached the gerber file to this issue. Cheers!

Comments (2)

  1. irgendwas wasweißich

    I experienced a similar problem. I think there is a bug with the unit conversion from inch to mm.

    I found that when i import a gerber file that uses mm i can use open_gerber without any problems. However when I try to import a gerber file that uses inch i get the same error you posted.

    It's weird because i can import any gerber files via the file > open menu without that problem.

  2. Marius Stanciu

    @hker ,

    Thanks for bringing this old post up, this issue is fixed in FlatCAM beta but it still made me discover a bug in the Gerber Apertures Table that I am working on. Now it's fixed :)

    aperture-table-ok.JPG

  3. Log in to comment