[ERROR]rasa x 0.23.2 cannot run

My os and cpu are:Win10 pro, i7 Please help.

2019-12-04 14:56:21.986041: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'cudart64_100.dll'; dlerror: cudart64_100.dll not found
2019-12-04 14:56:21.997375: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine.
Traceback (most recent call last):
  File "c:\users\bitsa\documents\python\chatbot\venv\lib\site-packages\git\__init__.py", line 83, in <module>
    refresh()
  File "c:\users\bitsa\documents\python\chatbot\venv\lib\site-packages\git\__init__.py", line 73, in refresh
    if not Git.refresh(path=path):
  File "c:\users\bitsa\documents\python\chatbot\venv\lib\site-packages\git\cmd.py", line 287, 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
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "C:\Users\bitsa\AppData\Local\Programs\Python\Python37\lib\runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "C:\Users\bitsa\AppData\Local\Programs\Python\Python37\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "C:\Users\bitsa\Documents\python\chatbot\venv\Scripts\rasa.exe\__main__.py", line 9, in <module>
  File "c:\users\bitsa\documents\python\chatbot\venv\lib\site-packages\rasa\__main__.py", line 76, in main
    cmdline_arguments.func(cmdline_arguments)
  File "c:\users\bitsa\documents\python\chatbot\venv\lib\site-packages\rasa\cli\x.py", line 291, in rasa_x
    run_locally(args)
  File "c:\users\bitsa\documents\python\chatbot\venv\lib\site-packages\rasa\cli\x.py", line 379, in run_locally
    from rasax.community import local  # pytype: disable=import-error
  File "c:\users\bitsa\documents\python\chatbot\venv\lib\site-packages\rasax\community\local.py", line 19, in <module>
    from rasax.community.api.app import initialize_app
  File "c:\users\bitsa\documents\python\chatbot\venv\lib\site-packages\rasax\community\api\app.py", line 13, in <module>
    from rasax.community.api.blueprints import (
  File "c:\users\bitsa\documents\python\chatbot\venv\lib\site-packages\rasax\community\api\blueprints\git.py", line 7, in <module>
    from rasax.community.services.git_service import GitService
  File "c:\users\bitsa\documents\python\chatbot\venv\lib\site-packages\rasax\community\services\git_service.py", line 11, in <module>
    from git import Repo, GitCommandError, Reference, PushInfo, RemoteReference
  File "c:\users\bitsa\documents\python\chatbot\venv\lib\site-packages\git\__init__.py", line 85, in <module>
    raise ImportError('Failed to initialize: {0}'.format(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

Hi @yhdrytjd,

that’s a bug in the code. It doesn’t deal with the case that you don’t have git installed. I’ll fix it. As a workaround: Install git :smile:

2 Likes

Is the issue resolved? I am using 0.24.7 and I am still facing the issue. Please help.

Can you please share your stacktrace @samvatsar ?

It’s the same as that @yhdrytjd has got. Anyways, I solved it by installing git. Just curious to know if it is resolved.

Mhm, it must be a bit different because you’re running with 0.24.7. Can you please re-share? Also, can you please share the output of your pip list ?

Hi Tobias, sorry for the late response. I have not taken the screenshot of the stacktrace. Now, since git is installed I no longer get that error. Will let you know if I face similar issue again. Thanks a lot for the quick response.

I installed git still the issue is there .