IPC Python Plugin Loading Broken in Windows
Description
When updating an plugin to the new plugin format (plugin.json, requirements.txt etc), the addon fails to load. It still works when loading it the KiCad 8 way.
Discussion on this issue: https://forum.kicad.info/t/kicad-9-0-0-rc1-python-api/57236
Steps to reproduce
- Put the addon in
Documents\KiCad\9.0\3rdparty\plugins
orDocuments\KiCad\9.0\scripting\plugins
- Restart Kicad
There are two issues with loading it:
- The identifier apparently can be anything, but KiCad complains if it is not the same as the parent folder name:
- If the identifier matches the folder name, KiCad stops complaining, but nothing is loaded and no icon appears to launch the addon
Plugins to reproduce this issue:
- The official examples: https://gitlab.com/kicad/code/kicad-python/-/tree/main/examples
- This branch of my coil generator: https://github.com/DIaLOGIKa-GmbH/kicad-coil-creator/tree/16c51f8456bcb75b243d3ad58a6ab0601c7a1ed1
KiCad Version
Application: KiCad x64 on x64
Version: 9.0.0-rc1-273-g6c43c25b4c, release build
Libraries:
wxWidgets 3.2.6
FreeType 2.13.3
HarfBuzz 10.0.1
FontConfig 2.15.0
libcurl/8.10.1-DEV Schannel zlib/1.3.1
Platform: Windows 11 (build 22631), 64-bit edition, 64 bit, Little endian, wxMSW
OpenGL: ATI Technologies Inc., Radeon RX 580 Series, 4.6.0 Compatibility Profile Context 24.9.1.240813
Build Info:
Date: Jan 1 2025 06:17:19
wxWidgets: 3.2.6 (wchar_t,wx containers)
Boost: 1.86.0
OCC: 7.8.1
Curl: 8.10.1-DEV
ngspice: 43
Compiler: Visual C++ 1942 without C++ ABI
KICAD_IPC_API=ON
Locale:
Lang: de_DE
Enc: UTF-8
Num: 1.234,5
Encoded кΩ丈: D0BACEA9E4B888 (sys), D0BACEA9E4B888 (utf8)