yaqwsx / KiKit

Automation tools for KiCAD
https://yaqwsx.github.io/KiKit
MIT License
1.53k stars 201 forks source link

kikit kicad8 installation error #647

Closed greenscreenflicker closed 7 months ago

greenscreenflicker commented 8 months ago

Prerequisites

KiKit version

current/master

KiCAD version

8.0.0

Operating system

windows

Description

when trying to install, kikit cannot be found from kicad console.

Steps to Reproduce

  1. Install KiCad 8.0.0 using the windows installer
  2. Open kicad terminal
  3. install Kikit using pip install git+https://github.com/yaqwsx/KiKit@master
  4. Try to execute "kikit --version" -> KiKit cannot be found
yaqwsx commented 8 months ago

Try running python -mkikit.ui --version instead. It is possible that KiCAD 8 on Windows doesn't include Python entry points in PATH:

greenscreenflicker commented 8 months ago

works for now. Thanks. How to fix this for average joe?

yaqwsx commented 8 months ago

You have to modify the PATH variable or report bug in Windows packaging of KiCAD.

greenscreenflicker commented 8 months ago

Bug reported to KiCAD https://gitlab.com/kicad/code/kicad/-/issues/17156

yaqwsx commented 7 months ago

Based on comments in KiCAD repository this is resolved and it will be a part of the next patch release. Closing.

SimonMerrett commented 5 months ago

@yaqwsx I've just used pip install kikit on KiCad 8.0.2 (upgraded from 8.0.0 this morning). I did not have kikit on 8.0.0. I get the warning

 WARNING: The script markdown2.exe is installed in 'C:\Users\name\Documents\KiCad\8.0\3rdparty\Python311\Scripts' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
  WARNING: The scripts kikit-info.exe and kikit.exe are installed in 'C:\Users\name\Documents\KiCad\8.0\3rdparty\Python311\Scripts' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.

and kikit --help gets the response 'kikit' is not recognized as an internal or external command, operable program or batch file. So I don't think it's fixed in the 8.0.2 patch on Win10.

I changed the Path variable under 'User variables for [myUsername]' in System Properties->Environment Variables to %USERPROFILE%\Documents\KiCad\8.0\3rdparty\Python311\Scripts. Then I reopened Kicad 8.0 Command Prompt and kikit --help returned the expected results. Thanks for the workaround in the meantime.