RasaHQ / rasa

πŸ’¬ Open source machine learning framework to automate text- and voice-based conversations: NLU, dialogue management, connect to Slack, Facebook, and more - Create chatbots and voice assistants
https://rasa.com/docs/rasa/
Apache License 2.0
19.02k stars 4.65k forks source link

Python 3.8 pip3 install of rasa on a virtualenv fails #6081

Closed qlixed closed 4 years ago

qlixed commented 4 years ago

Rasa version: latest available, cannot get 'rasa --version' output as it not get installed.

Rasa SDK version (if used & relevant): --

Rasa X version (if used & relevant): --

Python version: Python 3.8.3

Operating system (windows, osx, ...): Linux - Fedora 32 Workstation Edition.

Issue:

Cannot install rasa on a virtualenv, dependency fails.

Error (including full traceback):

$ pip3 install -I rasa
Collecting rasa
  Using cached rasa-1.10.2-py3-none-any.whl (510 kB)
Collecting sanic-jwt<1.5.0,>=1.3.2
  Using cached sanic-jwt-1.4.1.tar.gz (19 kB)
Collecting apscheduler<3.7,>=3.6
  Using cached APScheduler-3.6.3-py2.py3-none-any.whl (58 kB)
Collecting colorhash<1.1.0,>=1.0.2
  Using cached colorhash-1.0.2-py2.py3-none-any.whl (6.0 kB)
Collecting sanic-cors<0.11.0,>=0.10.0b1
  Using cached Sanic_Cors-0.10.0.post3-py2.py3-none-any.whl (17 kB)
Collecting mattermostwrapper<2.3,>=2.2
  Using cached mattermostwrapper-2.2.tar.gz (2.5 kB)
Collecting scipy<2.0.0,>=1.4.1
  Using cached scipy-1.5.0-cp38-cp38-manylinux1_x86_64.whl (25.7 MB)
Collecting matplotlib<3.3,>=3.1
  Using cached matplotlib-3.2.2-cp38-cp38-manylinux1_x86_64.whl (12.4 MB)
Collecting python-telegram-bot<13.0,>=11.1
  Using cached python_telegram_bot-12.8-py2.py3-none-any.whl (375 kB)
Collecting python-dateutil<2.9,>=2.8
  Using cached python_dateutil-2.8.1-py2.py3-none-any.whl (227 kB)
Collecting requests<3.0,>=2.23
  Using cached requests-2.24.0-py2.py3-none-any.whl (61 kB)
Collecting sklearn-crfsuite<0.4,>=0.3
  Using cached sklearn_crfsuite-0.3.6-py2.py3-none-any.whl (12 kB)
Collecting slackclient<3.0.0,>=2.0.0
  Using cached slackclient-2.7.2-py2.py3-none-any.whl (70 kB)
Collecting tqdm<4.46,>=4.31
  Using cached tqdm-4.45.0-py2.py3-none-any.whl (60 kB)
Collecting networkx<2.5.0,>=2.4.0
  Using cached networkx-2.4-py3-none-any.whl (1.6 MB)
Collecting gevent<1.6,>=1.4
  Using cached gevent-1.5.0-cp38-cp38-manylinux2010_x86_64.whl (5.9 MB)
Collecting pika<1.2.0,>=1.1.0
  Using cached pika-1.1.0-py2.py3-none-any.whl (148 kB)
Collecting pykwalify<1.8.0,>=1.7.0
  Using cached pykwalify-1.7.0-py2.py3-none-any.whl (40 kB)
Collecting rocketchat_API<1.4.0,>=0.6.31
  Downloading rocketchat_API-1.3.1-py3-none-any.whl (9.6 kB)
Collecting attrs<19.4,>=19.3
  Using cached attrs-19.3.0-py2.py3-none-any.whl (39 kB)
Collecting colorclass<2.3,>=2.2
  Using cached colorclass-2.2.0.tar.gz (17 kB)
Collecting fbmessenger<6.1.0,>=6.0.0
  Using cached fbmessenger-6.0.0-py2.py3-none-any.whl (11 kB)
Collecting kafka-python<2.0,>=1.4
  Using cached kafka_python-1.4.7-py2.py3-none-any.whl (266 kB)
Collecting redis<4.0,>=3.4
  Using cached redis-3.5.3-py2.py3-none-any.whl (72 kB)
