Kicad command prompt error

Hello,

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:
C:\Users\User\Documents\KiCad\6.0>Pnlz.py
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\site.py”, line 73, in
import os
File “C:\Program Files\KiCad\6.0\bin\lib\os.py”, line 29, in
from _collections_abc import _check_methods
File “C:\Program Files\KiCad\6.0\bin\lib_collections_abc.py”, 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 __collections_abc.py and what is it trying to do with type(list[int]) and how to resolve it?

Invoke your pnlz.py script by putting python in front of it.

python pnlyz.py

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.