BOM script ImportError

Hi I’m trying to generate a bom file with this script that worked fine to me in previous releases of kicad. But after update to 5.0 it is broken.

In build settings there is KICAD_SCRIPTING_WXPYTHON=OFF
That is the reason why i can’t use the script? Or there is something else?

Run command:
python2.7 "/usr/lib/kicad/plugins/" "/home/g/Drive/a/k/PCB/v2/k_v2.xml" "/home/g/Drive/a/k/PCB/v2/k_v2.CSV"

Command error. Return code 1
Error messages:
Traceback (most recent call last):
  File "/usr/lib/kicad/plugins/", line 19, in <module>
    import kicad_netlist_reader
ImportError: No module named kicad_netlist_reader

Kicad Version

Application: kicad
Version: 5.0.0-rc2-unknown-0e3be57~65~ubuntu16.04.1, release build
    wxWidgets 3.0.2
    libcurl/7.47.0 OpenSSL/1.0.2g zlib/1.2.8 libidn/1.32 librtmp/2.3
Platform: Linux 4.13.0-45-generic x86_64, 64 bit, Little endian, wxGTK
Build Info:
    wxWidgets: 3.0.2 (wchar_t,wx containers,compatible with 2.8) GTK+ 2.24
    Boost: 1.58.0
    OpenCASCADE Community Edition: 6.8.0
    Curl: 7.47.0
    Compiler: GCC 5.4.0 with C++ ABI 1009

Build settings:

Something else.

It can’t find the file “”. That file needs to be in the python search path, maybe /usr/bin/scripting/plugins or similar in Linux?

1 Like

For some reason the whole usr/lib/kicad/plugins directory was empty… so wasn’t present.

I have copyed the from an other computer and all is working again.

Had the same problem after upgrading my KiCAD to 5.0-RC2. The Python scripts are not included in the compilation output. I copied them manually from the sources.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.