Rasa 3.0 error socket.io

I’ll check all packages and i’ll let you know

@Euler Just try fix the dependencies issue or downgrade the versions, your machine is window so just solve it, I know you can do it.

@Euler do even try sanic==20.9.0 in case.

@nik202 , I did, everything that was in my power, I updated all the packages according to the requisite3.0.2.txt file that you sent me, and I still have the same problem.

I’m finding rasa 3.0 doesn’t work with socket.io .

@Euler Ok, what is your current version? and sorry for late reply.

Testei as versões superiores a 2.2.0, e nenhuma delas o socket.io funcionou para mim. Hoje eu estou utilizando a versão: 2.0.2.

@Euler I not understand your language but your version is 2.8.3 did you downgraded from 3.x? You not able to run the rasa shell even or you are doing integration with some third party frontend ?

Hi @nik202

The versions you list seem to be incompatible according to pip:

rasa 3.0.2 requires sanic-routing<0.8.0,>=0.7.2, but you have sanic-routing 0.7.0 which is incompatible.
sanic 21.6.0 requires sanic-routing==0.7.0, but you have sanic-routing 0.7.2 which is incompatible.

When I run

pip install sanic==21.6.0 Sanic-Cors==1.0.0 sanic-jwt==1.7.0 sanic-plugin-toolkit==1.2.0 Sanic-Plugins-Framework==0.9.5 sanic-routing==0.7.0

I get

ERROR: Cannot install sanic-cors==1.0.0, sanic-plugin-toolkit==1.2.0, sanic-plugins-framework==0.9.5 and sanic==21.6.0 because these package versions have conflicting dependencies.

The conflict is caused by:
    The user requested sanic==21.6.0
    sanic-cors 1.0.0 depends on sanic<22 and >=21.3.1
    sanic-plugin-toolkit 1.2.0 depends on sanic
    sanic-plugins-framework 0.9.5 depends on sanic<21 and >=18.12.0

To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip attempt to solve the dependency conflict

ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/user_guide/#fixing-conflicting-dependencies

@rafa21 Yeps, I know :slight_smile: that’s why in my post I emphasised take care of dependencies as user have different pip versions for dealing we can use --use-deprecated=legacy-resolver.

I am having a similar issue, socket.io doesn’t work (rest does but I am trying to test the webchat), I am running on MacOS. I followed your instructions for RASA 3.0.2 but with no luck.

Here is the error when I call http://0.0.0.0:5005/socket.io:

The client is using an unsupported version of the Socket.IO or Engine.IO protocols (further occurrences of this error will be logged with level INFO)
[2022-01-07 09:17:57 +0100] [20522] [ERROR] Exception occurred while handling uri: 'http://0.0.0.0:5005/socket.io'
Traceback (most recent call last):
  File "handle_request", line 83, in handle_request
    class Sanic(BaseSanic, metaclass=TouchUpMeta):
  File "/Users/cyberandy/.chat_rasa/lib/python3.7/site-packages/engineio/asyncio_server.py", line 236, in handle_request
    ), environ)
  File "/Users/cyberandy/.chat_rasa/lib/python3.7/site-packages/engineio/asyncio_server.py", line 388, in _make_response
    response_dict['response'], environ)
  File "/Users/cyberandy/.chat_rasa/lib/python3.7/site-packages/engineio/async_drivers/sanic.py", line 103, in make_response
    status=int(status.split()[0]), headers=headers_dict)
TypeError: 'NoneType' object is not callable
[2022-01-07 09:17:58 +0100] [20522] [ERROR] Exception occurred while handling uri: 'http://0.0.0.0:5005/socket.io'
Traceback (most recent call last):
  File "handle_request", line 83, in handle_request
    class Sanic(BaseSanic, metaclass=TouchUpMeta):
  File "/Users/cyberandy/.chat_rasa/lib/python3.7/site-packages/engineio/asyncio_server.py", line 236, in handle_request
    ), environ)
  File "/Users/cyberandy/.chat_rasa/lib/python3.7/site-packages/engineio/asyncio_server.py", line 388, in _make_response
    response_dict['response'], environ)
  File "/Users/cyberandy/.chat_rasa/lib/python3.7/site-packages/engineio/async_drivers/sanic.py", line 103, in make_response
    status=int(status.split()[0]), headers=headers_dict)
TypeError: 'NoneType' object is not callable

Here are the versions of the packages that I am using:

