Facing a problem while installing Rasa-X on Windows10

I used this command to install rasa X : pip install rasa-x -i https://pypi.rasa.com/simple but these errors occured and I don’t know how to solve them:

  Building wheel for ujson (setup.py) ... error

  error: subprocess-exited-with-error

  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [6 lines of output]
      Warning: 'classifiers' should be a list, got type 'filter'
      running bdist_wheel
      running build
      running build_ext
      building 'ujson' extension
      error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for ujson
  Running setup.py clean for ujson
Failed to build ujson
Installing collected packages: ujson, rfc3986, regex, python-editor, pika, h11, websockets, sniffio, smmap, sentry-sdk, pyjwt, Pillow, multidict, MarkupSafe, lxml, isodate, decorator, cachetools, attrs, aioredis, xmlsec, sanic-jwt, questionary, networkx, Mako, httpcore, google-auth, gitdb, croniter, python3-saml, httpx, GitPython, alembic, tensorboard, sanic, tensorflow, sanic-plugins-framework, sanic-cors, rasa-sdk, rasa, rasa-x
  Attempting uninstall: ujson
    Found existing installation: ujson 4.3.0
    Uninstalling ujson-4.3.0:
      Successfully uninstalled ujson-4.3.0
  Running setup.py install for ujson ... error
  error: subprocess-exited-with-error

  × Running setup.py install for ujson did not run successfully.
  │ exit code: 1
  ╰─> [6 lines of output]
      Warning: 'classifiers' should be a list, got type 'filter'
      running install
      running build
      running build_ext
      building 'ujson' extension
      error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  WARNING: No metadata found in f:\users\tun21\anaconda3\envs\install_demo\lib\site-packages
  Rolling back uninstall of ujson
  Moving to f:\users\tun21\anaconda3\envs\install_demo\lib\site-packages\ujson-4.3.0.dist-info\
   from F:\Users\tun21\anaconda3\envs\install_demo\Lib\site-packages\~json-4.3.0.dist-info
  Moving to f:\users\tun21\anaconda3\envs\install_demo\lib\site-packages\ujson.cp38-win_amd64.pyd
   from C:\Users\tun21\AppData\Local\Temp\pip-uninstall-0r0wwc7i\ujson.cp38-win_amd64.pyd
error: legacy-install-failure

× Encountered error while trying to install package.
╰─> ujson

note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.

Knowing that im having these versions:

Welcome to the forum!

The error mentions how to fix your problem :slight_smile:

Hello and welcome to the forum!

@rima13 please look at this thread: Windows installtion of Rasa x - #4 by insightskillz hope this will solve your issue.

OR

Which version of Rasa X you are trying to install?

1 Like

Thank you @ChrisRahme!

In fact, I installed Microsoft C++ Build Tools as mentionned but the error still persisting!

1 Like

Hmm, can you try pip install ujson==1.35?

I followed the solution presented in the thread but still getting the same errors

  • I re-installed anaconda again and rasa opensource 3 but by installing Rasa X i used ( pip install rasa-x -i https://pypi.rasa.com/simple ) soo I didn’t mention a specific version

Hello @rima13,

Unfortunately, rasa open source 3. x is not yet compatible with rasa x. The best available solution I have already shared with you in my above-mentioned thread. You can vary the rasa open-source version up to 2.8.15 and Rasa X 0.39.3. I hope this will help you.

Good Luck!

1 Like