Closed msuthe43 closed 1 year ago
i am facing same problem right now, did you find solution to this problem ?
I also meet this problem, did you find solution to this problem ?
I have solved this problem by 'pip install shapely==1.7'. Refer to https://stackoverflow.com/questions/75287534/indexerror-descartes-polygonpatch-wtih-shapely
I'm trying to run the sim_control.py and I'm encountering an error with the descartes package.
File "d:VISTA2.py", line 91, in
main()
File "d:VISTA2.py", line 34, in main
vis_img = display.render()
File "D:vista\lib\site-packages\vista\core\Display.py", line 227, in render
patch = PolygonPatch(patch,
File "D:vista\lib\site-packages\descartes\patch.py", line 87, in PolygonPatch
return PathPatch(PolygonPath(polygon), **kwargs)
File "D:vista\lib\site-packages\descartes\patch.py", line 62, in PolygonPath
vertices = concatenate([
File "D:vista\lib\site-packages\descartes\patch.py", line 63, in
concatenate([asarray(t.exterior)[:, :2]] +
IndexError: too many indices for array: array is 0-dimensional, but 2 were indexed
Any help would be appreciated