Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImportError: cannot import name 'Group' #989

Closed
dawntcherian opened this issue Mar 29, 2018 · 1 comment
Closed

ImportError: cannot import name 'Group' #989

dawntcherian opened this issue Mar 29, 2018 · 1 comment

Comments

@dawntcherian
Copy link

I am using channels==2.0.2 and getting the following error while trying to import Group.

File "/home/user/python_projects/django_channels/my_project/game/models.py", line 3, in
from channels import Group
ImportError: cannot import name 'Group'

  • OS: Ubuntu 14.04
  • Channels: 2.0.2,
  • Daphne: 2.1.0,
  • Django: 2.0.3,
  • Twisted: 17.9.0,
@matthiask
Copy link
Contributor

Groups work differently with channels 2 than they did with channels 1. There is no Group class anymore.

The new groups API is documented here:
https://channels.readthedocs.io/en/latest/topics/channel_layers.html#groups

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants