Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I was not able to run it without docker. #4

Open
leoheck opened this issue Dec 9, 2019 · 3 comments
Open

I was not able to run it without docker. #4

leoheck opened this issue Dec 9, 2019 · 3 comments

Comments

@leoheck
Copy link

leoheck commented Dec 9, 2019

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?

@seppestas
Copy link
Member

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.

@set-soft
Copy link

set-soft commented Mar 4, 2020

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/

@leoheck
Copy link
Author

leoheck commented Mar 30, 2020

No, I didn't, but checking it now I have it already defined.
image
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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants