I have been having some trouble compiling the repository. I have followed the instrunctions in COMILING.md but I cant get rid of this error https://forum.kicad.info/t/kicad-9-0-python-api-ipc-api/57236/45. I am running windows 10 and this is the procedure I followed:
Installed protobuf and made sure it was callable
winget install protobuf
Followed the steps in the instructions without any error (tested with both python and python3)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "D:\Escritorio\PIK\kicad-python\kipy\__init__.py", line 21, in <module>
from kipy.kicad import KiCad
File "D:\Escritorio\PIK\kicad-python\kipy\kicad.py", line 31, in <module>
from kipy.board import Board
File "D:\Escritorio\PIK\kicad-python\kipy\board.py", line 25, in <module>
from kipy.board_types import (
File "D:\Escritorio\PIK\kicad-python\kipy\board_types.py", line 26, in <module>
from kipy.proto.common.types import KIID
File "D:\Escritorio\PIK\kicad-python\kipy\proto\common\__init__.py", line 23, in <module>
from .envelope_pb2 import *
ModuleNotFoundError: No module named 'kipy.proto.common.envelope_pb2'
I have added the recursive repo dependencies as stated.
Yea so protobuf is not the nicest for API stability within it’s own domain of tools (the protocol itself is different)
Kicad is currently built on Windows with protobuf 3.21.12
to be compatible with kicad-python’s pip requirements declared version of protobuf tooling. You will most likely need the same 3.21.x version.
Though I may be remembering it slightly wrong for kicad-python. Main point is kicad-python’s has pip requirements.txt. it pins a specific version of the protobuf python library. That library is only compatible with certain protobuf compiler versions.
No, the building process ended without any error or warnings but its true that there is not much going on… I have repeated the process (from scratch) in case it gives you some additional information