30350n / inventree_part_import

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

LCSC Part import fails #9

Closed TimGoll closed 7 months ago

TimGoll commented 7 months ago

I had the same issue as #4 and tried to run the master. I might have done something wrong when creating the package, as I never did that before. Nevertheless, when I try to run the master I get this error:

$ inventree-part-import C1525 --verbose

Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "C:\Users\tigo\scoop\apps\python\current\Scripts\inventree-part-import.exe\__main__.py", line 4, in <module>
  File "C:\Users\tigo\scoop\apps\python\current\Lib\site-packages\inventree_part_import\__init__.py", line 1, in <module>
    from .config import setup_inventree_api
  File "C:\Users\tigo\scoop\apps\python\current\Lib\site-packages\inventree_part_import\config\__init__.py", line 23, in <module>
    from ..error_helper import *
ModuleNotFoundError: No module named 'inventree_part_import.error_helper'
TimGoll commented 7 months ago

Found my issue, forgot to update the submodules. For anyone having the same problem in the future, the following command does the trick:

git submodule update --init --recursive

30350n commented 7 months ago

You can also just directly install the current version from master via pipx install git+https://github.com/30350n/inventree_part_import.git