minerllabs / minerl

MineRL Competition for Sample Efficient Reinforcement Learning - Python Package
http://minerl.io/docs/
Other
711 stars 153 forks source link

Installation error: Execution failed for task ':mcp:setupMCP'. #723

Closed MicycleBichael closed 1 year ago

MicycleBichael commented 1 year ago

I have all dependencies installed. This what i got from Powershell when I attempted to install: error.txt

Miffyli commented 1 year ago

Double-check your JDK installation. The "compileError" (towards end of the log) happens usually when wrong Java version is used. javac -version should report 1.8..... You need JDK on both Windows and WSL side. Make sure to follow the instructions carefully in the docs: https://minerl.readthedocs.io/en/latest/tutorials/index.html

MicycleBichael commented 1 year ago

java -version and javac -version both report 1.8. Within WSL, both java -version and javac -version report 1.8. I have followed all instructions in the docs carefully.

Miffyli commented 1 year ago

Hmm hard to say what could be wrong in that case (the beginning of the log is also cut off, which might hide some info). Unfortunately the installation is pretty finnicky and sensitive to other installed things on system (e.g., gradle or sometimes other Java IDEs) that debugging these issues is very case-to-case matter, and the solution for one does not often work for others 😅 . Common tip I give is double check the Java installations (as you did) and that there is enough system resources to finish the compilation etc.

MicycleBichael commented 1 year ago

I'm pretty sure I have enough system resources to finish the compilation, how would I go about retrieving the whole log? I tried to do so but it seems there's a limit on how far back powershell was willing to let me see.

Miffyli commented 1 year ago

This command might help with logging powershell output: https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.host/start-transcript?view=powershell-7.3

MicycleBichael commented 1 year ago

I got a transcript of what should be the full log: transcript0.txt

Miffyli commented 1 year ago

Seems like code is crashing to a weird java compilation error. Quick googling of the error code (137) suggests it might be related to memory issues. Even if you have enough RAM on your main system side, your WSL setup might only have 50% of that (or less). Double-check that the WSL environment has at least 6GB available to it (or so).

MicycleBichael commented 1 year ago

I raised the ram available to WSL to 6GB and it seemed to go a lot more successfully, but an error popped up so I'm not sure if it installed correctly. transcript.txt

Miffyli commented 1 year ago

I think the package installed correctly but the cleanup phase failed for whatever reason (this sometimes happens on people). I'd recommend trying running MineRL now :)

MicycleBichael commented 1 year ago

It works! Thank you for helping!