Error when exporting Gerbers

Issue #52 resolved
Guan Yang
created an issue

After exporting Gerbers successfully a few times, my project ended up in a state where it doesn't work:

Traceback (most recent call last):
  File "dist/", line 176, in runplugin
  File "/Applications/", line 277, in main
  File "/Applications/", line 281, in batchMain
  File "/Applications/", line 264, in save
  File "/Applications/", line 174, in _render
  File "/Applications/", line 59, in rasterise
  File "/Applications/", line 28, in lines_to
ValueError: range() step argument must not be zero

I have attached my project and the libraries it uses.

Comments (2)

  1. Razen repo owner

    Ah, yep, that's a bug in the gerber polygon generation. Your antenna polygon has a space value of 0 which is causing the issue. I'll fix the bug, but in the meantime you can set to space value to a small non-zero (0.01mm) value.

  2. Log in to comment