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

ibom generation has broken #8

Closed
richardbarlow opened this issue Apr 25, 2022 · 3 comments
Closed

ibom generation has broken #8

richardbarlow opened this issue Apr 25, 2022 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@richardbarlow
Copy link

Something has changed in the last 3 days (time since last successful build using KiBot in GitHub Actions) that has broken ibom generation:

DEBUG:Doing Interactive BoM (kibot - out_ibom.py:141)
DEBUG:Running: ['generate_interactive_bom.py', '/github/workspace/gpwdev/gpwdev.kicad_pcb', '--dest-dir', '/github/workspace/output/gpwdev', '--no-browser', '--bom-view', 'left-right', '--checkboxes', 'Sourced,Placed', '--extra-data-file', '/github/workspace/gpwdev/gpwdev.xml', '--extra-fields', 'MPN,SPN', '--include-nets', '--include-tracks', '--layer-view', 'FB', '--name-format', 'ibom', '--sort-order', 'C,R,L,D,U,Y,X,F,SW,A,~,HS,CNN,J,P,NT,MH'] (kibot - out_ibom.py:176)
ERROR:Failed to create BoM, error 1 (kibot - out_ibom.py:184)
DEBUG:Output from command: Loading /github/workspace/gpwdev/gpwdev.kicad_pcb
Traceback (most recent call last):
  File "/usr/bin/generate_interactive_bom.py", line 71, in <module>
    ibom.main(parser, config, logger)
  File "/usr/lib/python3/dist-packages/InteractiveHtmlBom/core/ibom.py", line 331, in main
    pcbdata, components = parser.parse()
  File "/usr/lib/python3/dist-packages/InteractiveHtmlBom/ecad/kicad.py", line 716, in parse
    "fabrication": self.parse_drawings_on_layers(
  File "/usr/lib/python3/dist-packages/InteractiveHtmlBom/ecad/kicad.py", line 360, in parse_drawings_on_layers
    for drawing in self.parse_drawing(d[1]):
  File "/usr/lib/python3/dist-packages/InteractiveHtmlBom/ecad/kicad.py", line 325, in parse_drawing
    result.append(self.parse_dimension(d))
  File "/usr/lib/python3/dist-packages/InteractiveHtmlBom/ecad/kicad.py", line 296, in parse_dimension
    for s in d.GetShapes():
TypeError: 'SwigPyObject' object is not iterable
 (kibot - out_ibom.py:186)

There have been no changes to the gpwdev.kicad_pcb file since the last successful build.

@set-soft set-soft self-assigned this Apr 25, 2022
@set-soft set-soft added the bug Something isn't working label Apr 25, 2022
@set-soft
Copy link
Member

Hi @richardbarlow !
I updated iBoM to fix a bug. I pulled some extra changes that worked for my tests, but looks like they needs adjusts.

@set-soft
Copy link
Member

set-soft commented Apr 25, 2022

It was triggered by a dimension on the Edge.Cuts.
I fixed iBoM package
Thanks for reporting!

@set-soft set-soft transferred this issue from INTI-CMNB/KiBot Apr 25, 2022
@richardbarlow
Copy link
Author

Fantastic. Thanks for the quick fix. Confirmed all working at my end 😁

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants