Rasa X is giving error- not able to proceed

Hi,

Rasa x is giving following error:

Traceback (most recent call last):
  File "c:\anaconda\lib\site-packages\git\__init__.py", line 83, in <module>
    refresh()
  File "c:\anaconda\lib\site-packages\git\__init__.py", line 73, in refresh
    if not Git.refresh(path=path):
  File "c:\anaconda\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 "c:\anaconda\lib\runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "c:\anaconda\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "C:\Anaconda\Scripts\rasa.exe\__main__.py", line 7, in <module>
  File "c:\anaconda\lib\site-packages\rasa\__main__.py", line 92, in main
    cmdline_arguments.func(cmdline_arguments)
  File "c:\anaconda\lib\site-packages\rasa\cli\x.py", line 326, in rasa_x
    run_locally(args)
  File "c:\anaconda\lib\site-packages\rasa\cli\x.py", line 414, in run_locally
    from rasax.community import local  # pytype: disable=import-error
  File "c:\anaconda\lib\site-packages\rasax\community\local.py", line 25, in <module>
    import rasax.community.server as rasa_x_server
  File "c:\anaconda\lib\site-packages\rasax\community\server.py", line 4, in <module>
    from rasax.community.services.integrated_version_control.git_service import GitService
  File "c:\anaconda\lib\site-packages\rasax\community\services\integrated_version_control\git_service.py", line 10, in <module>
    from git import Repo, Reference, PushInfo, RemoteReference, Actor
  File "c:\anaconda\lib\site-packages\git\__init__.py", line 85, 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

I have created a new directory myrasa under C: / and running rasa x from c:\myrasa Not sure if the errors are due to existing installation of Annaconda which i use for python programmimg in Jupyter notebook. That is in a different folder.

the python version is 3.7.6

As above did not work, I tried pip install --upgrade rasa_core , but that gave another set of errors :

ERROR: spyder 4.0.1 requires pyqt5<5.13; python_version >= "3", which is not installed.
ERROR: spyder 4.0.1 requires pyqtwebengine<5.13; python_version >= "3", which is not installed.
ERROR: pytest-astropy 0.8.0 requires pytest-cov>=2.0, which is not installed.
ERROR: pytest-astropy 0.8.0 requires pytest-filter-subpackage>=0.1, which is not installed.
ERROR: tensorflow-probability 0.9.0 has requirement cloudpickle>=1.2.2, but you'll have cloudpickle 0.6.1 which is incompatible.
ERROR: tensorflow-addons 0.7.1 has requirement tensorflow>=2.1.0, but you'll have tensorflow 1.13.2 which is incompatible.
ERROR: rasa 1.10.3 has requirement cloudpickle<1.4,>=1.2, but you'll have cloudpickle 0.6.1 which is incompatible.
ERROR: rasa 1.10.3 has requirement fbmessenger<6.1.0,>=6.0.0, but you'll have fbmessenger 5.6.0 which is incompatible.
ERROR: rasa 1.10.3 has requirement jsonschema<3.3,>=3.2, but you'll have jsonschema 2.6.0 which is incompatible.
ERROR: rasa 1.10.3 has requirement matplotlib<3.3,>=3.1, but you'll have matplotlib 2.2.5 which is incompatible.
ERROR: rasa 1.10.3 has requirement packaging<21.0,>=20.0, but you'll have packaging 18.0 which is incompatible.
ERROR: rasa 1.10.3 has requirement pika<1.2.0,>=1.1.0, but you'll have pika 0.12.0 which is incompatible.
ERROR: rasa 1.10.3 has requirement python-socketio<4.6,>=4.4, but you'll have python-socketio 3.1.2 which is incompatible.
ERROR: rasa 1.10.3 has requirement pytz<2020.0,>=2019.1, but you'll have pytz 2018.9 which is incompatible.
ERROR: rasa 1.10.3 has requirement redis<4.0,>=3.4, but you'll have redis 2.10.6 which is incompatible.
ERROR: rasa 1.10.3 has requirement ruamel.yaml<0.17,>=0.16, but you'll have ruamel-yaml 0.15.100 which is incompatible.
ERROR: rasa 1.10.3 has requirement scikit-learn<0.23,>=0.22, but you'll have scikit-learn 0.20.4 which is incompatible.
ERROR: rasa 1.10.3 has requirement slackclient<3.0.0,>=2.0.0, but you'll have slackclient 1.3.2 which is incompatible.
ERROR: rasa 1.10.3 has requirement tensorflow<2.2,>=2.1, but you'll have tensorflow 1.13.2 which is incompatible.
ERROR: rasa 1.10.3 has requirement tensorflow-estimator==2.1.0, but you'll have tensorflow-estimator 1.13.0 which is incompatible.
ERROR: rasa-x 0.30.1 has requirement jsonschema<4.0,>=3.2, but you'll have jsonschema 2.6.0 which is incompatible.
ERROR: rasa-x 0.30.1 has requirement pika<2.0.0,>=1.1.0, but you'll have pika 0.12.0 which is incompatible.
ERROR: rasa-x 0.30.1 has requirement ruamel.yaml<0.17,>=0.16, but you'll have ruamel-yaml 0.15.100 which is incompatible.
ERROR: rasa-x 0.30.1 has requirement tensorflow-estimator<2.2.0,>=2.1.0, but you'll have tensorflow-estimator 1.13.0 which is incompatible.
ERROR: jupyterlab-server 1.0.6 has requirement jsonschema>=3.0.1, but you'll have jsonschema 2.6.0 which is incompatible.
ERROR: rasa-nlu 0.15.1 has requirement future~=0.17.1, but you'll have future 0.18.2 which is incompatible.

Kindly help.

Regards Pratibha

I think you have python environment issues that need to be resolved. Are you running on Windows?

Take a look at this.