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
from kiutils.kiutils.footprint import Footprint
footprint = Footprint(version='20220512', generator='mygen')
footprint.to_file("test.kicad_mod")
Traceback (most recent call last):
File "e:\etc\projects\py-pingen\pingen.py", line 8, in <module>
footprint.to_file("test.kicad_mod")
File "e:\etc\projects\py-pingen\kiutils\kiutils\footprint.py", line 854, in to_file
outfile.write(self.to_sexpr())
File "e:\etc\projects\py-pingen\kiutils\kiutils\footprint.py", line 876, in to_sexpr
expression = f'{indents}(footprint "{dequote(self.libraryLink)}"{locked}{placed}{version}{generator}'
AttributeError: 'Footprint' object has no attribute 'libraryLink'
Fix:
In footprint.py -> class Footprint() the token version is defined twice. One of them should be libraryLink, as already documented there.
The text was updated successfully, but these errors were encountered:
This MWE does throw an attribute exception:
Fix:
In
footprint.py
->class Footprint()
the tokenversion
is defined twice. One of them should belibraryLink
, as already documented there.The text was updated successfully, but these errors were encountered: