Python error generating BOM - KeyError: 'description' (solved)

I’m trying to generate a BOM using bom_html_grouped_by_value in KiCAD 4.0.1 stable. I get the following stack trace:

Error messages:
Traceback (most recent call last):
  File "C:/Program Files/KiCad/bin/scripting/plugins/bom_html_grouped_by_value.py", line 92, in <module>
    row += "</td><td>" + c.getDescription()
  File "C:/Program Files/KiCad/bin/scripting/plugins/kicad_netlist_reader.py", line 411, in getDescription
    return self.element.get("libsource", "description")
  File "C:/Program Files/KiCad/bin/scripting/plugins/kicad_netlist_reader.py", line 241, in get
    ret = child.get(elemName, attribute, attrmatch)
  File "C:/Program Files/KiCad/bin/scripting/plugins/kicad_netlist_reader.py", line 228, in get
    ret = self.attributes[attribute]
KeyError: 'description'

Any idea what’s going wrong here before I dig into the code?
Thanks

At least update to the latest version 4 release which is 4.0.7.

or possibly switch over to v5.1.2 (Completely new user interface, many new features, much better libraries, …; Drawback: old projects need to be transferred over to v5. See the forum FAQ for details)

upgrading to 4.0.7 solved the problem. Thanks
I’ll have to bite the bullet and move to 5.x one of these days when I’m not trying to get a project finished.

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.