@devbisme I had Kicost installed and working. I had to re-install windows. After I did I installed Kicost the same way I did before, using WinPython installer and pip. Unfortunately now Kicost is broken. I am now using the newest Kicost build 0.1.22 because that is what pip installed naturally.
I ran “kicost -i MyFIle.xml” and the error printout is:
It is an infinite loop error, I had to printscreen to even see what it says. Unfortunately it doesn’t seem to give much insight to the problem, at least not to my eyes.
Any ideas?
My bet is you’re running Python 2.7. You’ll need the -s flag to put kicost into single-process mode. (By default, kicost runs multiple processes to scrape websites faster. However, it only works with Python 3.)
I tried that. However I just wasn’t patient enough the first time, because it worked. When I was trying it out before I only had one part with a manf# field, so it was quick. I assumed waiting 20 seconds that something was wrong. Everything is working fine!
I am assuming that Python 3 speeds things up quite a bit?
Yeah, I’m working on putting a progress bar in kicost.
Multiprocessing speeds it up quite a bit because the main delay is waiting for the distributor websites to send their pages. Getting all the page accesses going in parallel reduces that wait.
1 Like