Unable to get KiCost working

I have been trying to get KiCost working and have failed.
It appears to run however I receive the message "Part [‘n’] not found at ‘supplier’ and it seems to abort with
rt]Traceback (most recent call last):
File “C:\Python27\Scripts\kicost-script.py”, line 9, in
load_entry_point(‘kicost==0.1.40’, ‘console_scripts’, ‘kicost’)()
File “C:\Python27\lib\site-packages\kicost-0.1.40-py2.7.egg\kicost_main_.py”, line 177, in main
scrape_retries=args.retries)
File “C:\Python27\lib\site-packages\kicost-0.1.40-py2.7.egg\kicost\kicost.py”, line 161, in kicost
id, url, part_num, price_tiers, qty_avail = result.get()
File “C:\Python27\lib\multiprocessing\pool.py”, line 567, in get
raise self._value
TypeError: ‘instancemethod’ object has no attribute ‘getitem

Could anyone help with the error please?

Do you have a part ‘n’ in your BOM?

Hi sorry for the lack of information in my first post, my BOM has manf# and the field hold the manufacturers part number.

I have tried a couple of different projects and both fail for the same reason…

Hi Joan, I figured it out the what was throwing the error but unsure of the actual root cause.
It was a part number for a 2.2uF capacitor C0805C225K4RACTU in the xml file.

I started commenting out sections of the xml file until the problem went away and narrowed it down that way.

By replacing the part with an alternative is now runs. :slight_smile:

@devbisme might be interested to hear that. Might want your BOM file…

We improve a lot KiCost since Nov/17, let we now if this kind of error still. I add same verifications and warnings to guide the user and avoid abrupt exits.