Search function not working properly? #183
Replies: 6 comments 11 replies
-
Funny thing I looked into this forum for the exact same reason just now. Also using SKiDL for the first time and struggling with the search operations. |
Beta Was this translation helpful? Give feedback.
-
I have since tried it. I tried version 6.I tried changing the KiCad version from 7 to 6, but there was no change. Exported parts from KiCadI exported the parts from KiCad and combined them into one symbol, and then I tried to incorporate it into a Python environment variable, and I was able to successfully load the parts for that symbol. from skidl import *
set_default_tool(KICAD)
symbol_path = "hardware"
lib_search_paths[KICAD].append(symbol_path)
footprint_path = "hardware/Switch_Keyboard_Hotswap_Kailh.pretty"
footprint_search_paths[KICAD].append(footprint_path)
search("1n4148") I think it is probably usable just because I can't find the part, but I haven't tried that far! |
Beta Was this translation helpful? Give feedback.
-
I am trying to test that now, but I have another error so I cannot verify it. <urlopen error unknown url type: c>
File "C:\Users\Sotono\Desktop\Python_diy_keyboard\main.py", line 11, in search_parts
skidl.search(part_name)
File "C:\Users\Sotono\Desktop\Python_diy_keyboard\main.py", line 15, in main
search_parts()
File "C:\Users\Sotono\Desktop\Python_diy_keyboard\main.py", line 19, in <module>
main()
urllib.error.URLError: <urlopen error unknown url type: c> I had to set it up again because of the new environment, but when I run |
Beta Was this translation helpful? Give feedback.
-
I thought there was something wrong with the Python installed by Scoop, so I did a clean install, but the situation did not change. As a test, I rewrote the path pointing to the C drive as the Z drive at random, and there was progress. WARNING: Could not open directory 'Z:/Program Files/KiCad/share/kicad/library' @ [C:\Users\Sotono\Desktop\Python_diy_keyboard\main.py:18=>C:\Users\Sotono\Desktop\Python_diy_keyboard\main.py:14] This proves that the path I set up is correct. I got that error because of the path, but I remember it working in a Windows environment when I touched it before. Tomorrow I will wake up in the morning and I will be in an environment other than Scoop (e.g. winget?). I will try to run Python in a non-Scoop environment (e.g., winget?) when I wake up in the morning. I will write again tomorrow if I find out something. |
Beta Was this translation helpful? Give feedback.
-
OK, I tried.
And it ran fine, no errors. |
Beta Was this translation helpful? Give feedback.
-
OK, good. Thanks for the reports and the fix. |
Beta Was this translation helpful? Give feedback.
-
Hi,There.
I am trying to use SKiDL for the first time for the first time and I am touching it with the documentation.
I stumbled on the part about finding the parts list at the beginning.
SKiDL — SKiDL
After doing this, you should see a list of opamps.
However, the actual output was as follows.
The latest version of KiCad is of course installed and environment variables are already set.
Why is the list of parts not displaying correctly?
Beta Was this translation helpful? Give feedback.
All reactions