Closed mdeweerd closed 4 years ago
I could not reproduce. I tried your XML file and a CSV with 'BVEI3027015' (kicost -wi file.csv --eda csv). Also, I am getting error when extraction your "test.log" file. Could you provide more info?
Found! (the behaviour) But it doesn't generate a error here. Appear dealing well. Could you test with the last code version here in Git? just one MANF#.xlsx
The strange is that with the XML file it is not populated all distributors, just Mouser. test.xlsx
Appear to be some different in the string of the Manufacture name, if I delete this information for your XML (the KiCost used API will match with any), I got a pretty populated spreadsheet. test.xlsx
I tried to follow the virtualenv instructions (https://xesscorp.github.io/KiCost/docs/_build/singlehtml/index.html ) but that didn't quite work.
Then I tried
pip install virtualenv
virtualenv kicost
cd kicost
. bin/activate
python setup.py develop
which kicost
shows a local path. kicost --version
stil indicates 1.1.4. running "binkicost" give:
pkg_resources.DistributionNotFound: The 'lxml>=3.7.2' distribution was not found and is required by kicost
(kicost)
I tried installing using pip install lxml
. Installing lxml failed, I need to investigate that further...
Ok I managed to set up the development environment. I needed to install some system libraries (for development), including python-devel . We also need to use python -m venv DEVVIRTUALENV
now and source "activate" in "DEVVIRTUALENV/bin/activate" .
That being done, the test case still fails with the latest git version - new log included: TEST.zip
Import fails on the following line (1.1.4, api_partinfo_kitspace.py, 293), with "inf" quantity:
I added debug information to the code, so the line number changed. The contents of some variables is shown first:
Test case. TEST.zip