No plugin search directory

Hello there i am using the latest release of kicad on ubuntu 18.10 and i have a problem with the pcbnew plugin paths. It does not specify a plugin seatch dir:

pcbnew.PLUGIN_DIRECTORIES_SEARCH

returns a empty list and i can not find help about how to add a search dir.

Thanks for your help!

I’ve seen this when user had 5.0 installed, then updated to 5.1 but continues to try to use python2.
Do you see different output if you try the same with python3?

I did not know kicad is now using python3. With python3 i cannot import pcbnew, there seems to be something from.

Is the pcbnew package brought with kicad itself?

EDIT: Just checked the kicad version, i am with Version: 5.0.2-bee76a0~70~ubuntu18.10.1, release build

Only 5.1 uses python3 since you are on 5.0.2 it would use python2. But on ubuntu 18 KiCad 5.0.2 had wxpython disabled which means no plugins. You should still be able to use pcbnew API but if you want plugins you should update to 5.1.

2 Likes

So i uninstalled kicad completely and installed the latest 5.1 version.

i am still getting an empty list from the python console and no plugins in pcbnew, BUT if i check for plugin search dirs in the console started from pcbnew i get a list of locations.

Any idea how to go on?

I checked the python executable which is running and it looks to be the same from the native shell and the pcbnew shell. Both are running on /usr/bin/python3

I just checked and indeed when python is run separately pcbnew.PLUGIN_DIRECTORIES_SEARCH is not initialized. It is initialized when run from pcbnew scripting console.

What is your end goal? If you need particular plugin but it doesn’t work you should troubleshoot that specifically.

Did you install one? They won’t appear on their own.

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