AdriZ
July 25, 2024, 9:08am
1
Hi,
I’m trying for the first time to use KiCAD Command Line.
I run it in windows 10, I tried in PowerShell and in Git CMD, I have the same result:
> kicad-cli sch export pdf .\Test3_cli.kicad_sch
Failed to load schematic file
I have the same behavior on my different projects.
Here is my minimal test project:
Test3_cli.zip (10.0 KB)
AdriZ
July 25, 2024, 9:45am
4
Oh, I am on KiCAD 8.0.2 for my projects.
Don’t know why the CLI has not been updated.
AdriZ
July 25, 2024, 9:50am
5
Thank you @retiredfeline !
I see the problem is in the Windows Env. Variable Path.
I’ll change it, reboot and keep you updated.
AdriZ
July 25, 2024, 10:24am
6
Thanks a lot, it works now!
If it can help someone, that is what I’ve done:
Win+I
Search “var”
Select “Edit the system environment variables”
Click the “Environment variables…” button
On System variables, double click on variable “Path”
Change C:\Program Files\KiCad\7.0\bin\
to C:\Program Files\KiCad\8.0\bin\
OK, OK
Reboot (probably logout then login would be enough)
I suppose it can be a little bit different if you’ve installed KiCAD for only one user (but I didn’t tested that):
Win+I
Search “var”
Select “Edit environment variables for your account”
On User variables, double click on variable “Path”
Change 7.0 to 8.0
OK, OK
Reboot
2 Likes
marekr
July 25, 2024, 2:09pm
7
Yea, you had to have added kicad to your env variables in the first place because we absolutely do not do it anywhere on purpose.
1 Like
AdriZ
July 25, 2024, 2:19pm
8
Oh! OK.
It scares me when I forget things I did less than 5 months ago (when I started using KiCAD)!
That’s what paper and pen/pencil are for
Don’t worry, some day you will forget in 5 minutes that you were scared.
1 Like
AdriZ
July 26, 2024, 8:09am
11
Yes. And forums are even better. It happened to me one time, I googled a solution for a problem on my internet router (I knew that I had this problem before), I found the reply on a forum…
And it was a topic written and replied few years before… by me!
3 Likes
system
Closed
October 24, 2024, 8:09am
12
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.