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/kicad_mmccoo), 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.cgi?id=1364727 and the fedora build's github (on Jan 11 2015).
Am I doing something wrong? Is there anything else I could try?