Replies: 4 comments
-
This "F0" error is caused by changes made to the KiCad symbol format that aren't compensated for by the release version of SKiDL (1.2.1). So let's try the latest development version:
Once you install this, use one of the following statements near the start of your code to select the correct set of symbol libraries: set_default_tool(KICAD) # for KiCad 5.
set_default_tool(KICAD6) # for KiCad 6.
set_default_tool(KICAD7) # you get the idea... Give that a try and let's see what new problems arise. |
Beta Was this translation helpful? Give feedback.
-
Hi, many thanks for your swift help! Best, H |
Beta Was this translation helpful? Give feedback.
-
I didn't bump the SKiDL version number in the development branch. Is it possible you didn't actually install it because pip thought you were already up-to-date with 1.2.1?
|
Beta Was this translation helpful? Give feedback.
-
Thanks for helping! Could be, that pip didn’t actually install the development branch. Would explain it. |
Beta Was this translation helpful? Give feedback.
-
Hi,
struggling a lot with getting SKiDL running on MacOS. Installation was a piece of cake - also the integration in VScode. But it always throws me back the following error (e.g. search). Any clue how to fix this?
Best, H
Traceback (most recent call last):
File "/Users/hjorda01/Library/CloudStorage/OneDrive-Personal/03 - BCG/06 - Tier 1s/10 - GenAI PCB/01 - GenAIPCB/GenAIPCB.py", line 6, in
search("opamp")
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/skidl/part_query.py", line 130, in search_parts
for part in search_parts_iter(terms, tool):
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/skidl/part_query.py", line 106, in search_parts_iter
lib = SchLib(
^^^^^^^
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/skidl/schlib.py", line 88, in init
tool_modules[tool].load_sch_lib(
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/skidl/tools/kicad/kicad.py", line 93, in load_sch_lib
v6.load_sch_lib(lib, f, filename, lib_search_paths_)
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/skidl/tools/kicad/v6.py", line 71, in load_sch_lib
parent_part = self[item[1]]
~~~~^^^^^^^^^
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/skidl/schlib.py", line 209, in getitem
return list_or_scalar(self.get_parts_by_name(id))
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/skidl/schlib.py", line 203, in get_parts_by_name
part.parse(partial_parse)
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/skidl/part.py", line 397, in parse
tool_modules[self.tool].parse_lib_part(self, partial_parse)
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/skidl/tools/kicad/kicad.py", line 110, in parse_lib_part
v6.parse_lib_part(part, partial_parse)
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/skidl/tools/kicad/v6.py", line 216, in parse_lib_part
self.ref_prefix = self.fields["F0"] # Part ref prefix (e.g., 'R').
~~~~~~~~~~~^^^^^^
KeyError: 'F0'
Beta Was this translation helpful? Give feedback.
All reactions