Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash on demo during the build with KiCad-7 #40

Open
JakubAndrysek opened this issue Apr 16, 2023 · 0 comments
Open

Crash on demo during the build with KiCad-7 #40

JakubAndrysek opened this issue Apr 16, 2023 · 0 comments

Comments

@JakubAndrysek
Copy link

I have tested building demo pages with KiCad 7, but the process crashed:

Returns error:

➜  Pinion git:(main) ✗ pinion generate rendered \
    -b docs/resources/ArduinoLearningKitStarter.kicad_pcb \
    -s docs/resources/alksSpec.yml \
    --transparent \
    docs/resources/alksDemo-rendered

Traceback (most recent call last):
  File "/home/parallels/.local/bin/pinion", line 8, in <module>
    sys.exit(cli())
  File "/usr/lib/python3/dist-packages/click/core.py", line 1128, in __call__
    return self.main(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/click/core.py", line 1053, in main
    rv = self.invoke(ctx)
  File "/usr/lib/python3/dist-packages/click/core.py", line 1659, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/lib/python3/dist-packages/click/core.py", line 1659, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/lib/python3/dist-packages/click/core.py", line 1395, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/lib/python3/dist-packages/click/core.py", line 754, in invoke
    return __callback(*args, **kwargs)
  File "/home/parallels/.local/lib/python3.10/site-packages/pinion/ui.py", line 72, in wrapper
    return func(*args, **kwargs)
  File "/home/parallels/.local/lib/python3.10/site-packages/pinion/ui.py", line 142, in generateRendered
    generate(specification=yaml.load(specification),
  File "/home/parallels/.local/lib/python3.10/site-packages/pinion/generate.py", line 327, in generate
    fSource, bSource = imageGenerator(board, outputdir)
  File "/home/parallels/.local/lib/python3.10/site-packages/pinion/ui.py", line 135, in generateImages
    return generateRenderedImages(board, outputdir,
  File "/home/parallels/.local/lib/python3.10/site-packages/pinion/generate.py", line 270, in generateRenderedImages
    from pcbdraw.renderer import (RenderAction, renderBoard, Side, postProcessCrop,
  File "/home/parallels/.local/lib/python3.10/site-packages/pcbdraw/renderer.py", line 180
    raise RuntimeError("File Open Error")
IndentationError: unexpected indent

In same case it generates this image:
error

MacBook Pro M1 - Parallels Ubuntu 22

➜  Pinion git:(main) ✗ python3 -V
Python 3.10.6
➜  Pinion git:(main) ✗ pip show pcbdraw
Name: PcbDraw
Version: 1.1.2
Summary: Utility to produce nice looking drawings of KiCAD boards
Home-page: https://github.com/yaqwsx/PcbDraw
Author: Jan Mrázek
Author-email: [email protected]
License: UNKNOWN
Location: /home/parallels/.local/lib/python3.10/site-packages
Requires: click, lxml, mistune, numpy, pcbnewTransition, Pillow, pybars3, pyVirtualDisplay, pyyaml, svgpathtools
Required-by: Pinion
➜  Pinion git:(main) ✗ pip show pinion 
Name: Pinion
Version: 0.3.0
Summary: Create interactive pinout diagrams for KiCAD PCBs
Home-page: https://github.com/yaqwsx/Pinion
Author: Jan Mrázek
Author-email: [email protected]
License: UNKNOWN
Location: /home/parallels/.local/lib/python3.10/site-packages
Requires: click, pcbdraw, pcbnewTransition, ruamel.yaml
Required-by: 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant