I am running the latest Windows nightlty (2016-11-30 revision 6d6542e) and I am trying to use the footprint wizards but I am confused as to why only some of the footprint generators are showing.
The directory C:\Program Files\KiCadNightly\share\kicad\scripting\plugins contains:
bga_wizard.py
circular_pad_array_wizard.py
FootprintWizardDrawingAids.py
FPC_(SMD_type)_footprintwizard.py
HelpfulFootprintWizardPlugin.py
PadArray.py
qfn_wizard.py
qfp_wizard.py
qrcodeFP.py
sdip_wizard.py
touch_slider_wizard.py
uss39_barcode.py
zip_wizard.py
init.py
But when I open up the Footprint Generators list in the Footprint Wizard I only see:
BGA
Circular Pad Array
FPC (SMT connector)
QFN
QFP
I edited bga_wizard.py and change the name “BGA” into “BGA!” inside that script and then in the Footprint Genrators dialog the changed BGA! name shows up. So as far as I can tell KiCad is looking at the right path and loading the wizards from that directory.
So why are the other wizards not shown in the Footprint Generators list? How can use the other footprint wizards?
Having the same problem on OS X. This is my ‘plugins’ directory which is in
/Applications/Kicad/kicad.app/Contents/SharedSupport/scripting/plugins
-rwxr-xr-x 1 %%%%%%%%%%% admin 5636 Nov 24 08:04 FPC_(SMD_type)_footprintwizard.py
-rwxr-xr-x 1 %%%%%%%%%%% admin 16121 Nov 24 08:04 FootprintWizardDrawingAids.py
-rwxr-xr-x 1 %%%%%%%%%%% admin 10559 Nov 24 08:04 HelpfulFootprintWizardPlugin.py
-rwxr-xr-x 1 %%%%%%%%%%% admin 8663 Nov 24 08:04 PadArray.py
-rwxr-xr-x 1 %%%%%%%%%%% staff 4971 Dec 27 14:28 QRCodeWizard.py
-rwxr-xr-x 1 %%%%%%%%%%% admin 1 Nov 24 08:04 __init__.py
-rwxr-xr-x 1 %%%%%%%%%%% admin 3734 Nov 24 08:04 bga_wizard.py
-rwxr-xr-x 1 %%%%%%%%%%% admin 2845 Nov 24 08:04 circular_pad_array_wizard.py
-rwxr-xr-x 1 %%%%%%%%%%% admin 8445 Nov 24 08:04 qfn_wizard.py
-rwxr-xr-x 1 %%%%%%%%%%% admin 5285 Nov 24 08:04 qfp_wizard.py
-rwxr-xr-x 1 %%%%%%%%%%% admin 8939 Nov 24 08:04 sdip_wizard.py
-rwxr-xr-x 1 %%%%%%%%%%% admin 7860 Nov 24 08:04 touch_slider_wizard.py
-rwxr-xr-x 1 %%%%%%%%%%% admin 6243 Nov 24 08:04 uss39_barcode.py
-rwxr-xr-x 1 %%%%%%%%%%% admin 21733 Dec 27 17:21 xess_fp_wizard.py
-rwxr-xr-x 1 %%%%%%%%%%% admin 7856 Nov 24 08:04 zip_wizard.py
Passing sys.path to the Python console fails as follows;
Py 0.9.8
Python 2.7.10 (default, Oct 23 2015, 19:19:21)
[GCC 4.2.1 Compatible Apple LLVM 7.0.0 (clang-700.0.59.5)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
Startup script executed: /Users/johnpateman/Library/Preferences/kicad/PyShell_pcbnew_startup.py
sys.path
Traceback (most recent call last):
File "<input>", line 1, in <module>
NameError: name 'sys' is not defined
However, the BGA and QFP/QFN etc wizards all work but I would quite like to try the capacitative slider & the barcode(s) as well as the Footprint Wizard from @devbisme
(New footprint wizard)
Ok - just worked out that I need to do an import sys
first
>>> import sys
>>> sys.path
then it works.
I seem to have to repeat this each time I want access to these extra wizards though. Can I add the extra wizard paths somewhere so they are always loaded? Adding
import sys
sys.path
cd kicad.app/Contents/SharedSupport/scripting/plugins
execfile('xess_fp_wizard.py')
execfile('touch_slider_wizard.py')
execfile('uss39_barcode.py')
to my Users/&&&&&&&/Library/Preferences/kicad/PyShell_pcbnew_startup.py
file doesn’t work.