kicad-automation-scripts
kicad-automation-scripts copied to clipboard
I was not able to run it without docker.
Hi, nice project.
I would like to run it without docker, I have all dependencies. Do you have any example on how to run it? I mean, I was not able to use the README samples to make it work. Which folder should I be to run it?
Can you give me some real command-line examples?
Hello Leandro
Could you clarify what issues you are running into? it has been a while since I have used this scripts outside of a docker container, but we currently have some CI setups that run the tools pretty successfully (in a docker container).
The examples are supposed to be run from the root of the repository, but they should also work when adding the root of the repository to the Python PATH.
Could it be the KiCad Python library is not in your path? I typically use the KiCad from js-reynaud's PPA, e.g https://launchpad.net/~js-reynaud/+archive/ubuntu/kicad-5, not the "mainline" KiCad.
Did you try defining the LANG as C.UTF-8? You can run $ export LANG=C.UTF-8 or invoke the script like this: $ LANG=C.UTF-8 python ... In my system xdotool doesn't work unless I use it. For this reason I modified the scripts to define it: os.environ['LANG'] = 'C.UTF-8' BTW if your system isn't in english defining LANG like this will switch KiCad to english, but the printer dialog will use the system wide options, making automation of this dialog really complex.
Another option: try my fork: https://github.com/INTI-CMNB/kicad-automation-scripts/
No, I didn't, but checking it now I have it already defined.
I can try to define with
C.UTF-8
if this is the idea.
I am going to test your fork too. Thanks for the suggestions.