Closed viktak closed 1 month ago
For reasons unobvious to me, the patch release of KiCAD 8.0.4 upgraded a major dependency (Numpy) to a new major release. Also, it seems that KiCAD doesn't handle this upgrade well on itself, and this error appears when you just upgraded KiCAD. Based on this answer, you should uninstall KiCAD completely and install it from scratch.
@yaqwsx based on WHAT answer? :)
Ah, I fixed the link.
I'm afraid that did not fix the issue. I just removed then reinstalled 8.0.4, and having the same issue. Would it be possible to compile KiKit with NumPy 2.0? It should solve this issue for good. (Of course I don't know how much work it would entail....)
There is no compilation of KiKit. The error message suggests a corrupted Python environment that is installed by KiCAD. This should be KiKit independent, KiKit just triggers this behavior as it tries to use NumPy.
I believe the uninstallation didn't clean up all the Python files it installed.
Ah, I see. Any idea where those files might be? After removing KiCAD, the installation folder is gone, so they may be somewhere else..
You can try running in KiCAD Command prompt: pip install --upgrade --force-reinstall kikit
. That should force pip to revisit all versions of packages and hopefully bring them into a consistent versions.
hah! This worked!!!! Here is the proof:
D:\Documents\KiCAD\8.0>pip install --upgrade --force-reinstall kikit
Defaulting to user installation because normal site-packages is not writeable
Collecting kikit
Using cached KiKit-1.6.0-py3-none-any.whl.metadata (5.7 kB)
Collecting click>=7.1 (from kikit)
Using cached click-8.1.7-py3-none-any.whl.metadata (3.0 kB)
Collecting commentjson>=0.9 (from kikit)
Using cached commentjson-0.9.0-py3-none-any.whl
Collecting markdown2>=2.4 (from kikit)
Downloading markdown2-2.5.0-py2.py3-none-any.whl.metadata (2.2 kB)
Collecting numpy (from kikit)
Downloading numpy-2.0.1-cp311-cp311-win_amd64.whl.metadata (60 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 60.9/60.9 kB 3.2 MB/s eta 0:00:00
Collecting pcbnewTransition<=0.5,>=0.4.1 (from kikit)
Using cached pcbnewTransition-0.4.1-py3-none-any.whl.metadata (1.1 kB)
Collecting pybars3>=0.9 (from kikit)
Using cached pybars3-0.9.7-py3-none-any.whl
Collecting shapely>=2.0.3 (from kikit)
Downloading shapely-2.0.5-cp311-cp311-win_amd64.whl.metadata (7.2 kB)
Collecting solidpython>=1.1.2 (from kikit)
Using cached solidpython-1.1.3-py3-none-any.whl.metadata (1.4 kB)
Collecting colorama (from click>=7.1->kikit)
Using cached colorama-0.4.6-py2.py3-none-any.whl.metadata (17 kB)
Collecting lark-parser<0.8.0,>=0.7.1 (from commentjson>=0.9->kikit)
Using cached lark_parser-0.7.8-py2.py3-none-any.whl
Collecting PyMeta3>=0.5.1 (from pybars3>=0.9->kikit)
Using cached PyMeta3-0.5.1-py3-none-any.whl
Collecting PrettyTable==0.7.2 (from solidpython>=1.1.2->kikit)
Using cached prettytable-0.7.2-py3-none-any.whl
Collecting euclid3<0.2.0,>=0.1.0 (from solidpython>=1.1.2->kikit)
Using cached euclid3-0.1-py3-none-any.whl
Collecting ply<4.0,>=3.11 (from solidpython>=1.1.2->kikit)
Downloading ply-3.11-py2.py3-none-any.whl.metadata (844 bytes)
Collecting pypng<0.0.20,>=0.0.19 (from solidpython>=1.1.2->kikit)
Using cached pypng-0.0.19-py3-none-any.whl
Using cached KiKit-1.6.0-py3-none-any.whl (252 kB)
Using cached click-8.1.7-py3-none-any.whl (97 kB)
Downloading markdown2-2.5.0-py2.py3-none-any.whl (47 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 47.2/47.2 kB 2.3 MB/s eta 0:00:00
Using cached pcbnewTransition-0.4.1-py3-none-any.whl (6.9 kB)
Downloading shapely-2.0.5-cp311-cp311-win_amd64.whl (1.4 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.4/1.4 MB 9.2 MB/s eta 0:00:00
Downloading numpy-2.0.1-cp311-cp311-win_amd64.whl (16.6 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 16.6/16.6 MB 11.1 MB/s eta 0:00:00
Using cached solidpython-1.1.3-py3-none-any.whl (2.7 MB)
Using cached ply-3.11-py2.py3-none-any.whl (49 kB)
Using cached colorama-0.4.6-py2.py3-none-any.whl (25 kB)
Installing collected packages: pypng, PyMeta3, PrettyTable, ply, lark-parser, euclid3, solidpython, pybars3, pcbnewTransition, numpy, markdown2, commentjson, colorama, shapely, click, kikit
Attempting uninstall: pypng
Found existing installation: pypng 0.0.19
Uninstalling pypng-0.0.19:
Successfully uninstalled pypng-0.0.19
Attempting uninstall: PyMeta3
Found existing installation: PyMeta3 0.5.1
Uninstalling PyMeta3-0.5.1:
Successfully uninstalled PyMeta3-0.5.1
Attempting uninstall: PrettyTable
Found existing installation: prettytable 0.7.2
Uninstalling prettytable-0.7.2:
Successfully uninstalled prettytable-0.7.2
Attempting uninstall: ply
Found existing installation: ply 3.11
Uninstalling ply-3.11:
Successfully uninstalled ply-3.11
Attempting uninstall: lark-parser
Found existing installation: lark-parser 0.7.8
Uninstalling lark-parser-0.7.8:
Successfully uninstalled lark-parser-0.7.8
Attempting uninstall: euclid3
Found existing installation: euclid3 0.1
Uninstalling euclid3-0.1:
Successfully uninstalled euclid3-0.1
Attempting uninstall: solidpython
Found existing installation: solidpython 1.1.3
Uninstalling solidpython-1.1.3:
Successfully uninstalled solidpython-1.1.3
Attempting uninstall: pybars3
Found existing installation: pybars3 0.9.7
Uninstalling pybars3-0.9.7:
Successfully uninstalled pybars3-0.9.7
Attempting uninstall: pcbnewTransition
Found existing installation: pcbnewTransition 0.4.1
Uninstalling pcbnewTransition-0.4.1:
Successfully uninstalled pcbnewTransition-0.4.1
Attempting uninstall: markdown2
Found existing installation: markdown2 2.4.13
Uninstalling markdown2-2.4.13:
Successfully uninstalled markdown2-2.4.13
Attempting uninstall: commentjson
Found existing installation: commentjson 0.9.0
Uninstalling commentjson-0.9.0:
Successfully uninstalled commentjson-0.9.0
Attempting uninstall: colorama
Found existing installation: colorama 0.4.6
Uninstalling colorama-0.4.6:
Successfully uninstalled colorama-0.4.6
Attempting uninstall: shapely
Found existing installation: shapely 2.0.3
Uninstalling shapely-2.0.3:
Successfully uninstalled shapely-2.0.3
Attempting uninstall: click
Found existing installation: click 8.1.7
Uninstalling click-8.1.7:
Successfully uninstalled click-8.1.7
Attempting uninstall: kikit
Found existing installation: KiKit 1.6.0
Uninstalling KiKit-1.6.0:
Successfully uninstalled KiKit-1.6.0
Successfully installed PrettyTable-0.7.2 PyMeta3-0.5.1 click-8.1.7 colorama-0.4.6 commentjson-0.9.0 euclid3-0.1 kikit-1.6.0 lark-parser-0.7.8 markdown2-2.5.0 numpy-1.26.4 pcbnewTransition-0.4.1 ply-3.11 pybars3-0.9.7 pypng-0.0.19 shapely-2.0.5 solidpython-1.1.3
D:\Documents\KiCAD\8.0>kikit --help
Usage: kikit [OPTIONS] COMMAND [ARGS]...
Options:
--version Show the version and exit.
--help Show this message and exit.
Commands:
drc Validate design rules of the board
export Export KiCAD boards
fab Export complete manufacturing data for given fabrication houses
modify Modify board items
panelize Panelize boards
present Prepare board presentation
separate Separate a single board out of a multi-board design.
stencil Create solder paste stencils
D:\Documents\KiCAD\8.0>
Prerequisites
KiKit version
1.6.0
KiCAD version
8.0.4
Operating system
Windows 11 Pro
Description
Hello there and thanks for this plugin - been using it for quite some time. Today I updated to the latest version (1.6.0) and ever since it wouldn't work with the latest version of KiCAD (8.0.4). I installed it using the usual method described on the home page:
When I test the installation, I get the following error:
Steps to Reproduce
Just install it using the instructions above.
It may be related to issue #706, but I'm not sure...