While typing rasa x in cmd,i am getting the error

Traceback (most recent call last): File “d:\users\abiswa14\appdata\local\programs\python\python37\lib\site-packages\git_init_.py”, line 83, in refresh() File “d:\users\abiswa14\appdata\local\programs\python\python37\lib\site-packages\git_init_.py”, line 73, in refresh if not Git.refresh(path=path): File “d:\users\abiswa14\appdata\local\programs\python\python37\lib\site-packages\git\cmd.py”, line 278, in refresh raise ImportError(err) ImportError: 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

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File “d:\users\abiswa14\appdata\local\programs\python\python37\lib\runpy.py”, line 193, in run_module_as_main “main”, mod_spec) File “d:\users\abiswa14\appdata\local\programs\python\python37\lib\runpy.py”, line 85, in run_code exec(code, run_globals) File "D:\Users\ABiswa14\AppData\Local\Programs\Python\Python37\Scripts\rasa.exe_main.py", line 9, in File "d:\users\abiswa14\appdata\local\programs\python\python37\lib\site-packages\rasa_main.py", line 92, in main cmdline_arguments.func(cmdline_arguments) File “d:\users\abiswa14\appdata\local\programs\python\python37\lib\site-packages\rasa\cli\x.py”, line 326, in rasa_x run_locally(args) File “d:\users\abiswa14\appdata\local\programs\python\python37\lib\site-packages\rasa\cli\x.py”, line 414, in run_locally from rasax.community import local # pytype: disable=import-error File “d:\users\abiswa14\appdata\local\programs\python\python37\lib\site-packages\rasax\community\local.py”, line 25, in import rasax.community.server as rasa_x_server File “d:\users\abiswa14\appdata\local\programs\python\python37\lib\site-packages\rasax\community\server.py”, line 4, in from rasax.community.services.integrated_version_control.git_service import GitService File “d:\users\abiswa14\appdata\local\programs\python\python37\lib\site-packages\rasax\community\services\integrated_version_control\git_service.py”, line 14, in from git import Repo, Reference, PushInfo, RemoteReference, Actor File “d:\users\abiswa14\appdata\local\programs\python\python37\lib\site-packages\git_init_.py”, line 85, in 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

seems like your git isn’t installed correctly or not included in PATH. Did you try to repair or reinstall git? Is git included in your PATH variable?

Regards, Tristan

i just installed git and added to path variable but still getting the same error.

OK, so typing git --version works in your command line?

If the command above works you could try set GIT_PYTHON_REFRESH=quiet and then try rasa x again.

Regards

Now it is working.Thanks

Hey @Aniket573,

If setting the git refresh to quiet helped please mark it as the answer so it can help others :slight_smile:

Kind regards, Tristan