AttributeError: 'Sanic' object has no attribute 'auth'

Rasa Version : 2.6.3 Rasa SDK Version : 2.8.1 Rasa X Version : 0.40.1 Python Version : 3.7.0 Operating System : Windows 10

I am trying to run rasa-x using “rasa x”. The browser window opens up but nothing displays, and the command prompt shows error “AttributeError: ‘Sanic’ object has no attribute ‘auth’”

2 Likes

Your Rasa and Rasa SDK versions are different.

Please either downgrade Rasa SDK to 2.6 (pip install rasa-sdk==2.6.0) or upgrade Rasa to 2.8 (pip install rasa==2.8.1) and try again.

1 Like

Thanks @ChrisRahme for the quick reply, tried your solution but getting the same error.

Sorry I have missed the Rasa X version.

Try these combinations:

  • Rasa 2.6.3 - Rasa SDK 2.6.0 - Rasa X 0.40.0
  • Rasa 2.8.2 - Rasa SDK 2.8.1 - Rasa X 0.42.0

Follow this Compatibility Matrix.

Now a new error message has popped up for both the combinations

Try opening Rasa X on a rasa init project.

If there are no errors, then we know the problem is in your project and can troubleshoot.

Not working, the same “AttributeError: ‘Sanic’ object has no attribute ‘auth’” is coming on a rasa init project. However, rasa shell is working on all the cases

Maybe @nik202 can help here, he’s been fixing these kinds of issues on the forum.

1 Like

Okay, thank you so much for giving your time.

1 Like

@AnkitChouhan Hi, What is your error screenshot, can you please share?

@AnkitChouhan If it for sanic issue, first check the version of sanic using pip list then install

pip install sanic==20.9.0

Hope this will solve you issue.

Hi @nik202

This is the error I am getting now, even after trying rasa-x on fresh project.

@AnkitChouhan you original topic is regarding sanic, did it solve? Or for this

pip install SQLAlchemy==1.3.22

Share rasa version for me:

rasa --version

Try and let me know.

No, that sanic issue is still there.

  1. For combination Rasa Version : 2.6.3 Rasa SDK Version : 2.8.1 Rasa X Version : 0.40.1 Python Version : 3.7.0 Operating System : Windows 10, still getting the sanic error.

  2. For combination Rasa Version : 2.8.2 Rasa SDK Version : 2.8.1 Rasa X Version : 0.42.0 Python Version : 3.7.0 (These are latest version provided by pip) getting that sqlalchemy error,(screenshot pasted above)

Didn’t work: rasa-x 0.42.0 requires SQLAlchemy<2.0.0,>=1.4.0, but you’ll have sqlalchemy 1.3.22 which is incompatible.

@AnkitChouhan The problem is your rasa version.

@AnkitChouhan Install as I wrote:

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

If you get error of sql install above version in my past post. Try and let me know.

What combination should I try?

Tried with your combination, getting the same sanic error : AttributeError: ‘Sanic’ object has no attribute ‘auth’

@AnkitChouhan rasa version?

Rasa Version : 2.8.1 Minimum Compatible Version: 2.8.0 Rasa SDK Version : 2.8.1 Rasa X Version : 0.39.3 Python Version : 3.7.0 Operating System : Windows-10-10.0.19041-SP0

1 Like

@AnkitChouhan

I guess your sanic package have compatibility issue, can you share me sanic related packages detail using pip list?

@AnkitChouhan Do check these courses as we discussed:

For Rasa Courses:

  1. [Official] Rasa Certification Workshop
  2. Rasa Advanced Custom Actions, Forms, & Responses Workshop
  3. Rasa Advanced Deployment Workshop
  4. [Free] Rasa for Beginners