Error when run command rasa x

@firstchn please delete .db files of events and rasa and then run rasa x.

@nik202 I really appreciate your help here in the forum! :pray: :slightly_smiling_face:

I am facing similar issues with starting rasa x in local mode… It basically starts rasa x, but then it says there is no model active, which makes no sense in local mode. The error message I get is: asyncio.exceptions.TimeoutError

These are my rasa versions:

Rasa Version      :         2.8.2
Minimum Compatible Version: 2.8.0
Rasa SDK Version  :         2.8.1
Rasa X Version    :         0.42.0
Python Version    :         3.8.2
Operating System  :         macOS-11.5.2-x86_64-i386-64bit

Many thanks in advance for any help :upside_down_face: By the way: nice profile pic :wink:

1 Like

@jackpotandy

Step 1:

pip install rasa==2.8.1

Step 2:

pip install rasa-x==0.39.3 --extra-index-url https://pypi.rasa.com/simple

Step 3:

((if?)You will see some error : ImportError: cannot import name ‘RowProxy’ from ‘sqlalchemy.engine’ Install)

pip install SQLAlchemy==1.3.22

Step 4:

If sanic related error:

pip install sanic-jwt==1.6.0

Step 5:

delete .db database file ‘events’ and ‘rasa’ and it will work and .db file automatic created as you run rasa x.

Lol, thanks Andreas. I hope this will solve your issue, do let me know if you got any new error.

thankyou sir i will do it again

@nik202 so have to delete it in root folder right sir? i trying to find .db file but i cant see it

@firstchn please don’t call me sir :slight_smile: just nik

@firstchn in your project folder check you will able to see, do you have project created using rasa init?Screenshot 2021-08-20 at 11.07.43 AM

@firstchn did you find it?

I’m still get this nik

@firstchn this is not the full error, please share full

@firstchn Did you followed these steps?

Step 1:

pip install rasa==2.8.1

Step 2:

pip install rasa-x==0.39.3 --extra-index-url https://pypi.rasa.com/simple

Step 3:

((if?)You will see some error : ImportError: cannot import name ‘RowProxy’ from ‘sqlalchemy.engine’ Install)

pip install SQLAlchemy==1.3.22

Step 4:

If sanic related error:

pip install sanic-jwt==1.6.0

Step 5: alembic related error:

delete .db database file ‘events’ and ‘rasa’ and it will work and .db file automatic created as you run rasa x.

Yes, nik i follow all of your step, i will try it again

@nik202 will install all of it again, please keep helping me if im still got error :slight_smile:

@firstchn you need to see every step and for this error delete .db files and run rasa x

@nik202

i delete all .db files nik

@firstchn now run rasa x

finally got it nik , really appreciate your help thankyou for your time spending with beginner like me. If i have more problem please help me :slight_smile:

by the way do i need to solve with this error?

@firstchn please close this thread now with the solution for other and congrts.

ok thankyou, lastly how to close thread nik

@firstchn mark solution on this thread Error when run command rasa x - #17 by nik202 for the reference for other user. Thanks.

@nik202 Many thanks for your answer & suggestion!

I tried your approach. I played around with it several times and I unfortunately must say that it’s not a very promising solution to my problem. In general your suggestion did work! I followed all of the steps and rasa x finally was running properly in local mode.

However this approach is not conform with the Compatiblity Matrix of Rasa. Even if you seem to have found a workaround for this (e.g. another sanic version). It nevertheless leads to another problem…

I’ve set up a Kubernetes Cluster on GCP (Rasa OS = 2.8.1 / Rasa X = 0.42.0). I can upload a model trained on the basis of your approach but when starting rasa x on the sever the bot does not respond!

I’m not sure if this is a result of following your approach (different rasa x version locally than on server) or if there is any other problem…

Happy to receive any further feedback :slightly_smiling_face:

@jackpotandy Honestly, your point is right why it’s not working with the rasa-x latest for that you need to approach to rasa team, personally I not work much on Rasa-X my project is working on rasa open source, I explore this solution and with some other users suggestion and come up with this solution and I’m suggesting this only till there is some official update. I don’t tried experimenting much with other rasa-x as per my time and prior office appointments. I neither working on GCP, so can’t comment on that too. But, If I got the chance I will discuss your point with rasa team. I always recommend not to disturb your current working environment, but trust me It’s not because of my suggestion and if because of me I appologies. I only suggested to run on localhost not on server etc. Thanks for the valuable feedback and for your time. - Nik