Rasa X install stucked

My rasa X installation has been stuck in the middle, need help! Here I am using python 3.8.5 from anaconda. Pip 21 Using mac terminal

Every time I try pip3 install rasa-x --extra-index-url https://pypi.rasa.com/simple

It would run for 10 minutes and stuck:

INFO: pip is looking at multiple versions of sniffio to determine which version is compatible with other requirements. This could take a while. INFO: pip is looking at multiple versions of h2 to determine which version is compatible with other requirements. This could take a while. Collecting h2==3.* Downloading h2-3.1.1-py2.py3-none-any.whl (64 kB) |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 64 kB 5.7 MB/s Downloading h2-3.1.0-py2.py3-none-any.whl (64 kB) |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 64 kB 115 kB/s Downloading h2-3.0.1-py2.py3-none-any.whl (71 kB) |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 71 kB 1.7 MB/s Downloading h2-3.0.0-py2.py3-none-any.whl (70 kB) |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 70 kB 8.5 MB/s Collecting hpack<4,>=2.3 Downloading hpack-2.3.0-py2.py3-none-any.whl (36 kB)

I have no idea why it is like this. Hope there can be some solutions.

2 Likes

Hi @somacruzer

See also this stackoverflow issue, where 2 solutions are provided:

Option 1: downgrade to pip 20:

pip install --upgrade pip==20.2

Option 2: Tell pip 21 to use the old logic:

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

That’s is super useful! Thanks you so much!

Had the same trouble, tried to migrate to poetry for package management but ended up having another problem. Since rasa x use a different source (https://pypi.rasa.com/simple) i used:

[tool.poetry.dependencies]
python = "3.7.9"
pytest = "^6.2.2"
black = "^20.8b1"
rasa = "^2.2.10"
spacy = "3.0.0"
nltk = "3.4.5"
rasa-x = {version="0.35.1", source="https://pypi.rasa.com/simple/"}

Output is:

SolverProblemError

  Because project-name depends on rasa-x (==0.35.1) which doesn't exist, version solving failed.

Any tips?

pip-20.2 works

1 Like

Thank you so much! I have been struggling with this for a couple of days now and this fixed it :smiley:

Thanks a lot @Arjaan!!! In my case, option 2 work:

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

My python versiΓ³n is 3.7.7

Both the solutions are not working for me

Error: Failed building wheel for ujson. Is showing to me. When I have already installed ujson using conda.