Rasa init breaks on Windows/Mac/Ubuntu due to `CompositionView` in Sanic.
See original GitHub issueJust got notified from my Rasa install Cron. It seems on Monday 27th Dec 2021 all of the rasa init
calls break. Here’s the traceback:
> python -m rasa init --no-prompt
Traceback (most recent call last):
File "/opt/hostedtoolcache/Python/3.7.12/x64/lib/python3.7/runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "/opt/hostedtoolcache/Python/3.7.12/x64/lib/python3.7/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/opt/hostedtoolcache/Python/3.7.12/x64/lib/python3.7/site-packages/rasa/__main__.py", line 14, in <module>
from rasa.cli import (
File "/opt/hostedtoolcache/Python/3.7.12/x64/lib/python3.7/site-packages/rasa/cli/export.py", line 9, in <module>
import rasa.core.utils
File "/opt/hostedtoolcache/Python/3.7.12/x64/lib/python3.7/site-packages/rasa/core/utils.py", line 25, in <module>
from sanic.views import CompositionView
ImportError: cannot import name 'CompositionView' from 'sanic.views' (/opt/hostedtoolcache/Python/3.7.12/x64/lib/python3.7/site-packages/sanic/views.py)
I can also confirm on pypi that Sanic just released a new version (v21.12.0) on the 26th.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:3
- Comments:11 (2 by maintainers)
Top Results From Across the Web
Rasa init fails due to sanic exception
I tried to downgrade sanic package but it broke other dependencies. ... Is this happening when you run rasa train ? Can you...
Read more >Cannot execute any Rasa command after a fresh installation ...
After a long search I have found the solution. The error was caused by a wrong verion of Sanic. After excution of the...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
pip install sanic==21.9.3 works for now…
Looks like there already is a PR to fix this: https://github.com/RasaHQ/rasa/pull/10590