After upgrading to KiCAD 7.0 I am unable to create a BOM. There error I get:
ModuleNotFoundError: No module named 'kicad_netlist_reader
My OS is Ubuntu 22.04 jammy. I used Discover to install this KiCAD as a flatpak, and in Discover I also installed all displayed KiCAD plugin options. Non that Discover offered involved BOM.
I did a system wide search for the file “kicad_netlist_reader.py”. This is the result:
So I do have this file in my system, but not in the right place. Please provide me a procedure to get this file installed in the correct place. In which directory does this file need to be?
A flatpak is sandboxed from the host system. This means that all the contents which come with it are not directly available from your normal host terminal.
From what you wrote I guess that you have a custom script somewhere that you try to run in a terminal.
Depending on your actual script, it might be possible to open a shell inside the flatpak via flatpak run --command=sh org.kicad.KiCad, and then run your custom script from there. Note though, that you will also have to specify the path to the module via PYTHONPATH or similar or it will also not be found, as can be seen in the following quick test:
$ flatpak run --command=sh org.kicad.KiCad
[📦 org.kicad.KiCad ~]$ python -c 'import kicad_netlist_reader'
Traceback (most recent call last):
File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'kicad_netlist_reader'
[📦 org.kicad.KiCad ~]$ PYTHONPATH=/app/share/kicad/plugins python -c 'import kicad_netlist_reader'
[📦 org.kicad.KiCad ~]$
I had the same problem after a complete reinstall of my system. I found an obscure instruction to use python3 instead of python to invoke the script. I made that change in the “Bill of Material” popup and it worked.
Example: