Exception 'Loop' object has no attribute '_ready' looping in rasa shell

Hi, I just freshly installed RASA following the tutorial. I’m on Mac OS and I’m using Python 3.7. I had conflict when initialising a virtualenv using the --system-site-packages option, so I created a virtualenv without that option. I manage to install RASA until the end, and initialise a project, as per tutorial. RASA ran the preliminary training upon initialisation. Now, when I try testing it with rasa shell, it goes mad and start looping showing Exception Loop' object has no attribute '_ready', asking continuously Press ENTER to continue.... When I press ENTER, it stops, but my shell is messed up and basically doesn’t work properly anymore.

@amn41

Check out this post for the solution.

Yeap, that workd. I created a requirements.txt file with the following content, as per GitHub thread

google-auth==1.10.1
prompt-toolkit==2.0.10
questionary==1.4.0
SQLAlchemy==1.3.12
urllib3==1.25.7

and installed it. Now it seems to work properly.

Glad I was able to help.

Hi, I’m not sure, but probably w.r.t. the pip installation, you may want to add also tensorflow==1.15.0 to the list. Even after downgrading the requirements that way, rasa was unable to initialise a project with rasa init --no-prompt, ending up in the Module for policy ‘MemoizationPolicy’ could not be loaded. Please make sure the name is a valid policy exception, generated by the AttributeError: module ‘tensorflow’ has no attribute ‘to_float’, which in turn was due to the wrong version of tensorflow installed with the pip command (1.15.1). I posted this solution already under the related thread here.

Yes @McKracken I know there is an issue with rasa and tensorflow version compatibility.

Thanks @varunsapre10 and @McKracken now it seems like have resolved .

I’ve encountered this problem despite this being marked as resolved as of 1.6.2. I’m using Rasa 1.7.2.

Here are the versions I am using of the dependencies previously mentioned:

urllib3==1.25.8
SQLAlchemy==1.3.13
questionary==1.5.1
prompt-toolkit==3.0.3
google-auth==1.11.2
tensorflow==1.15.2

The rest of requirements.txt:

