It took me quite a while to get it to work because the installation instructions seem quite inaccurate.
The mentioned plugin paths do not match:
/Applications/kicad/Kicad/Contents/SharedSupport/scripting/plugins
This one is missing an ".app" somewhere. The correct path for the homebrew installed version would be:
/Applications/Kicad/kicad.app/Contents/SharedSupport/scripting/plugins/
~/Library/Application Support/kicad/scripting/plugins
According to the Scripting Console, this is not in the Python search path. In fact the only path outside of the application itself is:
~/Library/Python/2.7/lib/python/site-packages
Linking it to the first folder above did not work for me. It needed to be copied there so I could use it.
Save the file and press the iBOM button on the top toolbar.
The iBOM icon only showed up after imported it once manually from the Scripting Console.
If the button is not on the toolbar Tools -> External Plugins... -> Generate Interactive HTML BOM also works.
The External Plugins menu does not exist under Tools.
python2 path/to/InteractiveHtmlBom/generate_interactive_bom.py path/to/board.kicad_pcb
This will not work for most users because the KiCad modules will usually not be in the search path of the System Python interpreter:
Traceback (most recent call last):
File "InteractiveHtmlBom/generate_interactive_bom.py", line 3, in <module>
import pcbnew
ImportError: No module named pcbnew
Using the linked system Python framework inside the kicad.app also doesn't seem to work.
I'm on Version: (5.0.0-3-g5ebb6b6), release build BTW.
Short story how I made it work:
It took me quite a while to get it to work because the installation instructions seem quite inaccurate.
The mentioned plugin paths do not match:
This one is missing an ".app" somewhere. The correct path for the homebrew installed version would be:
/Applications/Kicad/kicad.app/Contents/SharedSupport/scripting/plugins/According to the Scripting Console, this is not in the Python search path. In fact the only path outside of the application itself is:
~/Library/Python/2.7/lib/python/site-packagesLinking it to the first folder above did not work for me. It needed to be copied there so I could use it.
The iBOM icon only showed up after imported it once manually from the Scripting Console.
The
External Pluginsmenu does not exist underTools.This will not work for most users because the KiCad modules will usually not be in the search path of the System Python interpreter:
Using the linked system Python framework inside the
kicad.appalso doesn't seem to work.I'm on
Version: (5.0.0-3-g5ebb6b6), release buildBTW.Short story how I made it work:
from InteractiveHtmlBom import plugin