Kicad command prompt error


I am trying to follow this script for kikit, the last post from WebDust21 in here Is it possible to panelize different boards in to one panel? · Discussion #242 · yaqwsx/KiKit · GitHub
If I run it in KiCad 6.0 command promt I am getting the error:
Fatal Python error: init_import_size: Failed to import the site module
Python runtime state: initialized
Traceback (most recent call last):
File “C:\Program Files\KiCad\6.0\bin\lib\”, line 73, in
import os
File “C:\Program Files\KiCad\6.0\bin\lib\”, line 29, in
from _collections_abc import _check_methods
File “C:\Program Files\KiCad\6.0\bin\”, line 12, in
GenericAlias = type(list[int])
TypeError: ‘type’ object is not subscriptable

C:\Users\User\Documents\KiCad\6.0>python --version
Python 3.9.10

Can you please write what is the problem with and what is it trying to do with type(list[int]) and how to resolve it?

Invoke your script by putting python in front of it.


otherwise you most likely have an independent system python install hijacking the call as I can’t override the extension only registry pointer to it

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