TypeError on Rasa 3.0 'NoneType' object is not callable

Can you assist me with this TypeError on Rasa 3.0 ‘NoneType’ object is not callable.

It occurs when I want to run rasa 3 using rasa run -m models --enable-api --cors “*” --debug

Please share:

  • The output of rasa --version
  • Your endpoints.yml file
  • Your credentials.yml file

So I managed to resolve the TypeError: ‘NoneType’ by fixing compatibility issues with socket.io, but now the challenge is that the webchat is not responding hence I am not able to integrate the chatbot to my website.

Hello and Welcome to the Forum :bouquet:!

@tinayemakoni This issue is related to Sanic and SocketIO

Please update these packages and dependencies issues and even pip version also give issue.

python-engineio==4.3.0
python-socketio==5.5.0
rasa==3.0.2
rasa-sdk==3.0.2
sanic==21.6.0
Sanic-Cors==1.0.0
sanic-routing==0.7.0
sanic-jwt==1.7.0
sanic-plugin-toolkit==1.2.0
Sanic-Plugins-Framework==0.9.5
socketIO-client==0.7.2

OR Ref this thread for more detail discussion: Rasa 3.0 error socket.io - #13 by nik202

Tip: you can use --use-deprecated=legacy-resolver if you need so.

Good Luck!

I tried all possible fixies that you recommended but it is still not working with Rasa 3 versions. The integration with webchat has been a problem, kindly assist me I am using Linux Ubuntu not [Macos] . Thank you @nik202 for welcoming me to this wonderful community.

@tinayemakoni That it strange, can you tell us what is your frontend? and can you share the update versions of the packages I recommended ? Do share rasa --version please.

socketio

@tinayemakoni you need to change the version from 1.x.x to 1.0.1 in line 9 and then try.

@nik202 I have done so but it hasn’t worked thats the error I am getting

@tinayemakoni I asked you to please share your updated versions for your rasa --version? Then only I can comment further? To check the packages use pip list while activating env.

@nik202 this is the result of pip list and the rasa version.

absl-py 0.13.0
aio-pika 6.8.0
aiofiles 0.8.0
aiohttp 3.7.4
aiormq 3.3.1
APScheduler 3.7.0
astunparse 1.6.3
async-generator 1.10
async-timeout 3.0.1
attrs 21.2.0
bidict 0.21.4
boto3 1.20.17
botocore 1.23.17
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
clang 5.0
click 8.0.3
cloudpickle 1.6.0
colorclass 2.2.0
coloredlogs 15.0.1
colorhash 1.0.4
cryptography 3.4.8
cycler 0.11.0
dask 2021.11.2 decorator 5.1.0
dm-tree 0.1.6
dnspython 1.16.0
docopt 0.6.2
eventlet 0.33.0
fbmessenger 6.0.0
fire 0.4.0
Flask 2.0.2
Flask-SocketIO 5.1.1
flatbuffers 1.12
fsspec 2021.11.1 future 0.18.2
gast 0.4.0
gevent 21.8.0
gevent-websocket 0.10.1
google-auth 2.3.3
google-auth-oauthlib 0.4.6
google-pasta 0.2.0
greenlet 1.1.2
grpcio 1.42.0
h11 0.8.1
h2 3.2.0
h5py 3.1.0
hpack 3.0.0
httpcore 0.11.1
httptools 0.3.0
httpx 0.15.4
humanfriendly 10.0
hyperframe 5.2.0
idna 2.10
importlib-metadata 4.8.2
itsdangerous 2.0.1
Jinja2 3.0.3
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
Markdown 3.3.6
MarkupSafe 2.0.1
matplotlib 3.3.4
mattermostwrapper 2.2
msgpack 1.0.3
multidict 5.2.0
networkx 2.6.3
numpy 1.19.5
oauthlib 3.1.1
opt-einsum 3.3.0
packaging 20.9
pamqp 2.3.0
partd 1.2.0
Pillow 8.4.0
pip 20.0.2
pkg-resources 0.0.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.1.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-engineio 4.3.0
python-socketio 5.5.0
pytz 2021.3
PyYAML 6.0
questionary 1.10.0
randomname 0.1.5
rasa 3.0.2
rasa-sdk 3.0.2
redis 3.5.3
regex 2021.8.28 requests 2.25.1
requests-async 0.5.0
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.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
scikit-learn 0.24.2
scipy 1.7.3
sentry-sdk 1.3.1
setuptools 44.0.0
simple-websocket 0.4.0
six 1.15.0
sklearn-crfsuite 0.3.6
slackclient 2.9.3
sniffio 1.2.0
socketIO-client 0.7.2
SQLAlchemy 1.4.27
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.0
threadpoolctl 3.0.0
toolz 0.11.2
tqdm 4.62.3
twilio 6.50.1
typeguard 2.13.2
typing-extensions 3.7.4.3
typing-utils 0.1.0
tzlocal 2.1
ujson 4.3.0
urllib3 1.26.7
uvloop 0.14.0
wcwidth 0.2.5
webexteamssdk 1.6
websocket-client 1.2.1
websockets 10.1
Werkzeug 2.0.2
wheel 0.37.1
wrapt 1.12.1
wsproto 1.0.0
yarl 1.7.2
zipp 3.6.0
zope.event 4.5.0
zope.interface 5.4.0

@tinayemakoni That’s very strange on the same versions I am able to see the bot and it’s working fine.

@nik202 its quite strange indeed, let me try and start over again and see if I can manage to fix it

@tinayemakoni I can confirm that I can able to see the bot on my machine using same snippet code, may be there can be some code or credentials.yml issue. Please follow proper steps and just use the script code in index.html file and don’t mention anything like body h1 heading etc.

@tinayemakoni are you able to fix this issue?

@nik202 unfortunately I haven’t been able to resolve it yet, I am reinstalling rasa 3.0.2

@nik202 I tried the recommendations, still no success

@tinayemakoni are you able to solved this issue, please close this thread as solution.

Hi @nik202, I managed to solve it by using sanic version 21.6.2. Thank you. How do I close this thread?

@tinayemakoni I guess we have tried that Sanic version is that right? Can you share the other related versions of sanic at the time you downgrade or up-grade the sanic version? I mean Cors , Routing etc etc one.Even please share the rasa --version with them.