30350n / inventree_part_import

CLI to import parts from suppliers like DigiKey, LCSC, Mouser, etc. to InvenTree
MIT License
24 stars 8 forks source link

CSV not a supported file format #6

Closed si-hb closed 5 months ago

si-hb commented 5 months ago
$ inventree-part-import parts.csv
reading parts.csv ...
error: .csv is not a supported file format
30350n commented 5 months ago

Hows the csv formatted? Can you share it?

si-hb commented 5 months ago

See attached, a single column of part numbers. The first row is a header. I couldn't find any information on the expected format.

parts.csv

30350n commented 5 months ago

Seems like tablib doesn't handle single column files. Added some code to handle this case manually now, should be fixed!