hildogjr / KiCost

Build cost spreadsheet for a KiCad project.
MIT License
494 stars 97 forks source link

Time data format leads to error in KiCost GUI #496

Closed jalinei closed 3 years ago

jalinei commented 3 years ago

Hi everyone,

Thanks for this amazing project ! I'm experiencing an issue using the GUI.

When Kicosting my Bom file, it returns me the following : Starting cost processing ... ERROR:Internal error: time data 'Wed May 26 18:00:22 2021' does not match format '%a %b %d %H:%M:%S %Y' (kicost - kicost_gui.py:149)

I'm not placing any extra commands. I'm using the last version from the Git repo : KiCost v1.1.5

Do you have an idea of what could lead to this kind of issue ?

Kind regards, Jean

set-soft commented 3 years ago

Hi @Light411 !

Please try running KiCost like this: kicost --debug 10 --gui YOUR_BOM_FILE

This will tell us the point in the code where the problem was detected.

Also: Which type of file did you use? An XML from KiCad?

set-soft commented 3 years ago

I think I found the error. Please check that 538c9f4 fixes the problem

jalinei commented 3 years ago

Hey @set-soft,

Many thanks for the super quick reply, I've update KiCost with your commit and it successfully fixed the issue.

Thanks ! Jean