in Fedora 40. I want to make use of RF-tools-KiCAD. I cloned the repo into /home/myself/.var/app/org.kicad.KiCad/data/kicad/8.0/scripting/plugins and the new functionality is showing up in the PCB editor. When I click on the “via fence generator” I get the error
✘ ERROR Missing KiCAD 'pyclipper' python module:
please install it using pip
in your KiCAD python environment.
[You may need administrative rights]
Googling, I find that on Linux systems KiCad uses the system environment. I installed the package with pip install pyclipper, and it was installed:
$ pip list | grep pyclipper
pyclipper 1.3.0.post6
However, KiCad’s python is still unable to find it.
Thanks for confirming. If I click on that button I get an error message in a popup window:
✘ ERROR Missing KiCAD 'pyclipper' python module:
please install it using pip
in your KiCAD python environment.
[You may need administrative rights]
If I open the “KiPython” console:
Py 0.9.8
Python 3.12.7 (main, Nov 10 2011, 15:00:00) [GCC 14.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
Startup script executed: /home/msenger/.var/app/org.kicad.KiCad/config/kicad/8.0/PyShell_pcbnew_startup.py
>>>
>>> import pyclipper
Traceback (most recent call last):
File "<input>", line 1, in <module>
ModuleNotFoundError: No module named 'pyclipper'
which is expected, I guess. However, in the global system environment, I have it installed:
$ pip list | grep pyclipper
pyclipper 1.3.0.post6
$ ipython
Python 3.12.7 (main, Oct 1 2024, 00:00:00) [GCC 14.2.1 20240912 (Red Hat 14.2.1-3)]
Type 'copyright', 'credits' or 'license' for more information
IPython 8.23.0 -- An enhanced Interactive Python. Type '?' for help.
In [1]: import pyclipper
In [2]: 'It worked'
Out[2]: 'It worked'
Flatpak apps have no visibility of packages you install in your system, they are sandboxed. If installing kicad as a native app (not flatpak) is not an option then you can try to get a shell within kicad’s flatpak sandbox and installing pip package from within. If memory does not fail me it’s something like flatpak run <application id> --command /bin/bash to get the shell.
@SengerM@SteveFalco
I have just updated RF-tools w/ small fixings and I have added a pcm package…
Could you please check if this new release and package is correctly installing on your side?
@maui seems to work. I removed my old installation, downloaded the pcm, installed it with KiCad’s package manager, and was able to generate a via fence.