@devbisme ,Recently i started using kicost for a larger PCB project as i found its features to be really nice for keeping track of the projects pricing for production. So thank you very much devbisme for starting its development.
Unfortunately i ran into a repeating command line error when executing kicost on a xml file.
It seems its an error with a variable type or type conversion in the python program or python
itsself. But im lacking the knowledge for more details.
I have used the test file you provided in this thread: Kicost command line error
My system currently is:
Ubuntu 14.04.3
Kicost 0.21
Python 2.7.10
And the command line output reads:
MyPc@Room-W4:~/Downloads$ kicost -d 1 -i test.xml
Get schematic XMLâŚ
Get parts libraryâŚ
Get componentsâŚ
Get groups of identical componentsâŚ
Create HTML page for parts with custom pricingâŚ
Scrape part data for each component groupâŚ
No ânewark#â or âmanf#â field: cannot lookup part [âPM2â, âPM3â] at newark
No âdigikey#â or âmanf#â field: cannot lookup part [âPM2â, âPM3â] at digikey
---------> Not finding a lot of parts due to missing â#manfâ entry--------->
No âmouser#â or âmanf#â field: cannot lookup part [âJP9â, âJP8â, âJP5â, âJP7â, âJP6â, âJP10â, âJP4â, âTP1â] at mouser
Traceback (most recent call last):
File â/usr/local/bin/kicostâ, line 9, in
load_entry_point(âkicost==0.1.21â, âconsole_scriptsâ, âkicostâ)()
File â/usr/local/lib/python2.7/dist-packages/kicost-0.1.21-py2.7.egg/kicost/main.pyâ, line 132, in main
num_processes=num_processes)
File â/usr/local/lib/python2.7/dist-packages/kicost-0.1.21-py2.7.egg/kicost/kicost.pyâ, line 133, in kicost
for id, url, part_num, price_tiers, qty_avail in results:
File â/usr/lib/python2.7/multiprocessing/pool.pyâ, line 659, in next
raise value
TypeError: ord() expected string of length 1, but int found
Can you or somebody else please point out to me where i went wrong, or if my local python installation
messed up in any way ?
Best regards
Jens