question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Rasa init breaks on Windows/Mac/Ubuntu due to `CompositionView` in Sanic.

See original GitHub issue

Just 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:closed
  • Created 2 years ago
  • Reactions:3
  • Comments:11 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
afzalmushtaquecommented, Dec 27, 2021

pip install sanic==21.9.3 works for now…

2reactions
ahopkinscommented, Jan 3, 2022

Looks like there already is a PR to fix this: https://github.com/RasaHQ/rasa/pull/10590

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found