Skip to content

subprocess.CalledProcessError: Command '['bash.exe', 'setup_mcp.sh']' returned non-zero exit status 15. Even though Bash is installed in the path dir #812

Description

@yohlimem

Bash is working:

(mc_gen) PS D:\dev\Python\Minecraft Bot> bash.exe
yahli@[desktop_name]:/mnt/d/dev/Python/Minecraft Bot$ exit
logout
(mc_gen) PS D:\dev\Python\Minecraft Bot>

Error

(mc_gen) PS D:\dev\Python\Minecraft Bot> pip install git+https://github.com/minerllabs/minerl -v
Using pip 25.3 from C:\Users\yahli\anaconda3\envs\mc_gen\lib\site-packages\pip (python 3.10)
Collecting git+https://github.com/minerllabs/minerl
Cloning https://github.com/minerllabs/minerl to c:\users\yahli\appdata\local\temp\pip-req-build-gcg77_cz
Running command git version
git version 2.49.0.windows.1
Running command git clone --filter=blob:none https://github.com/minerllabs/minerl 'C:\Users\yahli\AppData\Local\Temp\pip-req-build-gcg77_cz'
Cloning into 'C:\Users\yahli\AppData\Local\Temp\pip-req-build-gcg77_cz'...

HEAD is now at 1e71be5 Update README.md
Traceback (most recent call last):
File "", line 144, in prep_mcp
File "C:\Users\yahli\anaconda3\envs\mc_gen\lib\subprocess.py", line 421, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File "C:\Users\yahli\anaconda3\envs\mc_gen\lib\subprocess.py", line 526, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['bash.exe', 'setup_mcp.sh']' returned non-zero exit status 15.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\yahli\anaconda3\envs\mc_gen\lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 389, in
main()
File "C:\Users\yahli\anaconda3\envs\mc_gen\lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 373, in main
json_out["return_val"] = hook(**hook_input["kwargs"])
File "C:\Users\yahli\anaconda3\envs\mc_gen\lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 143, in get_requires_for_build_wheel
return hook(config_settings)
File "C:\Users\yahli\AppData\Local\Temp\pip-build-env-fkxlohtp\overlay\Lib\site-packages\setuptools\build_meta.py", line 331, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=[])
File "C:\Users\yahli\AppData\Local\Temp\pip-build-env-fkxlohtp\overlay\Lib\site-packages\setuptools\build_meta.py", line 301, in _get_build_requires
self.run_setup()
File "C:\Users\yahli\AppData\Local\Temp\pip-build-env-fkxlohtp\overlay\Lib\site-packages\setuptools\build_meta.py", line 512, in run_setup
super().run_setup(setup_script=setup_script)
File "C:\Users\yahli\AppData\Local\Temp\pip-build-env-fkxlohtp\overlay\Lib\site-packages\setuptools\build_meta.py", line 317, in run_setup
exec(code, locals())
File "", line 222, in
File "", line 164, in prep_mcp
RuntimeError:
Running install scripts failed. Check error logs above for more information.

              If errors are about `bash` command not found, You have at least two options to fix this:
               1. Install Windows Subsystem for Linux (WSL. Tested on WSL 2). Note that installation with WSL
                  may seem especially slow/stuck, but it is not; it is just a bit slow.
               2. Install bash along some other tools. E.g., git will come with bash: https://git-scm.com/downloads .
                  After installation, you may have to update environment variables to include a path which contains
                  'bash.exe'. For above git tools, this is [installation-dir]/bin.
              After installation, you should have 'bash' command in your command line/powershell.     

              If errors are about "could not create work tree dir...", try cloning the MineRL repository
              to a different location and try installation again.

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> No available output.

note: This error originates from a subprocess, and is likely not a problem with pip.
full command: 'C:\Users\yahli\anaconda3\envs\mc_gen\python.exe' 'C:\Users\yahli\anaconda3\envs\mc_gen\lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py' get_requires_for_build_wheel 'C:\Users\yahli\AppData\Local\Temp\tmp17rt9rlk'
cwd: C:\Users\yahli\AppData\Local\Temp\pip-req-build-gcg77_cz
Getting requirements to build wheel ... error
ERROR: Failed to build 'git+https://github.com/minerllabs/minerl' when getting requirements to build wheel ... error

Could the problem be with the fact that Im using a Conda Virtual Environment?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions