Unable to install in Kicad 9.05
Prerequisites
- [x] I have read FAQ
- [x] I have searched existing issues (including closed ones)
- [x] I use KiKit at least version 1.7.2 (older version are not supported)
KiKit version
1.7.2
KiCAD version (only KiCAD 8 and 9 are supported)
9.05
Operating system
Windows
Description
In Kicad 9.05 the plugin manager only list Kikit 1.6 as available to install. I used the whl file KiKit-1.7.2-py3-none-any.whl to install from the Kicad command line. When I run kikit --help the following exception is generated:
kikit --help
Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "C:\Users\jim\Documents\KiCad\9.0\3rdparty\Python311\Scripts\kikit.exe\__main__.py", line 2, in <module>
File "C:\Users\jim\Documents\KiCad\9.0\3rdparty\Python311\site-packages\kikit\ui.py", line 2, in <module>
from kikit import (panelize_ui, export_ui, present_ui, stencil_ui,
File "C:\Users\jim\Documents\KiCad\9.0\3rdparty\Python311\site-packages\kikit\panelize_ui.py", line 7, in <module>
from kikit.panelize_ui_sections import *
File "C:\Users\jim\Documents\KiCad\9.0\3rdparty\Python311\site-packages\kikit\panelize_ui_sections.py", line 4, in <module>
from kikit import plugin
File "C:\Users\jim\Documents\KiCad\9.0\3rdparty\Python311\site-packages\kikit\plugin.py", line 10, in <module>
from kikit.panelize import Panel
File "C:\Users\jim\Documents\KiCad\9.0\3rdparty\Python311\site-packages\kikit\panelize.py", line 4, in <module>
from pcbnewTransition import pcbnew, isV6, kicad_major
File "C:\Users\jim\Documents\KiCad\9.0\3rdparty\Python311\site-packages\pcbnewTransition\__init__.py", line 22, in <module>
from .transition import *
File "C:\Users\jim\Documents\KiCad\9.0\3rdparty\Python311\site-packages\pcbnewTransition\transition.py", line 9, in <module>
import pcbnew
File "C:\Program Files\KiCad\9.0\bin\Lib\site-packages\pcbnew.py", line 12, in <module>
import _pcbnew
ImportError: DLL load failed while importing _pcbnew: The specified module could not be found.
Steps to Reproduce
From the command Kicad 9.0 command line pip install C:\Users\jim\Downloads\KiCad\KiKit-1.7.2-py3-none-any.whl
run kikit --help
For Windows . . . you have to enter the following command to install it:
pip install kikit
First, I tried installing from the PCM. Then using the Kicad command line, then the whl file. Nothing worked.
The error:
File "C:\Program Files\KiCad\9.0\bin\Lib\site-packages\pcbnew.py", line 12, in <module>
import _pcbnew
ImportError: DLL load failed while importing _pcbnew: The specified module could not be found.
Means something is broken inside the KiCAD installation. I am afraid there is nothing we can do in KiKit. The installation might be corrupted, I've seen cases when too aggressive anti-virus system prevented from loading KiCAD libraries. Or, the packaging of KiCAD 9.0.5 is broken.
Kicad 9 is working fine and other plugins that I installed for it work without issues. I have Kicad 8 installed on the same system and its installation of Kikit works fine.
Is C:\Program Files\KiCad\9.0 the path where KiCAD is really installed? What happens if you enter into the scripting console in KiCAD:
import pcbnew
pcbnew.__file__
Yes, that is where Kicad 9.0 is installed.
Here's the result of running the commands in the scripting console:
import pcbnew
pcbnew.__file__
'C:\\Program Files\\KiCad\\9.0\\bin\\Lib\\site-packages\\pcbnew.py'
The Kikit UI is present in Kicad now and I'm able to construct the command line for a panel, but when I run the command in the Kicad command window I get the same error as above.
I uninstalled and reinstalled Kicad 9.0. Still the same problem. I even uninstalled python on the system level and installed python 11.5, the same that Kicad used.