No python scripting functionality in KiCad on Fedora 27

asked 2018-02-08 19:37:46 -0500

I've been trying to get python scripting to work with my installation of KiCad 4.0.7 on Fedora 27. I am using a build from the Fedora repository, and there seems to be no option to open a Python console from pcbnew (it's not in the "Tools" tab), and when I try to run any script from the internet (e.g. anything from the kicad mmccoo library https://github.com/mmccoo/kicadmmccoo), I get:

"ImportError: No module named pcbnew"

I tried reinstalling the package, updating the package, using a copr version (it says that it's the same as the stable one in the main repo). Finally, I installed the flatpak version from KiCad's vebsite, it also has the same issue.

What am I doing wrong? Apparently scripting functionality has been added to Fedora's KiCad build, according to https://bugzilla.redhat.com/show_bug.... and the fedora build's github (on Jan 11 2015), but then the version info says:

Build settings: USEWXGRAPHICSCONTEXT=OFF USEWXOVERLAY=OFF KICADSCRIPTING=OFF KICADSCRIPTINGMODULES=OFF KICADSCRIPTINGWXPYTHON=OFF KICADSCRIPTINGACTIONMENU=OFF BUILDGITHUBPLUGIN=ON KICADUSEOCE=OFF KICADSPICE=OFF

Am I doing something wrong? Is there something I could do to add the functionality to an existing installation? I don't think I'd be able to build it from source myself.

edit retag flag offensive close merge delete