I’m trying InteractiveHtmlBom for the first time and I got this error,
does any one knows if this is any issue with Kicad or with plugin?
Loading [...]Voices.kicad_pcb
Traceback (most recent call last):
File "InteractiveHtmlBom/InteractiveHtmlBom/generate_interactive_bom.py", line 48, in <module>
parser = get_parser_by_extension(os.path.abspath(args.file), config, logger)
File "/home/kammutierspule/.kicad/scripting/plugins/InteractiveHtmlBom/InteractiveHtmlBom/ecad/__init__.py", line 7, in get_parser_by_extension
return get_kicad_parser(file_name, config, logger)
File "/home/kammutierspule/.kicad/scripting/plugins/InteractiveHtmlBom/InteractiveHtmlBom/ecad/__init__.py", line 15, in get_kicad_parser
from .kicad import PcbnewParser
File "/home/kammutierspule/.kicad/scripting/plugins/InteractiveHtmlBom/InteractiveHtmlBom/ecad/kicad.py", line 4, in <module>
import pcbnew
File "/usr/local/lib/python2.7/dist-packages/pcbnew.py", line 38, in <module>
import _pcbnew
wx._core.wxAssertionError: C++ assertion "classTable->Get(m_className) == NULL" failed at /tmp/pip-build-Rq6oRw/wxPython/ext/wxWidgets/src/common/object.cpp(251) in Register(): Class "wxAuiNotebookXmlHandler" already in RTTI table - have you used IMPLEMENT_DYNAMIC_CLASS() multiple times or linked some object file twice)?
Maybe @qu1ck can answer you right away, but probably you should give detailed info about your system, versions and other setup. You seem to be using some Linux but python2 which is a suspicious combination (KiCad usually uses python3 on Linux, although it depends on the distro).
That stack trace shows that plugin was unable to import pcbnew module which means your kicad install is broken.
Yeah, you should compile with python3 on linux.
Python3, from the looks of it.
It may be a misleading message though, if you do have python3 installed then post your cmake configure command line and full log of the error.
It actually looks like a broken wxWidgets install.
@kammutierspule ensure you have built with wxPython/Phoenix enabled (depending on which one you want to use), and it is installed for the interpreter version you are using (e.g. you have the Python 2 version if you use Python 2). It
Sorry I know nothing much of Python world so I should be missing something
I see that I have installed “python3-wxgtk4.0” package
Phoenix I cannot find anything about it how to install it (Linux Mint here, Ubuntu/Debian based)
One more thing to try: after changing config variables to compile with python3 clear the cmake cache (delete everything in build directory to be sure).