You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "D:\PycharmProjects\edagenius\circuit_a5ff30ff-2313-45a2-8b7a-bda99cf68396.py", line 80, in
generate_svg()
File "D:\PycharmProjects\edagenius\venv\lib\site-packages\skidl\circuit.py", line 1024, in generate_svg
self.generate_netlistsvg_skin(
File "D:\PycharmProjects\edagenius\venv\lib\site-packages\skidl\circuit.py", line 721, in generate_netlistsvg_skin
part_svg[name] = part.generate_svg_component(
File "D:\PycharmProjects\edagenius\venv\lib\site-packages\skidl\part.py", line 1052, in generate_svg_component
return tool_modules[tool].gen_svg_comp(self, symtx=symtx, net_stubs=net_stubs)
File "D:\PycharmProjects\edagenius\venv\lib\site-packages\skidl\tools\kicad8\gen_svg.py", line 466, in gen_svg_comp
_, bb = draw_cmd_to_svg(cmd, tx, part, net_stubs, max_stub_len)
File "D:\PycharmProjects\edagenius\venv\lib\site-packages\skidl\tools\kicad8\gen_svg.py", line 295, in draw_cmd_to_svg
shape["effects"].get("justify", shape.get("justify", "left")).lower()
AttributeError: 'list' object has no attribute 'lower'
Expected behavior
Generate the SVG
Desktop (please complete the following information):
OS [type & version] windows
Python version Python 3.0
SKiDL version [e.g. 22] 1.2.3
Kicad 8
The text was updated successfully, but these errors were encountered:
selimbayhan
changed the title
generate_svg is not working properly in some contextsSKiDL BUG]
[SKiDL BUG]generate_svg is not working properly in some contexts
Nov 8, 2024
Describe the bug
generate_svg is not working properly in some contexts
To Reproduce
Run the below code
got the following error:
Traceback (most recent call last):
File "D:\PycharmProjects\edagenius\circuit_a5ff30ff-2313-45a2-8b7a-bda99cf68396.py", line 80, in
generate_svg()
File "D:\PycharmProjects\edagenius\venv\lib\site-packages\skidl\circuit.py", line 1024, in generate_svg
self.generate_netlistsvg_skin(
File "D:\PycharmProjects\edagenius\venv\lib\site-packages\skidl\circuit.py", line 721, in generate_netlistsvg_skin
part_svg[name] = part.generate_svg_component(
File "D:\PycharmProjects\edagenius\venv\lib\site-packages\skidl\part.py", line 1052, in generate_svg_component
return tool_modules[tool].gen_svg_comp(self, symtx=symtx, net_stubs=net_stubs)
File "D:\PycharmProjects\edagenius\venv\lib\site-packages\skidl\tools\kicad8\gen_svg.py", line 466, in gen_svg_comp
_, bb = draw_cmd_to_svg(cmd, tx, part, net_stubs, max_stub_len)
File "D:\PycharmProjects\edagenius\venv\lib\site-packages\skidl\tools\kicad8\gen_svg.py", line 295, in draw_cmd_to_svg
shape["effects"].get("justify", shape.get("justify", "left")).lower()
AttributeError: 'list' object has no attribute 'lower'
Expected behavior
Generate the SVG
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: