forked from johnbeard/kiplot
-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
grammar for symbol and footprint library from digikey #122
Comments
Hi @ganghuang ! These files are really wrong and you should report it to the project maintainers.
I'll add some tolerance to these errors, but the files are really corrupted. |
I reported it to the original project, issues Digi-Key/digikey-kicad-library#162 and Digi-Key/digikey-kicad-library#163 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am new on using this KiBot.
After install the ver 0.11.0, I made an example yaml and change the name to myproject.kibot.yaml
Then I run
kibot -b myproject.kicad_pcb -c myproject.kibot.yaml
I got error on the
ERROR:At line 7 of
digikey-kicad-library/digikey-symbols/dk_Ferrite-Beads-and-Chips.lib
: Malformed component field (kibot.kiplot - kiplot.py:234)The library is come from digikey provided great library for lots of components at https://github.com/Digi-Key/digikey-kicad-library.
They work in my kicad 5.1.9.
So I hack in the
/home/myname/.local/lib/python3.9/site-packages/kibot/kicad/v5_sch.py
and find the line 115 is
r'([LRCBT][IN][BN])\s*' # 8 VJustify+Italic+Bold
which does not allow space between the 'C N N'.
I added \s* in between
r'([LRCBT]\s*[IN]\s*[BN])\s*' # 8 VJustify+Italic+Bold
And that pass that check.
Then the problem shows up at
DEBUG:Loading doc-lib
digikey-kicad-library/digikey-symbols/dk_Ferrite-Beads-and-Chips.dcm
(kibot.kicad.v5_sch - v5_sch.py:703)with this error message
This time it goes beyond what I can do by myself.
I opened the dcm file mentioned above, and search for the 0xae or even any non ascii char, I didn't find it.
This time the error message does not tell me what happened enough for me to figure it out.
Can you help me on this?
Or even better try to get some more sample libraries from the digikey library and test if that works?
Thanks
The text was updated successfully, but these errors were encountered: