-
Notifications
You must be signed in to change notification settings - Fork 177
manage.sh gives "invalid syntax". #434
Comments
I would use That being said, let's cut to the chase: What script are you trying to run? |
|
@evanshultz The documentation is also not really clear on what to do. So I want to make a script for a connector series. What do I need?
|
First, we can help you get the scripts running, but we expect you to be able to develop the script yourself. The info here lightly describes the framework; it's not a tutorial. So you're largely going to be on your own. There is a lot of help online for writing Python so you'll be OK. OK. So then let's start by running an existing script. Let's use https://github.com/pointhi/kicad-footprint-generator/blob/master/scripts/Connector/Connector_Samtec/conn_samtec_hle.py. (Some of the other Samtec scripts have apparently become rotten or the framework has been changed in ways that cause them not to run, at least for me.) First, we will need a YAML parser. I use Open a shell (Command Prompt or PowerShell window in Win 7) and type Once that's done, browse to the folder of the footprint generation script above and type Then you're ready to copy that python file and start modifying it to generate your new footprints or else start a new python file for your scripts but keep using the Lastly, a |
evanshultz |
Isn't the original issue here resolved? Also, I noticed #515 that suggests converting manage.sh to python to make it easier to run, so maybe this issue should be closed? |
I really see zero issue here. |
Hi all,
I'm new to the whole kicad footprint scripting. A couple of years ago I followed a course to learn the basics of python. Therefor I wanted to start creating my connector using the scripting tool.
On the launch page the is a way to install and update all depencies. When I excute this line I imidiatly get a invalid syntax message. Does anyone have an idea why?
Using python 3.7 on Windows 7 machine.
I ran a command windows in the kicad-footprint-generator-master, and typed:
python manage.sh update_dev_packages
The result is:
`File "manage.sh", line 3
if [[ "$OSTYPE" == "darwin"* ]]; then
SyntaxError: invalid syntax`
The text was updated successfully, but these errors were encountered: