Open finegan-dollak opened 1 year ago
it doesnt work on me
note: your pip and pip3 may be different instances. I substituted
pip install setuptools==65.5.0 pip==21
pip install gym==0.21
with
pip3 install setuptools==65.5.0 pip==21
pip3 install gym==0.21
and that worked for me
I got rid of the gym==0.21
to just gym
it works for me
pip install setuptools==65.5.0 pip==21 pip install gym==0.21 pip install minedojo
BTW, this only allows the pip install minedojo to come through, but import minedojo still gives error, which is fixed by changing file: /minedojo/tasks/init.py, line 29 according to https://docs.python.org/3/library/importlib.resources.html#importlib.resources.path
importlib_resources.as_file(importlib_resources.files("minedojo.tasks.description_files").joinpath(fname))
it works for me
pip install setuptools==65.5.0 pip==21 pip install gym==0.21 pip install minedojo
BTW, this only allows the pip install minedojo to come through, but import minedojo still gives error, which is fixed by changing file: /minedojo/tasks/init.py, line 29 according to https://docs.python.org/3/library/importlib.resources.html#importlib.resources.path
importlib_resources.as_file(importlib_resources.files("minedojo.tasks.description_files").joinpath(fname))
cannot find a 'tasks' folder in minedojo , but i did find init.py and there were a lot of them
I struggled somewhat to install on a Mac with an M1 using the direct install method from https://docs.minedojo.org/sections/getting_started/install.html. This post includes the steps I tried and a workaround that eventually succeeded but is rather awkward; a more straightforward solution could make installation easier for others.
After following the instructions to set up JAVA_HOME and create the conda environment, I attempted
pip install minedojo
, which failed with the following error:I switched to following the instructions to install the latest main branch:
and encountered the same problem.
After some digging, I found that the issue arises from using gym==0.21 (see details here). Using the fix documented there allowed me to install gym==0.21, but it also caused new errors with
pip install -e
because it prevented installation of lxml.I tried a clean conda environment, replaced
gym==0.21
withgym
in requirements.txt. This was enough to successfully runpip install -e .
, but using a newer version of gym causes an assertion error when I tried to runvalidate_install.py
, so I had to move back to gym 0.21. To do this, I ranwhich worked because I had already installed all the other packages. I can now run
validate_install.py
successfully. I'm not sure if a user would be able to makepip install minedojo
work directly.My system info: macOS Ventura 13.4 on Apple M1 Pro Python 3.9.16