Comments (4)
Thanks for the report. I'm wondering if some of your troubles are caused by homebrew installation instead of straight up downloading an official .dmg file and copying application from there.
Here is what I did for completely fresh install from official package.
mkdir -p ~/Library/Preferences/kicad/scripting/plugins
ln -s InteractiveHtmlBom ~/Library/Preferences/kicad/scripting/plugins/InteractiveHtmlBom
After this you need to reload kicad and that's it, plugin button is there in pcbnew, no tinkering in scripting console needed.
I couldn't make script work from command line though, wx would just refuse to load some dynamic library.
Looks like in newer MacOS some changes were made, including application support folder change to ~/Library/Preferences
But for the most part instructions work. I'll fix the discrepancies.
The External Plugins menu does not exist under Tools.
That's because in release build action menu option is disabled.
from interactivehtmlbom.
Thanks for the report. I'm wondering if some of your troubles are caused by homebrew installation instead of straight up downloading an official .dmg file and copying application from there.
The recipe pretty much does the same and it's still the official version, so it won't affect the compiled in paths, etc.
After this you need to reload kicad and that's it, plugin button is there in pcbnew, no tinkering in scripting console needed.
That's what I attempted at first but as you can see from the Python Console, ~/Library/Preferences
or ~/Library/Application Preferences
are not in the search path:
>>> import sys
>>> sys.path
['/Applications/Kicad/kicad.app/Contents/Frameworks/python/site-packages/wx-3.0-osx_cocoa', '/Applications/Kicad/kicad.app/Contents/Frameworks/python/site-packages/wx-3.0-osx_cocoa', '/Applications/Kicad/kicad.app/Contents/MacOS', '/Applications/Kicad/kicad.app/Contents/Frameworks/Python.framework/Versions/2.7/lib/python2.7', '/Applications/Kicad/kicad.app/Contents/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-darwin', '/Applications/Kicad/kicad.app/Contents/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac', '/Applications/Kicad/kicad.app/Contents/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac/lib-scriptpackages', '/Applications/Kicad/kicad.app/Contents/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk', '/Applications/Kicad/kicad.app/Contents/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload', '/Applications/Kicad/kicad.app/Contents/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages', '/Applications/Kicad/kicad.app/Contents/SharedSupport/scripting', '/Applications/Kicad/kicad.app/Contents/Frameworks/python/site-packages', '/vagrant/build/python-dest/Library/Frameworks/Python.framework/Versions/2.7/lib/python27.zip', '/vagrant/build/python-dest/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7', '/vagrant/build/python-dest/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-darwin', '/vagrant/build/python-dest/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac', '/vagrant/build/python-dest/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac/lib-scriptpackages', '/vagrant/build/python-dest/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk', '/vagrant/build/python-dest/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-old', '/vagrant/build/python-dest/Library/Frameworks/Python.framework/Versions/2.7/lib/lib-dynload', '/Users/egger/Library/Python/2.7/lib/python/site-packages', '.', '/Applications/Kicad/kicad.app/Contents/SharedSupport/scripting', '/Applications/Kicad/kicad.app/Contents/SharedSupport/scripting/plugins', '/Applications/Kicad/kicad.app/Contents/SharedSupport/scripting/plugins/InteractiveHtmlBom']
That's because in release build action menu option is disabled.
Well, that would be a great thing to mention then, no? ;)
from interactivehtmlbom.
It doesn't have to be in sys path, it has to be in pcbnew plugin search path. You can verify what directories pcbnew is looking at by running this from scripting console:
import pcbnew
print pcbnew.PLUGIN_DIRECTORIES_SEARCH
Well, that would be a great thing to mention then, no? ;)
That is only true for MacOS release build and some linux distributions. And it's changed recently to be default on. I can't keep track of all builds, but I'll add some wording to indicate that that menu might not be accessible.
from interactivehtmlbom.
Thanks!
from interactivehtmlbom.
Related Issues (20)
- Render holes in vias HOT 7
- Saved settings not remembering empty 'Whitelisted' board variant HOT 4
- Type Error: GetEffectiveTextShape() got an unexpected keyword argument 'aTriangulate' HOT 2
- Feature Request: Highlight the placed components. HOT 2
- Make the top bar collapsible HOT 2
- one small request. Please implement the same script for Altium designer. HOT 1
- Feature request: Quiet / no-dialog mode HOT 2
- Support for FreeCAD HOT 1
- Is there a tutorial on allegro? I'm looking forward to it! HOT 1
- How to use custom fields with Allegro HOT 3
- Problem with parsing full arc board cutouts (allegro) HOT 2
- EAGLE 9.6.2: Bottom side component incorrect orientation. HOT 3
- User Header Misalignment HOT 3
- Adding "kicad_dnp" for --show-fields creates exception in ibom.py line 166
- CLI Execution for Eagle Board Files HOT 3
- Add setup.cfg/.py and post to PyPi HOT 1
- UX issue: Mousover highlighting parts of row. HOT 1
- Show when parts are populated HOT 1
- problem with HTML BOM plug-in, when I use it on the V7.99 version HOT 2
- Feature Request: Clear all Sourced / Placed flags at once HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from interactivehtmlbom.