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 install MineRL #43

Open
Emericen opened this issue Apr 30, 2024 · 1 comment
Open

Unable to install MineRL #43

Emericen opened this issue Apr 30, 2024 · 1 comment
Labels
question Further information is requested

Comments

@Emericen
Copy link

Emericen commented Apr 30, 2024

hey!!

huge fan of the project and would love to expand further and see if scales.

when i try to install minerl, i ran into this error:

% pip install git+https://github.com/minerllabs/minerl
Collecting git+https://github.com/minerllabs/minerl
  Cloning https://github.com/minerllabs/minerl to /private/var/folders/gh/x1n2rjk96fb8zck57gpvlrkc0000gn/T/pip-req-build-xqrvei9r
  Running command git clone --filter=blob:none --quiet https://github.com/minerllabs/minerl /private/var/folders/gh/x1n2rjk96fb8zck57gpvlrkc0000gn/T/pip-req-build-xqrvei9r
  Resolved https://github.com/minerllabs/minerl to commit 80a4673d90170e755fa95619c55d1ef3c7656bc4
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error
  
  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [184 lines of output]
      Cloning into 'MCP-Reborn'...
      Note: switching to '1.16.5-20210115'.
      
      You are in 'detached HEAD' state. You can look around, make experimental
      changes and commit them, and you can discard any commits you make in this
      state without impacting any branches by switching back to a branch.
      
      If you want to create a new branch to retain commits you create, you may
      do so (now or later) by using -c with the switch command. Example:
      
        git switch -c <new-branch-name>
      
      Or undo this operation with:
      
        git switch -
      
      Turn off this advice by setting config variable advice.detachedHead to false
      
      HEAD is now at 1e71be5 Update README.md
      Starting a Gradle Daemon (subsequent builds will be faster)
      Download http://files.minecraftforge.net/maven/net/minecraftforge/gradle/ForgeGradle/maven-metadata.xml
      Download http://files.minecraftforge.net/maven/net/minecraftforge/artifactural/maven-metadata.xml
      Download https://maven.minecraftforge.net/net/minecraftforge/forgespi/maven-metadata.xml
      Download https://maven.minecraftforge.net/cpw/mods/modlauncher/maven-metadata.xml
      Download https://maven.minecraftforge.net/cpw/mods/grossjava9hacks/maven-metadata.xml
      > Task :mcp:downloadConfig
      
      > Task :mcp:setupMCP
      Setting up MCP environment
      Initializing steps
      Executing steps
       > Running 'downloadManifest'
       > Running 'downloadJson'
       > Running 'downloadClient'
       > Running 'downloadServer'
       > Running 'stripClient'
       > Running 'stripServer'
       > Running 'merge'
       > Running 'rename'
       > Running 'mcinject'
       > Running 'listLibraries'
       > Running 'decompile'
       > Running 'inject'
       > Running 'patch'
      MCP environment setup is complete
      
      > Task :applyPatches
      > Task :downloadMappings
      > Task :srg2mcp
      > Task :extractMapped
      > Task :setup
      
      BUILD SUCCESSFUL in 59s
      6 actionable tasks: 6 executed
      Starting a Gradle Daemon (subsequent builds will be faster)
      
      > Configure project :
      * * * * * * * * * * * * * * * * * * * * * * * *
      These are the repositories after plugins have been applied:
       | - MavenRepo -> https://repo.maven.apache.org/maven2/
       | - BintrayJCenter -> https://jcenter.bintray.com/
       | - maven -> https://repo.spongepowered.org/maven/
       | - maven2 -> https://maven.minecraftforge.net/
       | - BUNDELED_2110067620 -> downloads to: /Users/eddyliang/.gradle/caches/forge_gradle/bundeled_repo/
       | - maven3 -> https://libraries.minecraft.net/
      * * * * * * * * * * * * * * * * * * * * * * * *
      Repositories after removing proxied repos:
       | - MavenRepo -> https://repo.maven.apache.org/maven2/
       | - BintrayJCenter -> https://jcenter.bintray.com/
       | - maven -> https://repo.spongepowered.org/maven/
       | - maven2 -> https://maven.minecraftforge.net/
       | - BUNDELED_2110067620 -> downloads to: /Users/eddyliang/.gradle/caches/forge_gradle/bundeled_repo/
       | - maven3 -> https://libraries.minecraft.net/
      * * * * * * * * * * * * * * * * * * * * * * * *
      
      FAILURE: Build failed with an exception.
      
      * Where:
      Build file '/private/var/folders/gh/x1n2rjk96fb8zck57gpvlrkc0000gn/T/pip-req-build-xqrvei9r/minerl/MCP-Reborn/build.gradle' line: 369
      
      * What went wrong:
      A problem occurred evaluating root project 'mcprec'.
      > src/main/resources/schemas.index (No such file or directory)
      
      * Try:
      Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
      
      * Get more help at https://help.gradle.org
      
      Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
      Use '--warning-mode all' to show the individual deprecation warnings.
      See https://docs.gradle.org/6.8.1/userguide/command_line_interface.html#sec:command_line_warnings
      
      BUILD FAILED in 19s
      
      > Configure project :
      * * * * * * * * * * * * * * * * * * * * * * * *
      These are the repositories after plugins have been applied:
       | - MavenRepo -> https://repo.maven.apache.org/maven2/
       | - BintrayJCenter -> https://jcenter.bintray.com/
       | - maven -> https://repo.spongepowered.org/maven/
       | - maven2 -> https://maven.minecraftforge.net/
       | - BUNDELED_-210738588 -> downloads to: /Users/eddyliang/.gradle/caches/forge_gradle/bundeled_repo/
       | - maven3 -> https://libraries.minecraft.net/
      * * * * * * * * * * * * * * * * * * * * * * * *
      Repositories after removing proxied repos:
       | - MavenRepo -> https://repo.maven.apache.org/maven2/
       | - BintrayJCenter -> https://jcenter.bintray.com/
       | - maven -> https://repo.spongepowered.org/maven/
       | - maven2 -> https://maven.minecraftforge.net/
       | - BUNDELED_-210738588 -> downloads to: /Users/eddyliang/.gradle/caches/forge_gradle/bundeled_repo/
       | - maven3 -> https://libraries.minecraft.net/
      * * * * * * * * * * * * * * * * * * * * * * * *
      
      FAILURE: Build failed with an exception.
      
      * Where:
      Build file '/private/var/folders/gh/x1n2rjk96fb8zck57gpvlrkc0000gn/T/pip-req-build-xqrvei9r/minerl/MCP-Reborn/build.gradle' line: 369
      
      * What went wrong:
      A problem occurred evaluating root project 'mcprec'.
      > src/main/resources/schemas.index (No such file or directory)
      
      * Try:
      Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
      
      * Get more help at https://help.gradle.org
      
      Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
      Use '--warning-mode all' to show the individual deprecation warnings.
      See https://docs.gradle.org/6.8.1/userguide/command_line_interface.html#sec:command_line_warnings
      
      BUILD FAILED in 5s
      
      > Configure project :
      * * * * * * * * * * * * * * * * * * * * * * * *
      These are the repositories after plugins have been applied:
       | - MavenRepo -> https://repo.maven.apache.org/maven2/
       | - BintrayJCenter -> https://jcenter.bintray.com/
       | - maven -> https://repo.spongepowered.org/maven/
       | - maven2 -> https://maven.minecraftforge.net/
       | - BUNDELED_722657397 -> downloads to: /Users/eddyliang/.gradle/caches/forge_gradle/bundeled_repo/
       | - maven3 -> https://libraries.minecraft.net/
      * * * * * * * * * * * * * * * * * * * * * * * *
      Repositories after removing proxied repos:
       | - MavenRepo -> https://repo.maven.apache.org/maven2/
       | - BintrayJCenter -> https://jcenter.bintray.com/
       | - maven -> https://repo.spongepowered.org/maven/
       | - maven2 -> https://maven.minecraftforge.net/
       | - BUNDELED_722657397 -> downloads to: /Users/eddyliang/.gradle/caches/forge_gradle/bundeled_repo/
       | - maven3 -> https://libraries.minecraft.net/
      * * * * * * * * * * * * * * * * * * * * * * * *
      
      FAILURE: Build failed with an exception.
      
      * Where:
      Build file '/private/var/folders/gh/x1n2rjk96fb8zck57gpvlrkc0000gn/T/pip-req-build-xqrvei9r/minerl/MCP-Reborn/build.gradle' line: 369
      
      * What went wrong:
      A problem occurred evaluating root project 'mcprec'.
      > src/main/resources/schemas.index (No such file or directory)
      
      * Try:
      Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
      
      * Get more help at https://help.gradle.org
      
      Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
      Use '--warning-mode all' to show the individual deprecation warnings.
      See https://docs.gradle.org/6.8.1/userguide/command_line_interface.html#sec:command_line_warnings
      
      BUILD FAILED in 5s
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "/private/var/folders/gh/x1n2rjk96fb8zck57gpvlrkc0000gn/T/pip-req-build-xqrvei9r/setup.py", line 223, in <module>
          prep_mcp()
        File "/private/var/folders/gh/x1n2rjk96fb8zck57gpvlrkc0000gn/T/pip-req-build-xqrvei9r/setup.py", line 202, in prep_mcp
          raise e
        File "/private/var/folders/gh/x1n2rjk96fb8zck57gpvlrkc0000gn/T/pip-req-build-xqrvei9r/setup.py", line 199, in prep_mcp
          subprocess.check_call('{} downloadAssets'.format(gradlew).split(' '), cwd=workdir)
        File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/subprocess.py", line 369, in check_call
          raise CalledProcessError(retcode, cmd)
      subprocess.CalledProcessError: Command '['./gradlew', 'downloadAssets']' returned non-zero exit status 1.
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

any idea what this is? not too familiar w mcp-reborn. i'm on macos with java version "1.8.0_391" and Python 3.10.11.

@Miffyli Miffyli added the question Further information is requested label Apr 30, 2024
@Miffyli
Copy link
Collaborator

Miffyli commented Apr 30, 2024

Hey. Installing on Mac requires additional steps. See this comment: minerllabs/minerl#659 (comment)

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

No branches or pull requests

2 participants