Forums

ModuleNotFoundError: No module named 'channels'

so, i was following this tutorial and everything was fine

and then this stupid error showed up:

Error running WSGI application
 ModuleNotFoundError: No module named 'channels'
   File "/var/www/rech2020_pythonanywhere_com_wsgi.py", line 22, in <module>
     application = get_wsgi_application()

   File "/usr/local/lib/python3.8/dist-packages/django/core/wsgi.py", line 12, in get_wsgi_application
     django.setup(set_prefix=False)

   File "/usr/local/lib/python3.8/dist-packages/django/__init__.py", line 24, in setup
     apps.populate(settings.INSTALLED_APPS)

   File "/usr/local/lib/python3.8/dist-packages/django/apps/registry.py", line 91, in populate
     app_config = AppConfig.create(entry)

   File "/usr/local/lib/python3.8/dist-packages/django/apps/config.py", line 228, in create
     import_module(entry)

i have no idea how to fix it

somebody help

Unfortunately Django channels require websockets, which isn't something we support on PythonAnywhere right now. We're working on it -- a private beta is running at the moment -- but it's not ready for use in tutorials at the moment.

well that's sad

That's unfortunate.

We agree