Ubuntu PPA 22.04 deb does not contain `pcbnew.py`
I've installed Kicad 8.0.0-1~ubuntu22.04.1
via the Ubuntu PPA, but no plugins are working and opening the scripting console from within pcbnew gives an error ModuleNotFoundError: No module named 'pcbnew'
. It turns out the 22.04 deb file is missing pcbnew.py
and _pcbnew.so
compared to the 24.04 deb file.
From the build logs, it seems like 22.04 is installing the Python module to:
/<<PKGBUILDDIR>>/debian/tmp/usr/local/lib/python3.10/dist-packages/pcbnew.py
while 24.04 installs to:
/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3/dist-packages/pcbnew.py
but kicad.install
only includes /usr/lib
, and not /usr/local/lib
, so the module isn't getting packaged in the end I guess. I'm not sure why the path is different for 22.04 vs 24.04, and I've not checked the other builds (20.04, 23.10).