Nice tool, I wrote one based on the old BRD file format and found this in my quest to do less code writing and more designing. First, Python is not my forte. I've written some things in it, but cant say I'm very good at it. That being said, I'm running this in Linux (Ubuntu 16.04), I think all the libs are installed but I get the following errors when I run the code on a simple board a made last week.
Traceback (most recent call last):
File "/home/rhowlett/Dropbox/bin/kicad_scripts/kicad_picknplace_assistant.py", line 158, in
bom_table = generate_bom(pcb, filter_layer=pcbnew.F_Cu)
File "/home/rhowlett/Dropbox/bin/kicad_scripts/kicad_picknplace_assistant.py", line 127, in generate_bom
group_key = (m.GetValue(), str(m.GetFPID().GetFootprintName()))
File "/usr/lib/python2.7/dist-packages/pcbnew.py", line 4023, in
getattr = lambda self, name: swiggetattr(self, LIB_ID, name)
File "/usr/lib/python2.7/dist-packages/pcbnew.py", line 74, in swiggetattr
return swiggetattr_nondynamic(self, class_type, name, 0)
File "/usr/lib/python2.7/dist-packages/pcbnew.py", line 69, in swiggetattr_nondynamic
return object.getattr(self, name)
AttributeError: type object 'object' has no attribute 'getattr'
I'm a little lost on what its barffing on sinceAny help would be great!
Here is a little more info:
# This file was automatically generated by SWIG (http://www.swig.org).
# Version 3.0.8
First question, is the correct version of pcbnew.py?