Git Product home page Git Product logo

Comments (4)

qu1ck avatar qu1ck commented on May 27, 2024

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.

therealprof avatar therealprof commented on May 27, 2024

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.

qu1ck avatar qu1ck commented on May 27, 2024

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.

therealprof avatar therealprof commented on May 27, 2024

Thanks!

from interactivehtmlbom.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.