Closed HubertHQH closed 1 year ago
Thanks for the report! There was an issue with search
reported a few days ago that involved the is_url
function. Try the development
branch and see if that corrects your problem:
pip install git+https://github.com/devbisme/skidl.git@development
Thanks Dave! The development
branch addresses my issue. But when I try to generate_schematic()
, there's another exception. This is a separate issue. I will dig deeper.
Traceback (most recent call last):
File "C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\skidl\skidlbaseobj.py", line 47, in __getattr__
return self.__getattribute__("fields")[key]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^
KeyError: 'x'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\pythonProject1\schematic.py", line 25, in <module>
generate_schematic()
File "C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\skidl\circuit.py", line 1040, in generate_schematic
tool_modules[tool].gen_schematic(self, **kwargs)
File "C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\skidl\schematics\gen_schematic.py", line 619, in gen_schematic
preprocess_circuit(circuit, **options)
File "C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\skidl\schematics\gen_schematic.py", line 169, in preprocess_circuit
initialize(part)
File "C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\skidl\schematics\gen_schematic.py", line 73, in initialize
pin.pt = Point(pin.x, pin.y)
^^^^^
File "C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\skidl\skidlbaseobj.py", line 49, in __getattr__
raise AttributeError
AttributeError
Process finished with exit code 1
Are you trying to create a schematic? Are you trying to create a schematic while using KiCad 6 or 7 symbols? That won't work. Schematic creation currently only works with KiCad 5 symbol libraries.
Aha, it's KiCad 5 symbol related. Now everything is fine. Thanks Dave!
Describe the bug SKidl 1.2.0 doesn't work with the previous py files. With the old skidl, the py file can run and generate netlist successfully.
To Reproduce Steps to reproduce the behavior:
Expected behavior Netlist is generated correctly without error.
Desktop :
Additional context I also tried the example file in readme and get the same issue. But both files work with the previous version Skidl. Suspect this is environment setting issues or related to KiCad symbol version? Previous Skidl only works with Kicad 6 symbols but not K7. Any idea?