You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I found that some parts from LCSC doesn't have parameters paramVOList which crashing Ki-nTree:
[MAIN] LCSC search for C2997275
Future exception was never retrieved
future: <Future finished exception=KeyError('paramVOList')>
Traceback (most recent call last):
File "C:\Python\Python311\Lib\concurrent\futures\thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\KSM\kintree\env\Lib\site-packages\flet_core\page.py", line 528, in wrapper
handler(*args)
File "C:\KSM\kintree\env\Lib\site-packages\kintree\gui\views\main.py", line 330, in run_search
part_supplier_info = inventree_interface.supplier_search(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\KSM\kintree\env\Lib\site-packages\kintree\database\inventree_interface.py", line 480, in supplier_search
part_info = lcsc_api.fetch_part_info(part_number)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\KSM\kintree\env\Lib\site-packages\kintree\search\lcsc_api.py", line 99, in fetch_part_info
forparameterin range(len(part[parameter_key])):
~~~~^^^^^^^^^^^^^^^
KeyError: 'paramVOList'
Another connector even if has paramVOList also causing problems with part creation:
[MAIN] Using LCSC cached data for C2916457
[TREE] Successfully connected to InvenTree server (ENV=DEVELOPMENT)
[INFO] Warning: The following parameters were not found in supplier data:
['Frequency - Max', 'Locking Feature', 'Fastening Type', 'Locking system', 'Mated Stacking Heights', 'Mounting Type', 'Electrical mounting', 'Number of Contacts', 'Number of Positions', 'Number of pins', 'Number of Rows', 'Connector pinout layout', 'Orientation', 'Spatial orientation', 'Height Above Board', 'Insulation Height', 'Height', 'Pitch', 'Pitch - Mating', 'Contacts pitch', 'Gender', 'Kind of connector', 'Current rating', 'Rated voltage', 'Operating Temperature', 'Operating temperature']
[INFO] The following parameters are not mapped in LCSC parameters configuration:
['Contact Material', 'Contact Plating', 'LED', 'Mounting Style', 'Number of Ports', 'Operating Temperature Range', 'Soldering Temperature(Max)']
[TREE] Error: Part creation failed. Check if Ki-nTree settings match InvenTree part settings.
[MAIN] Downloading Datasheet
[INFO] Warning: PDF download returned the wrong file type
[INFO] Warning: PDF download returned the wrong file type
[INFO] Warning: PDF download returned the wrong file type
fixed both in pull request #236. Second one was caused by a too long part name, Inventree allows only 100 characters in the part name, there is now an error message to report this specific error in the gui.
I found that some parts from LCSC doesn't have parameters
paramVOList
which crashing Ki-nTree:API return
JSON response
Another connector even if has
paramVOList
also causing problems with part creation:API return
JSON response
The text was updated successfully, but these errors were encountered: