Pip install rasa-x not working (local mode). Still takes to long

OS: MacOS BigSur, Local Mode Installation of rasa-x on a blank python3.7 venv: Hangs for hours!

INFO: This is taking longer than usual. You might need to provide the dependency resolver with stricter constraints to reduce runtime. If you want to abort this run, you can press Ctrl + C to do so. To improve how pip performs, tell us what happened here: https://pip.pypa.io/surveys/backtracking

I already tried all I found here, downgrading pip to 20.2 does not work: got compatibility errors for several libraries.

pip install --use-deprecated=legacy-resolver rasa-x --extra-index-url Simple Index

results in:

ERROR: pip’s legacy dependency resolver does not consider dependency conflicts when selecting packages. This behaviour is the source of the following dependency conflicts.

rasa 2.8.7 requires aiohttp!=3.7.4.post0,<3.8,>=3.6, but you’ll have aiohttp 3.7.4.post0 which is incompatible. rasa 2.8.7 requires apscheduler<3.8,>=3.6, but you’ll have apscheduler 3.8.0 which is incompatible. rasa 2.8.7 requires sanic-jwt<1.7.0,>=1.3.2, but you’ll have sanic-jwt 1.7.0 which is incompatible.

@CyberJoe hello, can you share rasa --version, while running in conda based environment?

Hello and welcome to the forum :slight_smile:

Upgrade Pip to the latest version and do

pip install rasa-x --extra-index-url https://pypi.rasa.com/simple --use-deprecated=legacy-resolver 

as you mentioned.

Then you may get conflicts. After this, do

pip install rasa-x --extra-index-url https://pypi.rasa.com/simple
pip install rasa rasa-x --extra-index-url https://pypi.rasa.com/simple
pip install rasa

Repeat until the conflicts get resolved :joy: It’s an ugly solution but it works.

rasa --version Rasa Version : 2.8.7 Minimum Compatible Version: 2.8.0 Rasa SDK Version : 2.8.2 Rasa X Version : None Python Version : 3.7.3 Operating System : Darwin-20.6.0-x86_64-i386-64bit Python Path : /Users/jochen2.mueller/dev/Rasa/rasa_search_intent_de/venv/bin/python

@CyberJoe

Please install Anaconda from Anaconda | Individual Edition , then create the conda environment using the following command

  1. conda create -n rasa3 python=3.8
  2. conda activate rasa 3

Note: I’d recommend to create a fresh environment if not you can proceed with next steps:

For Rasa Open Source:

`pip install rasa==2.8.1`
`pip install rasa-sdk==2.8.1'

check version rasa --version its install or not

For Installing basic project:

rasa init

then if you need

For Rasa-X Installation

pip install rasa-x==0.39.3 --extra-index-url https://pypi.rasa.com/simple

check rasa version rasa --version its install or not

You will see some error : ImportError: cannot import name ‘RowProxy’ from ‘sqlalchemy.engine’ Install

pip install SQLAlchemy==1.3.22 should fix it

If sanic related error: pip install sanic-jwt==1.6.0

delete .db (events and rasa ) if is showing alembic issue.

If you have any error in-between please share with us.

I hope this will solve your issue.

Did it the ChrisRahme-way and I got it installed. But when I try to start it, I now get a…

OSError: [Errno 48] error while attempting to bind on address (‘0.0.0.0’, 5002): address already in use 2021-10-12 13:49:43 ERROR sanic.root - Unable to start server.

We are currently evaluating against SAP CAI, … would be nice getting it up and running in time.

@CyberJoe can you share the error screenshot? a complete one?

Python is 3.7.3 Installed a nice new venv. Did all the stuff ChrisR. mentioned. Installation now completes. Rasa is: rasa --version Rasa Version : 2.8.7 Minimum Compatible Version: 2.8.0 Rasa SDK Version : 2.8.2 Rasa X Version : 0.42.3 Python Version : 3.7.3 Operating System : Darwin-20.6.0-x86_64-i386-64bit Python Path : /Users/jochen2.mueller/dev/Rasa/rasa_search_intent_de/venv/bin/python

I again tried the --rasa-x-port parameter to set the port <> 5002… AND IT WORKS!

Oh man… You should update your local mode installation guide!

@CyberJoe Thanks, surely we will update the documentation and can you please share the complete solution for the other readers and close this thread.