absl-py==0.9.0
aiofiles==0.4.0
aiohttp==3.6.2
appnope==0.1.0
APScheduler==3.6.3
astor==0.8.1
async-generator==1.10
async-timeout==3.0.1
attrs==19.3.0
Automat==20.2.0
backcall==0.1.0
bleach==3.1.0
boto3==1.12.2
botocore==1.15.2
bz2file==0.98
cachetools==4.0.0
certifi==2019.11.28
cffi==1.14.0
chardet==3.0.4
Click==7.0
cloudpickle==1.2.2
colorclass==2.2.0
coloredlogs==10.0
colorhash==1.0.2
ConfigArgParse==1.0
constantly==15.1.0
cryptography==2.8
cycler==0.10.0
cymem==2.0.3
cytoolz==0.9.0.1
decorator==4.4.1
defusedxml==0.6.0
dill==0.2.9
dnspython==1.16.0
docopt==0.6.2
docutils==0.15.2
dopamine-rl==3.0.1
en-core-web-md==2.0.0
en-core-web-sm==2.0.0
entrypoints==0.3
fbmessenger==6.0.0
Flask==1.1.1
Flask-Cors==3.0.8
future==0.17.1
gast==0.2.2
gevent==1.4.0
gin-config==0.3.0
google-api-python-client==1.7.11
google-auth==1.11.2
google-auth-httplib2==0.0.3
google-pasta==0.1.8
googleapis-common-protos==1.51.0
greenlet==0.4.15
grpcio==1.27.2
gunicorn==20.0.4
gym==0.16.0
h11==0.8.1
h2==3.2.0
h5py==2.10.0
hpack==3.0.0
httpcore==0.3.0
httplib2==0.17.0
httptools==0.1.1
humanfriendly==7.1.1
hyperframe==5.2.0
hyperlink==19.0.0
idna==2.8
idna-ssl==1.1.0
importlib-metadata==1.5.0
incremental==17.5.0
ipykernel==5.1.4
ipython==7.12.0
ipython-genutils==0.2.0
itsdangerous==1.1.0
jedi==0.16.0
Jinja2==2.11.1
jmespath==0.9.4
jsonpickle==1.3
jsonschema==3.2.0
jupyter-client==5.3.4
jupyter-core==4.6.1
Keras-Applications==1.0.8
Keras-Preprocessing==1.1.0
kfac==0.2.0
kiwisolver==1.1.0
klein==17.10.0
Markdown==3.2.1
MarkupSafe==1.1.1
matplotlib==3.1.3
mattermostwrapper==2.2
mesh-tensorflow==0.1.9
mistune==0.8.4
mock==4.0.1
mpmath==1.1.0
msgpack==0.5.6
msgpack-numpy==0.4.3.2
multidict==4.6.1
murmurhash==1.0.2
nbconvert==5.6.1
nbformat==5.0.4
networkx==2.4
notebook==6.0.3
numpy==1.18.1
oauth2client==4.1.3
opencv-python==4.2.0.32
opt-einsum==3.1.0
packaging==19.2
pandocfilters==1.4.2
parso==0.6.1
pexpect==4.8.0
pickleshare==0.7.5
pika==1.0.1
Pillow==7.0.0
plac==0.9.6
preshed==2.0.1
prometheus-client==0.7.1
promise==2.3
prompt-toolkit==3.0.3
protobuf==3.11.3
ptyprocess==0.6.0
pyasn1==0.4.8
pyasn1-modules==0.2.8
pycparser==2.19
pydot==1.4.1
pyglet==1.5.0
Pygments==2.5.2
PyHamcrest==2.0.0
PyJWT==1.7.1
pykwalify==1.7.0
pymongo==3.10.1
pyparsing==2.4.6
pypng==0.0.20
pyrsistent==0.15.7
python-crfsuite==0.9.6
python-dateutil==2.8.1
python-engineio==3.11.2
python-socketio==4.4.0
python-telegram-bot==11.1.0
pytz==2019.3
PyYAML==5.3
pyzmq==18.1.1
questionary==1.5.1
rasa==1.7.2
rasa-core-sdk==0.14.0
rasa-nlu==0.15.1
rasa-sdk==1.7.0
redis==3.3.11
regex==2018.1.10
requests==2.22.0
requests-async==0.5.0
requests-toolbelt==0.9.1
rfc3986==1.3.2
rocketchat-API==0.6.36
rsa==4.0
ruamel.yaml==0.15.100
s3transfer==0.3.3
sanic==19.9.0
Sanic-Cors==0.9.9.post1
sanic-jwt==1.4.0
Sanic-Plugins-Framework==0.9.1
scikit-learn==0.20.4
scipy==1.4.1
Send2Trash==1.5.0
simplejson==3.17.0
six==1.14.0
sklearn-crfsuite==0.3.6
slackclient==1.3.2
spacy==2.0.18
SQLAlchemy==1.3.13
sympy==1.5.1
tabulate==0.8.6
tensor2tensor==1.14.1
tensorboard==1.15.0
tensorflow==1.15.2
tensorflow-cpu==1.15.0
tensorflow-cpu-estimator==1.15.1
tensorflow-datasets==2.0.0
tensorflow-estimator==1.15.1
tensorflow-gan==2.0.0
tensorflow-hub==0.6.0
tensorflow-metadata==0.21.1
tensorflow-probability==0.7.0
tensorflow-text==1.15.1
termcolor==1.1.0
terminado==0.8.3
terminaltables==3.1.0
testpath==0.4.4
thinc==6.12.1
toolz==0.10.0
tornado==6.0.3
tqdm==4.42.1
traitlets==4.3.3
twilio==6.35.4
Twisted==19.10.0
typing==3.7.4.1
typing-extensions==3.7.4.1
tzlocal==2.0.0
ujson==1.35
uritemplate==3.0.1
urllib3==1.25.8
uvloop==0.14.0
wcwidth==0.1.8
webencodings==0.5.1
webexteamssdk==1.2
websocket-client==0.54.0
websockets==8.1
Werkzeug==1.0.0
wrapt==1.12.0
yarl==1.4.2
zipp==3.0.0
zope.interface==4.7.1

Should I downgrade to the suggested versions?