Collecting PyJWT<1.8,>=1.7
  Using cached PyJWT-1.7.1-py2.py3-none-any.whl (18 kB)
Collecting jsonpickle<1.5,>=1.3
  Using cached jsonpickle-1.4.1-py2.py3-none-any.whl (36 kB)
Collecting scikit-learn<0.23,>=0.22
  Using cached scikit_learn-0.22.2.post1-cp38-cp38-manylinux1_x86_64.whl (7.0 MB)
Collecting tensorflow_hub<0.9,>=0.7
  Using cached tensorflow_hub-0.8.0-py2.py3-none-any.whl (101 kB)
Collecting cloudpickle<1.4,>=1.2
  Using cached cloudpickle-1.3.0-py2.py3-none-any.whl (26 kB)
Collecting twilio<6.27,>=6.26
  Using cached twilio-6.26.3-py2.py3-none-any.whl (979 kB)
Collecting tensorflow-estimator==2.1.0
  Using cached tensorflow_estimator-2.1.0-py2.py3-none-any.whl (448 kB)
Collecting webexteamssdk<1.4.0,>=1.1.1
  Using cached webexteamssdk-1.3.tar.gz (56 kB)
Collecting prompt-toolkit<3.0,>=2.0
  Downloading prompt_toolkit-2.0.10-py3-none-any.whl (340 kB)
     |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 340 kB 3.1 MB/s 
Collecting async_generator<1.11,>=1.10
  Using cached async_generator-1.10-py3-none-any.whl (18 kB)
Collecting pymongo[srv,tls]<3.9.0,>=3.8.0
  Using cached pymongo-3.8.0.tar.gz (649 kB)
Collecting oauth2client==4.1.3
  Using cached oauth2client-4.1.3-py2.py3-none-any.whl (98 kB)
Collecting numpy<2.0,>=1.16
  Downloading numpy-1.19.0-cp38-cp38-manylinux2010_x86_64.whl (14.6 MB)
     |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 14.6 MB 8.5 MB/s 
Collecting pytz<2020.0,>=2019.1
  Using cached pytz-2019.3-py2.py3-none-any.whl (509 kB)
Collecting psycopg2-binary<2.9.0,>=2.8.2
  Using cached psycopg2_binary-2.8.5-cp38-cp38-manylinux1_x86_64.whl (3.0 MB)
Collecting jsonschema<3.3,>=3.2
  Using cached jsonschema-3.2.0-py2.py3-none-any.whl (56 kB)
Collecting terminaltables<3.2.0,>=3.1.0
  Using cached terminaltables-3.1.0.tar.gz (12 kB)
Collecting python-socketio<4.6,>=4.4
  Using cached python_socketio-4.5.1-py2.py3-none-any.whl (51 kB)
Collecting sanic<20.0.0,>=19.12.2
  Using cached sanic-19.12.2-py3-none-any.whl (72 kB)
Collecting ruamel.yaml<0.17,>=0.16
  Using cached ruamel.yaml-0.16.10-py2.py3-none-any.whl (111 kB)
Collecting aiohttp<3.7,>=3.6
  Using cached aiohttp-3.6.2-py3-none-any.whl (441 kB)
Collecting rasa-sdk<2.0.0,>=1.10.0
  Using cached rasa_sdk-1.10.2-py3-none-any.whl (38 kB)
Collecting ujson<3.0,>=1.35
  Using cached ujson-2.0.3-cp38-cp38-manylinux1_x86_64.whl (177 kB)
Collecting pydot<1.5,>=1.4
  Using cached pydot-1.4.1-py2.py3-none-any.whl (19 kB)
Collecting SQLAlchemy<1.4.0,>=1.3.3
  Using cached SQLAlchemy-1.3.18-cp38-cp38-manylinux2010_x86_64.whl (1.3 MB)
Collecting questionary<1.6.0,>=1.5.1
  Using cached questionary-1.5.2-py3-none-any.whl (26 kB)
ERROR: Could not find a version that satisfies the requirement tensorflow<2.2,>=2.1 (from rasa) (from versions: 2.2.0rc1, 2.2.0rc2, 2.2.0rc3, 2.2.0rc4, 2.2.0, 2.3.0rc0)
ERROR: No matching distribution found for tensorflow<2.2,>=2.1 (from rasa)

Also if I try:

$ pip3 install -I --no-cache-dir rasa
Collecting rasa
  Downloading rasa-1.10.2-py3-none-any.whl (510 kB)
     |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 510 kB 2.0 MB/s 
