Issue #52 resolved

Error when exporting Gerbers

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/Razen.app/Contents/Resources/lib/python2.7/rzn/ui/menus.py", line 176, in runplugin
  File "/Applications/Razen.app/Contents/Resources/plugin/export/gerber/gerber.py", line 277, in main
  File "/Applications/Razen.app/Contents/Resources/plugin/export/gerber/gerber.py", line 281, in batchMain
  File "/Applications/Razen.app/Contents/Resources/plugin/export/gerber/gerber.py", line 264, in save
  File "/Applications/Razen.app/Contents/Resources/plugin/export/gerber/gerber.py", line 174, in _render
  File "/Applications/Razen.app/Contents/Resources/plugin/export/gerber/rasterise.py", line 59, in rasterise
  File "/Applications/Razen.app/Contents/Resources/plugin/export/gerber/rasterise.py", 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