Ki-nTree
Ki-nTree copied to clipboard
Problem creating a supplier from Digikey
Hello everyone,
First of all, thank you very much for the great tool! It makes a lot of work easier.
I have a problem with the integration of the TPS613222ADBVR component from Digikey. I have already been able to integrate two components, 1x a resistor and 1x a crystal.
The following errors are displayed in the PowerShell:
[MAIN] Using Digi-Key cached data for 296-50503-1-nd←[0m
←[92m[TREE] Successfully connected to InvenTree server (ENV=DEVELOPMENT)←[0m
←[93m[INFO] Warning: The following parameters were not found in supplier data:
['Current - Quiescent (Iq)']←[0m
[INFO] The following parameters are not mapped in DigiKey Corporation parameters configuration:
['ECCN', 'Function', 'Mounting Type', 'Number of Outputs', 'Output Configuration', 'Package / Case', 'Packaging', 'Synchronous Rectifier']
←[95m
[MAIN] Generating Internal Part Number←[0m
[INFO] Internal Part Number = PWR-000043-00
←[92m[INFO] Success: Added new part to InvenTree←[0m
←[93m[INFO] Warning: Image download failed (HTTP Error)←[0m
←[93m[INFO] Warning: Image download failed (HTTP Error)←[0m
Exception in thread Thread-341 (create_part):
Traceback (most recent call last):
File "C:\Users\nikol\AppData\Local\Programs\Python\Python311\Lib\threading.py", line 1038, in _bootstrap_inner
self.run()
File "C:\Users\nikol\AppData\Local\Programs\Python\Python311\Lib\threading.py", line 975, in run
self._target(*self._args, **self._kwargs)
File "C:\Users\nikol\AppData\Local\Programs\Python\Python311\Lib\site-packages\kintree\gui\views\main.py", line 1299, in create_part
new_part, part_pk, part_info = inventree_interface.inventree_create(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\nikol\AppData\Local\Programs\Python\Python311\Lib\site-packages\kintree\database\inventree_interface.py", line 598, in inventree_create
datasheet_link = inventree_api.upload_part_datasheet(inventree_part['datasheet'], part_pk)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\nikol\AppData\Local\Programs\Python\Python311\Lib\site-packages\kintree\database\inventree_api.py", line 393, in upload_part_datasheet
if not download_with_retry(datasheet_url,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\nikol\AppData\Local\Programs\Python\Python311\Lib\site-packages\kintree\common\tools.py", line 124, in download_with_retry
file = download(url, fileoutput=full_path, silent=silent, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\nikol\AppData\Local\Programs\Python\Python311\Lib\site-packages\kintree\common\tools.py", line 93, in download
(file, headers) = urllib.request.urlretrieve(url, filename=fileoutput)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\nikol\AppData\Local\Programs\Python\Python311\Lib\urllib\request.py", line 251, in urlretrieve
tfp = open(filename, 'wb')
^^^^^^^^^^^^^^^^^^^^
OSError: [Errno 22] Invalid argument: 'C:\\Users\\nikol\\kintree\\cache\\datasheets\\suppproductinfo.tsp?distId=10&gotoUrl=http%253A%252F%252Fwww.ti.com%252Flit%252Fgpn%252Ftps61322.pdf'
Edit 1: ~~Ah and by the way how can the data sheets also be downloaded and saved in InvenTree? What needs to be configured for this?~~
Edit 2: If I deactivate the upload of the data sheet to InvenTree then the component is recorded correctly.