Collecting sanic-cors<0.11.0,>=0.10.0b1
  Downloading Sanic_Cors-0.10.0.post3-py2.py3-none-any.whl (17 kB)
Collecting attrs<19.4,>=19.3
  Downloading attrs-19.3.0-py2.py3-none-any.whl (39 kB)
Collecting colorclass<2.3,>=2.2
  Downloading colorclass-2.2.0.tar.gz (17 kB)
Collecting colorhash<1.1.0,>=1.0.2
  Downloading colorhash-1.0.2-py2.py3-none-any.whl (6.0 kB)
Collecting questionary<1.6.0,>=1.5.1
  Downloading questionary-1.5.2-py3-none-any.whl (26 kB)
ERROR: Could not find a version that satisfies the requirement tensorflow-addons<0.8.0,>=0.7.1 (from rasa) (from versions: 0.10.0)
ERROR: No matching distribution found for tensorflow-addons<0.8.0,>=0.7.1 (from rasa)

Command or request that led to error:

pip3 install -I rasa

and

pip3 install -I --no-cache rasa

Content of configuration file (config.yml) (if relevant): --

Content of domain file (domain.yml) (if relevant): --

qlixed commented 4 years ago

Just to be sure, I make a totally new venv and install from scratch:

$ mkdir rasa-test
$ cd rasa-test/
$ python3 -m venv .
$ ls
bin  include  lib  lib64  pyvenv.cfg
$ source bin/activate
(rasa-test) $ pip install -U pip
Collecting pip
  Using cached https://files.pythonhosted.org/packages/43/84/23ed6a1796480a6f1a2d38f2802901d078266bda38388954d01d3f2e821d/pip-20.1.1-py2.py3-none-any.whl
Installing collected packages: pip
  Found existing installation: pip 19.3.1
    Uninstalling pip-19.3.1:
      Successfully uninstalled pip-19.3.1
Successfully installed pip-20.1.1
(rasa-test) $ pip install rasa
Collecting rasa
  Using cached rasa-1.10.2-py3-none-any.whl (510 kB)
Collecting pika<1.2.0,>=1.1.0
  Using cached pika-1.1.0-py2.py3-none-any.whl (148 kB)
Collecting python-socketio<4.6,>=4.4
  Using cached python_socketio-4.5.1-py2.py3-none-any.whl (51 kB)
Collecting sanic-cors<0.11.0,>=0.10.0b1
  Using cached Sanic_Cors-0.10.0.post3-py2.py3-none-any.whl (17 kB)
Collecting attrs<19.4,>=19.3
  Using cached attrs-19.3.0-py2.py3-none-any.whl (39 kB)
Collecting ruamel.yaml<0.17,>=0.16
  Using cached ruamel.yaml-0.16.10-py2.py3-none-any.whl (111 kB)
Collecting pykwalify<1.8.0,>=1.7.0
  Using cached pykwalify-1.7.0-py2.py3-none-any.whl (40 kB)
Collecting pytz<2020.0,>=2019.1
  Using cached pytz-2019.3-py2.py3-none-any.whl (509 kB)
Collecting redis<4.0,>=3.4
  Using cached redis-3.5.3-py2.py3-none-any.whl (72 kB)
Collecting rasa-sdk<2.0.0,>=1.10.0
  Using cached rasa_sdk-1.10.2-py3-none-any.whl (38 kB)
Collecting sanic<20.0.0,>=19.12.2
  Using cached sanic-19.12.2-py3-none-any.whl (72 kB)
Collecting tensorflow-estimator==2.1.0
  Using cached tensorflow_estimator-2.1.0-py2.py3-none-any.whl (448 kB)
Collecting cloudpickle<1.4,>=1.2
  Using cached cloudpickle-1.3.0-py2.py3-none-any.whl (26 kB)
Collecting colorclass<2.3,>=2.2
  Using cached colorclass-2.2.0.tar.gz (17 kB)
Collecting python-engineio<3.13,>=3.11
  Using cached python_engineio-3.12.1-py2.py3-none-any.whl (49 kB)
Collecting psycopg2-binary<2.9.0,>=2.8.2
  Using cached psycopg2_binary-2.8.5-cp38-cp38-manylinux1_x86_64.whl (3.0 MB)
Collecting oauth2client==4.1.3
  Using cached oauth2client-4.1.3-py2.py3-none-any.whl (98 kB)
