isl-org / spear

SPEAR: A Simulator for Photorealistic Embodied AI Research
MIT License
224 stars 15 forks source link

Error running pip install -e python #255

Open stokesj0001 opened 11 months ago

stokesj0001 commented 11 months ago

What platform am I on? What are my system specifications? Do I meet the minimum specifications for the Unreal Engine?

Windows. Not technically.

What am I attempting to do, what do I expect to happen, and what actually happened?

I was following https://github.com/isl-org/spear/blob/main/docs/getting_started.md and got to command,

pip install -e python

which produced the following error.

spear_getting_started_error

I was able to resolve this error with: https://stackoverflow.com/questions/76129688/why-is-pip-install-gym-failing-with-python-setup-py-egg-info-did-not-run-succ

mikeroberts3000 commented 11 months ago

Hi Jonathan, thanks for investigating this. What exactly was your solution? Did you modify the version numbers in our setup.py file?

RachithP commented 11 months ago

Looks like this issue should be reproducible with the mentioned package versions (of setuptools, wheel, pip), but weirdly enough, I'm not able to reproduce it on my windows machine. I'm using conda 4.11.0 and python 3.8.18.

Screenshot 2023-10-02 114029

mikeroberts3000 commented 11 months ago

That is strange. @RachithP has all the same versions of all the packages that @stokesj0001 has when this error occurred, as indicated by pip list.

stokesj0001 commented 11 months ago

The workaround for me was to downgrade setuptools and wheel as mentioned in the stackoverflow post.

pip install setuptools==65.5.0 "wheel<0.40.0"

Then install the 0.21.0 version of gym

pip install gym==0.21.0

mikeroberts3000 commented 11 months ago

Ah ok. That is good to know. So far, we haven't explicitly included setuptools or wheel in the dependencies listed in our setup.py file. But this issue is making me think that we should. We'll need to verify that the change works on all our supported platforms, so I'll leave this issue open until we have a chance to do that.

stokesj0001 commented 11 months ago

I was using:

conda: 23.5.2 python: 3.8.18 pip: 22.3.1

thias15 commented 9 months ago

What platform am I on? What are my system specifications? Do I meet the minimum specifications for the Unreal Engine?

Windows. Not technically.

What am I attempting to do, what do I expect to happen, and what actually happened?

I was following https://github.com/isl-org/spear/blob/main/docs/getting_started.md and got to command,

pip install -e python

which produced the following error.

spear_getting_started_error

I was able to resolve this error with: https://stackoverflow.com/questions/76129688/why-is-pip-install-gym-failing-with-python-setup-py-egg-info-did-not-run-succ

This error is probably due to the version of gym not being available for the OS. Try updating the setup.py in the python folder to a more recent version of gym, e.g. 0.26.x

mikeroberts3000 commented 9 months ago

Thanks @thias15!