minerl icon indicating copy to clipboard operation
minerl copied to clipboard

Error installing

Open JoaoAnacleto opened this issue 2 years ago • 4 comments

Hello, I'm trying to install minerl in a virtual environment, and it's giving an error in the building.

Does anyone know what could be causing this error?

`File "C:\Users\joaov\anaconda3\envs\rent\lib\subprocess.py", line 373, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command '['gradlew.bat', '-g', 'run/gradle', 'shadowJar']' returned non-zero exit status 1. building Minecraft from C:\Users\joaov\AppData\Local\Temp\pip-install-6br8njhu\minerl_4740e3f8969847219441158fa13595a3\minerl\Malmo, build dir: build\lib.win-amd64-cpython-39\minerl\Malmo copying source dir CALLING SETUP. [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. error: legacy-install-failure

× Encountered error while trying to install package. ╰─> minerl

note: This is an issue with the package mentioned above, not pip. hint: See above for output from the failure.` error.txt

JoaoAnacleto avatar Jun 10 '22 12:06 JoaoAnacleto

Hey, please include the full log: the informative error is, sadly, somewhere in between :). Since you are on Windows, I recommend taking look at these tips: https://minerl.readthedocs.io/en/latest/notes/windows.html . Also, make sure you only have JDK 8 installed and no other Java versions (different versions tend to clash on Windows).

Miffyli avatar Jun 11 '22 09:06 Miffyli

Hey, please include the full log: the informative error is, sadly, somewhere in between :). Since you are on Windows, I recommend taking look at these tips: https://minerl.readthedocs.io/en/latest/notes/windows.html . Also, make sure you only have JDK 8 installed and no other Java versions (different versions tend to clash on Windows).

@Miffyli hi, i have jdk 8 installed. I am attaching the complete error log. I'll take a look at the windows FAQ. Thanks! error.txt

JoaoAnacleto avatar Jun 11 '22 14:06 JoaoAnacleto

Hmm this is a new error for me, could be from new pip versions or new Python. Could you try with an older Python version like 3.8 or 3.9? That could help. If that does not work, you could try installing it outside conda (not ideal, yes, but it might interfere with the installation).

Miffyli avatar Jun 11 '22 15:06 Miffyli

Hi I ran into the same issue. I solved it by installing using a channel that apparently installs an older version of gradle.

conda install -c hcc gradle

Hope it helps.

Cheers

MrRobot2211 avatar Jul 14 '22 13:07 MrRobot2211