Collecting requests<3.0,>=2.23
  Using cached requests-2.24.0-py2.py3-none-any.whl (61 kB)
Collecting PyJWT<1.8,>=1.7
  Using cached PyJWT-1.7.1-py2.py3-none-any.whl (18 kB)
Collecting aiohttp<3.7,>=3.6
  Using cached aiohttp-3.6.2-py3-none-any.whl (441 kB)
Collecting SQLAlchemy<1.4.0,>=1.3.3
  Using cached SQLAlchemy-1.3.18-cp38-cp38-manylinux2010_x86_64.whl (1.3 MB)
Collecting tqdm<4.46,>=4.31
  Using cached tqdm-4.45.0-py2.py3-none-any.whl (60 kB)
Collecting scikit-learn<0.23,>=0.22
  Using cached scikit_learn-0.22.2.post1-cp38-cp38-manylinux1_x86_64.whl (7.0 MB)
Collecting rocketchat_API<1.4.0,>=0.6.31
  Using cached rocketchat_API-1.3.1-py3-none-any.whl (9.6 kB)
Collecting multidict<5.0,>=4.6
  Using cached multidict-4.7.6-cp38-cp38-manylinux1_x86_64.whl (162 kB)
Collecting slackclient<3.0.0,>=2.0.0
  Using cached slackclient-2.7.2-py2.py3-none-any.whl (70 kB)
Collecting ujson<3.0,>=1.35
  Using cached ujson-2.0.3-cp38-cp38-manylinux1_x86_64.whl (177 kB)
Collecting webexteamssdk<1.4.0,>=1.1.1
  Using cached webexteamssdk-1.3.tar.gz (56 kB)
Collecting twilio<6.27,>=6.26
  Using cached twilio-6.26.3-py2.py3-none-any.whl (979 kB)
Collecting absl-py<0.10,>=0.9
  Using cached absl-py-0.9.0.tar.gz (104 kB)
Collecting sanic-jwt<1.5.0,>=1.3.2
  Using cached sanic-jwt-1.4.1.tar.gz (19 kB)
Collecting fbmessenger<6.1.0,>=6.0.0
  Using cached fbmessenger-6.0.0-py2.py3-none-any.whl (11 kB)
Collecting sklearn-crfsuite<0.4,>=0.3
  Using cached sklearn_crfsuite-0.3.6-py2.py3-none-any.whl (12 kB)
Collecting colorhash<1.1.0,>=1.0.2
  Using cached colorhash-1.0.2-py2.py3-none-any.whl (6.0 kB)
Collecting questionary<1.6.0,>=1.5.1
  Using cached questionary-1.5.2-py3-none-any.whl (26 kB)
Collecting scipy<2.0.0,>=1.4.1
  Using cached scipy-1.5.0-cp38-cp38-manylinux1_x86_64.whl (25.7 MB)
Collecting numpy<2.0,>=1.16
  Using cached numpy-1.19.0-cp38-cp38-manylinux2010_x86_64.whl (14.6 MB)
Collecting coloredlogs<11.0,>=10.0
  Using cached coloredlogs-10.0-py2.py3-none-any.whl (47 kB)
Collecting jsonschema<3.3,>=3.2
  Using cached jsonschema-3.2.0-py2.py3-none-any.whl (56 kB)
Collecting prompt-toolkit<3.0,>=2.0
  Using cached prompt_toolkit-2.0.10-py3-none-any.whl (340 kB)
Collecting mattermostwrapper<2.3,>=2.2
  Using cached mattermostwrapper-2.2.tar.gz (2.5 kB)
ERROR: Could not find a version that satisfies the requirement tensorflow-addons<0.8.0,>=0.7.1 (from rasa) (from versions: 0.10.0)
ERROR: No matching distribution found for tensorflow-addons<0.8.0,>=0.7.1 (from rasa)
sara-tagger commented 4 years ago

Thanks for raising this issue, @alwx will get back to you about it soon✨

Please also check out the docs and the forum in case your issue was raised there too πŸ€—
erohmensing commented 4 years ago

Hi @qlixed, you can see on the installation page that Rasa Open source currently requires python 3.6 or 3.7.

qlixed commented 4 years ago

Any ETA for the support for python 3.8?

erohmensing commented 4 years ago

No ETA yet, it just became possible last month as we were waiting on a new compatible tensorflow version. But it is coming soon πŸ™‚