TypeError: __new__() got an unexpected keyword argument 'index' in Point Initialization ¶
By: gpio on Oct. 26, 2024, 1:49 p.m.
I’m encountering an issue while running my Python code for a project involving 3D point annotations.
annotations_wsd = to_wsd(annotations)
The code is supposed to create Point objects with specific attributes, including index, label, and coordinates. However, I’m getting the following error:
TypeError: __new__() got an unexpected keyword argument 'index'
After checking the structures.py in the utils folder, I suspect it may be related to compatibility issues with specific library versions, especially shapely, wholeslidedata, or creationism.
My Environment: Python version: 3.8 Shapely version: 2.0.5
Any guidance on resolving this new argument compatibility issue or suggestions for alternative approaches would be greatly appreciated! Thank you in advance!