peeter123 / digikey-api

Python module for the Digikey PartSearch API
GNU General Public License v3.0
85 stars 35 forks source link

updated to digikey v4 and python 3.12 #51

Open hurricaneJoef opened 4 months ago

eeintech commented 4 months ago

Hello @hurricaneJoef thanks for your work! Is your fork compatible with Python 3.10+ versions or is it exclusive to Python 3.12+ versions?

hurricaneJoef commented 4 months ago

I have not tested it yet on 3.10 but its not using anything specific to 3.12 or 3.11. please let me know if it does work

eeintech commented 4 months ago

Sounds good, thanks!

eeintech commented 1 month ago

@hurricaneJoef I am not able to install without the fixes in #47, would you be able to pull those in?

The error I get:

  File "/home/francois/development/Ki-nTree/kintree/search/digikey_api.py", line 3, in <module>
    import digikey
  File "/home/francois/development/Ki-nTree/.venv/lib/python3.12/site-packages/digikey/__init__.py", line 1, in <module>
    from digikey.v4.api import (keyword_search, product_details, digi_reel_pricing, suggested_parts,
  File "/home/francois/development/Ki-nTree/.venv/lib/python3.12/site-packages/digikey/v4/api.py", line 3, in <module>
    from distutils.util import strtobool
ModuleNotFoundError: No module named 'distutils'
T0jan commented 1 month ago

@eeintech @hurricaneJoef distutils can still be accessed via the setuptools package: https://stackoverflow.com/questions/77247893/modulenotfounderror-no-module-named-distutils-in-python-3-12