Traceback (most recent call last):
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.3056.0_x64__qbz5n2kfra8p0\lib\runpy.py", line 196, in run_module_as_main
return run_code(code, main_globals, None,
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.3056.0_x64__qbz5n2kfra8p0\lib\runpy.py", line 86, in run_code
exec(code, run_globals)
File "C:\Users\giaco\Desktop\Auto-GPT\autogpt_main.py", line 4, in <module>
from autogpt.agent.agent import Agent
File "C:\Users\giaco\Desktop\Auto-GPT\autogpt\agent_init.py", line 1, in <module>
from autogpt.agent.agent import Agent
File "C:\Users\giaco\Desktop\Auto-GPT\autogpt\agent\agent.py", line 2, in <module>
from autogpt.app import execute_command, get_command
File "C:\Users\giaco\Desktop\Auto-GPT\autogpt\app.py", line 25, in <module>
from autogpt.commands.git_operations import clone_repository
File "C:\Users\giaco\Desktop\Auto-GPT\autogpt\commands\git_operations.py", line 1, in <module>
import git
File "C:\Users\giaco\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\git_init.py", line 91, in <module>
raise ImportError("Failed to initialize: {0}".format(exc)) from exc
ImportError: Failed to initialize: Bad git executable.
The git executable must be specified in one of the following ways:
- be included in your $PATH
- be set via $GIT_PYTHON_GIT_EXECUTABLE
- explicitly set via git.refresh()
All git commands will error until this is rectified.
This initial warning can be silenced or aggravated in the future by setting the
$GIT_PYTHON_REFRESH environment variable. Use one of the following values:
- quiet|q|silence|s|none|n|0: for no warning or exception
- warn|w|warning|1: for a printed warning
- error|e|raise|r|2: for a raised exception
Example:
export GIT_PYTHON_REFRESH=quiet