user footprint plugins not found on OSX

Bug #1632321 reported by Jonatan Liljedahl on 2016-10-11
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
KiCad
Low
Unassigned

Bug Description

It seems user installed footprint wizard plugins are not found.

Looking at the code at https://git.launchpad.net/kicad/tree/pcbnew/pcbnew.cpp?id=ea6b03cd5ffc6a902f197d7e9b8c23838e6cee9d#n253 it should be:

~/Library/Application\ Support/kicad/scripting/plugins/

Placing any plugin there does not show up. It does if I put it directly in the installed app bundle: /Applications/Kicad/kicad.app/Contents/SharedSupport/scripting/plugins/

tags: added: osx
xzcvczx (xzcvczx) wrote :

Can you run kicad as per normal

launch pcbnew
open the console (right most button in the top toolbar)

import sys
sys.path

import os
os.environ['PYTHONPATH']

and put the results from sys.path and os.environ... into the bug

thanks

Jonatan Liljedahl (kymatica) wrote :

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/SharedSupport/scripting', '/Applications/Kicad/kicad.app/Contents/Frameworks/python/site-packages', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python27.zip', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-darwin', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac/lib-scriptpackages', '/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-old', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload', '/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC', '/Library/Python/2.7/site-packages', '.', '/Applications/Kicad/kicad.app/Contents/SharedSupport/scripting', '/Applications/Kicad/kicad.app/Contents/SharedSupport/scripting/plugins']

os.environ['PYTHONPATH']
'/Applications/Kicad/kicad.app/Contents/SharedSupport/scripting:/Applications/Kicad/kicad.app/Contents/Frameworks/python/site-packages'

Jeff Young (jeyjey) wrote :

The fact that OSX hides application content (unless you know about "Show Package Contents") makes this a bit more of a bug than a feature request.

Note that we'd also need the installer to put the bundled scripts (which are really examples more than anything else) into /Library/Application Support/kicad.

Changed in kicad:
status: New → Triaged
importance: Undecided → Low
Jeff Young (jeyjey) wrote :

@Adam, is this something we're addressing in the 6.0 installer (or perhaps it already has been)?

Hmm. I'm not sure. Do we want to put them in Application Support, and
have them be read only by default? If so, we can do that quite
easily.

On Tue, Apr 3, 2018 at 11:23 AM, Jeff Young <email address hidden> wrote:
> @Adam, is this something we're addressing in the 6.0 installer (or
> perhaps it already has been)?
>
> --
> You received this bug notification because you are subscribed to KiCad.
> Matching subscriptions: OS X KiCad bugs
> https://bugs.launchpad.net/bugs/1632321
>
> Title:
> user footprint plugins not found on OSX
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/kicad/+bug/1632321/+subscriptions

Adam Wolf (adamwolf) wrote :

Can someone test on http://downloads.kicad-pcb.org/osx/testing/kicad-unified-5.0.0-rc3-2.dmg? If not, does someone have a user-y footprint plugin I can use to test it with?

xzcvczx (xzcvczx) wrote :

/Users/<USER>/Downloads/kicad.app/Contents/SharedSupport/scripting
/Users/<USER>/Downloads/kicad.app/Contents/SharedSupport/scripting/plugins
/Users/<USER>/Library/Preferences/kicad/scripting
/Users/<USER>/Library/Preferences/kicad/scripting/plugins

are the search paths just fyi, they should probably be set to /Users/<USER>/Library/Application Support rather than .../Preferences

Seth Hillbrand (sethh) wrote :

@Adam - Did you finalize the ~/Library/Application\ Support move for these in 5.0.2? Is this fix released?

Adam Wolf (adamwolf) wrote :

I do not think this has been resolved. I have been working on Python 3
stuff as my main focus lately, but I need to put that on pause for a bit
and check up on these ongoing bugs.

On Tue, Dec 11, 2018 at 2:51 PM Seth Hillbrand <email address hidden>
wrote:

> @Adam - Did you finalize the ~/Library/Application\ Support move for
> these in 5.0.2? Is this fix released?
>
> --
> You received this bug notification because you are subscribed to KiCad.
> Matching subscriptions: OS X KiCad bugs
> https://bugs.launchpad.net/bugs/1632321
>
> Title:
> user footprint plugins not found on OSX
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/kicad/+bug/1632321/+subscriptions
>

Jeff Young (jeyjey) on 2019-03-05
Changed in kicad:
milestone: none → 6.0.0-rc1
tags: added: macos
removed: osx
tags: added: packaging
tags: added: python
Jonatan Liljedahl (kymatica) wrote :

With 5.1.4 nightly, I see that it tries to look in ~/Library/Preferences/kicad/scripting/plugins. I tried copying one of the bundled plugins and changed the class name, but couldn't get it to show up. The "Messages" tab shows that it skipped the directory?

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers