openai / Video-Pre-Training

Video PreTraining (VPT): Learning to Act by Watching Unlabeled Online Videos
MIT License
1.28k stars 142 forks source link

Unable to install MineRL #43

Open Emericen opened 5 months ago

Emericen commented 5 months ago

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 commented 5 months ago

Hey. Installing on Mac requires additional steps. See this comment: https://github.com/minerllabs/minerl/issues/659#issuecomment-1306635414