absl-py==0.13.0
aio-pika==6.8.0
aiofiles==0.8.0
aiohttp==3.7.4
aioredis==2.0.0
aiormq==3.3.1
alembic==1.4.3
APScheduler==3.7.0
astunparse==1.6.3
async-generator==1.10
async-timeout==3.0.1
attrs==19.3.0
bidict==0.21.4
boto3==1.20.24
botocore==1.23.24
CacheControl==0.12.10
cached-property==1.5.2
cachetools==4.2.4
certifi==2021.10.8
cffi==1.15.0
chardet==3.0.4
charset-normalizer==2.0.9
clang==5.0
cloudpickle==1.6.0
colorclass==2.2.2
coloredlogs==15.0.1
colorhash==1.0.4
croniter==1.1.0
cryptography==3.4.8
cycler==0.11.0
dask==2021.11.2
decorator==4.4.2
dm-tree==0.1.6
dnspython==1.16.0
docopt==0.6.2
fbmessenger==6.0.0
fire==0.4.0
flatbuffers==1.12
fsspec==2021.11.1
future==0.18.2
gast==0.4.0
gitdb==4.0.9
GitPython==3.1.24
google-auth==2.3.3
google-auth-oauthlib==0.4.6
google-pasta==0.2.0
greenlet==1.1.2
grpcio==1.43.0
h11==0.9.0
h5py==3.1.0
httpcore==0.11.1
httptools==0.3.0
httpx==0.15.4
humanfriendly==10.0
idna==2.10
importlib-metadata==4.9.0
isodate==0.6.1
jmespath==0.10.0
joblib==1.0.1
jsonpickle==2.0.0
jsonschema==3.2.0
kafka-python==2.0.2
keras==2.6.0
Keras-Preprocessing==1.1.2
kiwisolver==1.3.2
locket==0.2.1
lxml==4.7.1
Mako==1.1.6
Markdown==3.3.6
MarkupSafe==2.0.1
matplotlib==3.3.4
mattermostwrapper==2.2
msgpack==1.0.3
multidict==5.0.0
networkx==2.5.1
numpy==1.19.5
oauthlib==3.1.1
opt-einsum==3.3.0
packaging==20.9
pamqp==2.3.0
partd==1.2.0
pathspec==0.9.0
pika==1.2.0
Pillow==8.4.0
prompt-toolkit==2.0.10
protobuf==3.19.1
psycopg2-binary==2.9.2
pyasn1==0.4.8
pyasn1-modules==0.2.8
pycparser==2.21
pydot==1.4.2
PyJWT==2.0.0
pykwalify==1.8.0
pymongo==3.10.1
pyparsing==3.0.6
pyrsistent==0.18.0
pyTelegramBotAPI==3.8.3
python-crfsuite==0.9.7
python-dateutil==2.8.2
python-editor==1.0.4
python-engineio==4.3.0
python-socketio==5.5.0
python3-saml==1.12.0
pytz==2021.3
PyYAML==6.0
questionary==1.5.2
randomname==0.1.5
rasa==3.0.2
rasa-sdk==3.0.2
rasa-x==1.0.0
redis==3.5.3
regex==2021.7.6
requests==2.25.1
requests-oauthlib==1.3.0
requests-toolbelt==0.9.1
rfc3986==1.5.0
rocketchat-API==1.16.0
rsa==4.8
ruamel.yaml==0.16.13
ruamel.yaml.clib==0.2.6
s3transfer==0.5.0
sanic==21.9.3
Sanic-Cors==1.0.1
sanic-jwt==1.6.0
sanic-plugin-toolkit==1.2.0
Sanic-Plugins-Framework==0.9.5
sanic-routing==0.7.2
scikit-learn==0.24.2
scipy==1.7.3
sentry-sdk==1.2.0
six==1.15.0
sklearn-crfsuite==0.3.6
slackclient==2.9.3
smmap==5.0.0
sniffio==1.2.0
SQLAlchemy==1.4.28
tabulate==0.8.9
tarsafe==0.0.3
tensorboard==2.7.0
tensorboard-data-server==0.6.1
tensorboard-plugin-wit==1.8.0
tensorflow==2.6.1
tensorflow-addons==0.14.0
tensorflow-estimator==2.6.0
tensorflow-hub==0.12.0
tensorflow-probability==0.13.0
tensorflow-text==2.6.0
termcolor==1.1.0
terminaltables==3.1.10
threadpoolctl==3.0.0
toolz==0.11.2
tqdm==4.62.3
twilio==6.50.1
typeguard==2.13.3
typing-extensions==3.7.4.3
typing-utils==0.1.0
tzlocal==2.1
ujson==1.35
urllib3==1.26.7
uvloop==0.14.0
wcwidth==0.2.5
webexteamssdk==1.6
websockets==10.1
Werkzeug==2.0.2
wrapt==1.12.1
xmlsec==1.3.12
yamllint==1.26.3
yarl==1.7.2
zipp==3.6.0

And exactly the same problem I have here, I’m thinking the problem is in the web part, where do I download the most updated version of webchat.js?

@cyberandy I’m wondering, I have same configurations and I’m able to see the chatbot on my Mac Machine, without an issue.

@Euler for you reference Euler, I’m attaching the requirement.txt file for my current working environment may it will help you, try see the other packages version. requirements3.0.2.txt (3.0 KB)

Note: Above file is based on Mac OS installation of rasa 3.0.2

I will even work around my Window Machine for the same in next few days and get back you guys.

I’ve updated exactly with the requirements3.0.2.txt file you posted, and it’s still giving me the error, as shown in the image:

Can you forward me the chatbot HTML page and the webchat.js file

@Euler I was facing the same issue too on Windows and rasa 3.0.2, I managed to resolve it by using the following sanic version. pip install sanic==21.6.2 . I can confirm it now works. you should try it all the best .

@tinayemakoni, can you forward me your package list: pip freeze > requirement.txt

@Euler please see this: TypeError on Rasa 3.0 'NoneType' object is not callable - #25 by tinayemakoni

@nik202, Here is my set of packages.

requirements_python3_8_10__Rasa_3_0_2.txt (3.5 KB)

1 Like

@Euler have you seen the tinayemakoni requirement.txt file from the above mention thread and tried updated the version mentioned?