- Install [[https://www.kicad.org/|KiCad 7]]
- Install Python3
- Once installed, make sure to install the following libraries
- pip3 install python-osc
- pip3 install sexpdata
- Once installed, make sure to install the following libraries
- Download this repo
- First, go to
/Applications/KiCad/KiCad.app/Contents/SharedSupport/scripting/kicad\_pyshell(Windows:C:\Program Files\KiCad\7.0\share\kicad\scripting\kicad\_pyshell)- If you're on mac and confused, right click on the KiCad App to see these folders.
- Replace the
__init__.pywith the one from ecoEDA (in the folder ecoEDA/code/kicad-files/). - Change line 43-44 in
__init__.pyto reflect the location of your ecoEDA directory. For windows do the same for PyShell_eeschema_startup.py (Windows for example:self.ecoEDA_dir = "C:\\Users\\<USER_NAME>\\Desktop\\ecocad\\"self.fp_dir = "C:\\Program Files\\KiCad\\7.0\\share\\kicad\\footprints") - Via your CLI, you'll need to install a few packages in KiCad's specific Python. Go to
/Applications/KiCad/KiCad.app/Contents/Frameworks/Python.framework/Versions/3.8/bin(Windows:C:\Program Files\KiCad\7.0\bin\Scripts)
Then do :
./pip3.8 install wxPython./pip3.8 install python-osc./pip3.8 install sexpdata
(may be pip3.9 instead of pip3.8)
Then on your python in terminal, you need to install this two packages:
./pip3.8 install python-osc./pip3.8 install sexpdata
Make sure you have a KiCAD project and at least one component (e.g., R) on the schematic.
You'll need to run scripts locally (i.e. via a CLI/Terminal) and initiate a script in KiCad.
- In one CLI instance, run
client.py. You should do so with the command -python3 client.py --file <.KICAD_SCH file you are workin on> - In another CLI instance, run
server.py. You should do so with the command -python3 server.py --file <.KICAD_SCH file you are workin on>
- Last, press the PyShell button in KiCad. It's in the top right corner.


