Skip to content
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

Where are KiCost Warning codes documented? #529

Open
craigarno opened this issue Aug 6, 2022 · 1 comment
Open

Where are KiCost Warning codes documented? #529

craigarno opened this issue Aug 6, 2022 · 1 comment
Labels
documentation Improvements need on documentation, used manual and log.

Comments

@craigarno
Copy link

When I run KiCost I get a large number of one liner WARNING codes like:

WARNING:(WC010) Warning: in R2 overwriting footprint=2512 with Footprint=USB-C Board:CSNL2512FT4L00 (kicost.edas - log.py:107)
- Mouser [api] (https://api.mouser.com/)
WARNING:(WC007) No information found at Mouser for part/s '['R7']' (kicost.distributors - log.py:107)
  ...
- Element14 [api] (https://partner.element14.com/)
WARNING:(WC015) Got 4 hits for mpn GRM1555C1H221JA01D (kicost.distributors - log.py:107)
WARNING:(WC015) Got 3 hits for mpn ZRB18AC81A106KE01L (kicost.distributors - log.py:107)
  ...
WARNING:(WC007) No information found at farnell for part/s '['D3']' (kicost.distributors - log.py:107)
WARNING:(WC004) Not valid field `desc` for purchase list at Farnell. (kicost - log.py:107)
WARNING:(WC004) Not valid field `desc` for purchase list at Newark. (kicost - log.py:107)

and I'm not sure how to interpret these codes into something actionable, like how to fix whatever I'm being warned about. My assumption is that if I'm being warned it is about something which could potentially affect output results. So it's something I'd like to fix if I can.

Issue / Problem report

  1. Add the KiCost version: KiCost v1.1.11
  2. Add a terminal error report / txt, use --debug option on KiCost call;
...
DEBUG:Digi-Key API not available (kicost.distributors - log.py:115)
DEBUG:Mouser API configured to enabled True key 6d4e3ca7-ee0b-4f03-aa28-93cf8ef6d150 path C:\Users\craig\.cache\kicost\Mouser (kicost.distributors - log.py:115)
DEBUG:Element14 API configured to enabled True key 59tg5vu5ex2ue76fweu6k3rj path C:\Users\craig\.cache\kicost\Element14 (kicost.distributors - log.py:115)
DEBUG:Octopart API configured to enabled False key dfdb0e06-3109-439f-9610-120eeb79abbd level 4 extended False (kicost.distributors - log.py:115)
DEBUG:KitSpace API configured to enabled True (kicost.distributors - log.py:115)
DEBUG:TME API configured to enabled True token a52f98fab8c9e8956aa7e3c851f2341813d086196a3d7 app_secret 70a0dd9a429cce3af48f path C:\Users\craig\.cache\kicost\TME (kicost.distributors - log.py:115)
DEBUG:Local API configured to enabled True (kicost.distributors - log.py:115)
DEBUG:Started KiCost v1.1.11 (4182a7a-2022-07-27) at Python 3.9.10 on Windows-10-10.0.19044-SP0(64bit). Graphical library: 4.1.1 msw (phoenix) wxWidgets 3.1.7. (kicost - log.py:115)
DEBUG:# Getting from XML 'USB-C PWR.xml' KiCad BoM... (kicost.edas - log.py:115)
DEBUG:Getting authorship data... (kicost.edas - log.py:115)
DEBUG:Getting parts library... (kicost.edas - log.py:115)
DEBUG:Getting components... (kicost.edas - log.py:115)
WARNING:(WC010) Warning: in R2 overwriting footprint=2512 with Footprint=USB-C Board:CSNL2512FT4L00 (kicost.edas - log.py:107)
DEBUG:# Removing do not populate parts... (kicost.edas - log.py:115)
DEBUG:Splitting subparts in the manufacture / distributors codes... (kicost.edas - log.py:115)
DEBUG:C1 >> ['manf#'] (kicost.edas - log.py:115)
DEBUG:part/qty>> GRM1555C1H221JA01D             part>>GRM1555C1H221JA01D        qty>>1 (kicost.edas - log.py:115)
DEBUG:OrderedDict([('value', '220pF 50V'), ('datasheet', '${KIPRJMOD}/../Parts/'), ('libpart', 'Device:C_Small'), ('footprint', 'Capacitor_SMD:C_0402_1005Metric_Pad0.74x0.62mm_HandSolder'), ('desc', 'CAP CER 220pF 50V 5% NP0 SMD 0402'), ('manf', 'Murata'), ('manf#', 'GRM1555C1H221JA01D'), ('manf#_qty', '1')]) (kicost.edas - log.py:115)
...
  1. Write the command used to call KiCost (or the graphical interface configuration);
    >kicost -w -i "USB-C PWR.xml" --eda kicad --include digikey --debug 8
@set-soft set-soft added the documentation Improvements need on documentation, used manual and log. label Aug 8, 2022
@set-soft
Copy link
Collaborator

set-soft commented Aug 8, 2022

Hi @craigarno !
They are documented in the code ... ;-)
Most of them are self-explanatory.

WARNING:(WC010) Warning: in R2 overwriting footprint=2512 with Footprint=USB-C Board:CSNL2512FT4L00 (kicost.edas - log.py:107)

Did you take a look at R2? I think it has two similar fields footprint and Footprint

WARNING:(WC007) No information found at Mouser for part/s '['R7']' (kicost.distributors - log.py:107)

Is just this, KiCost couldn't find info about R7 at Mouser

WARNING:(WC015) Got 4 hits for mpn GRM1555C1H221JA01D (kicost.distributors - log.py:107)
WARNING:(WC015) Got 3 hits for mpn ZRB18AC81A106KE01L (kicost.distributors - log.py:107)

Just what it says, looking for those parts we got more than one hit. Just add the distributor code of the one you want.

WARNING:(WC007) No information found at farnell for part/s '['D3']' (kicost.distributors - log.py:107)

Same as with Mouser, D3 can't be found there, solution: look for it manually and add the code.

WARNING:(WC004) Not valid field desc for purchase list at Farnell. (kicost - log.py:107)
WARNING:(WC004) Not valid field desc for purchase list at Newark. (kicost - log.py:107)

These distributors allows a desc field to be added to the purchase list, this warning means the field is empty (not even defined). So you won't get a description in the purchase info.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements need on documentation, used manual and log.
Projects
None yet
Development

No branches or pull requests

2 participants