Kikit Installation Numpy Error

I’m trying to install Kikit on version 8.04 and I receive the following error when I run “kikit --help”.

A module that was compiled using NumPy 1.x cannot be run in
NumPy 2.0.0 as it may crash. To support both 1.x and 2.x
versions of NumPy, modules must be compiled with NumPy 2.0.
Some module may need to rebuild instead e.g. with ‘pybind11>=2.12’.

If you are a user of the module, the easiest solution will be to
downgrade to ‘numpy<2’ or try to upgrade the affected module.
We expect that some modules will need time to support NumPy 2.

I installed with “pip install kikit” in the Kicad 8.0 Command Prompt, and it looks like that installation installed Numpy 1.26.4, which is <2.

Also, when I rerun “pip install kikit” it installs Numpy again and says it is successfully installed but I still get the error message.

I had kikit installed on 8.03 and previous versions, and have never received this error before.

Any ideas?

Thanks!

Looks like it was fixed already and there should be a new KiKit release soon. If you don’t want to wait for the release there are manual installation instructions linked in that thread.

1 Like

I didn’t think to look in the closed issues, you and @yaqwsx move fast!
Thanks to both of you for all you contribute to the community.

As of 9/3/2024, this issue (NumPy 1.x) appears to still be present in both Kikit v1.6.0 and Kikit master (git+https://github.com/yaqwsx/KiKit@master) with KiCad 8.0.4 on Windows 10. I’ve tried every variation of installing, uninstalling, upgrading, reinstalling, etc KiKit.

KiKit installs with numpy-1.26.4, which presents the error that @kiki listed. I know this is still a very recent issue - is there a newer upstream branch that has the fix, or is a different fix required?

Thank you!

If anyone googles this issue, here’s the solution: KiKit breaks because of NumPy version 2 · Issue #720 · yaqwsx/KiKit · GitHub