Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to run basic examples. #20

Closed
msuthe43 opened this issue May 4, 2023 · 3 comments
Closed

Unable to run basic examples. #20

msuthe43 opened this issue May 4, 2023 · 3 comments

Comments

@msuthe43
Copy link

msuthe43 commented May 4, 2023

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

@msuthe43 msuthe43 closed this as completed May 4, 2023
@tirthb101
Copy link

i am facing same problem right now, did you find solution to this problem ?

@flyflyly
Copy link

flyflyly commented Jul 5, 2023

I also meet this problem, did you find solution to this problem ?

@flyflyly
Copy link

flyflyly commented Jul 6, 2023

I have solved this problem by 'pip install shapely==1.7'. Refer to https://stackoverflow.com/questions/75287534/indexerror-descartes-polygonpatch-wtih-shapely

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants