Kicad-cli Failed to load schematic file

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)

What does

kicad-cli version

show?

> kicad-cli version
7.0.10

Oh, I am on KiCAD 8.0.2 for my projects.
Don’t know why the CLI has not been updated.

Thank you @retiredfeline !
I see the problem is in the Windows Env. Variable Path.
I’ll change it, reboot and keep you updated.

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

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

Oh! OK.
It scares me when I forget things I did less than 5 months ago (when I started using KiCAD)! :cold_face:

That’s what paper and pen/pencil are for :wink:

Don’t worry, some day you will forget in 5 minutes that you were scared. :rofl:

1 Like

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! :rofl:

3 Likes

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