Wednesday, April 29, 2020

Re: Django Channel Demo Error From its site

I have an idea try to download small project from github using channels and test it and see if works or not and tell me 

On Wednesday, 29 April 2020 16:09:12 UTC+2, Aditya Bohra wrote:
I am trying to start with channels but the demo in python shell is not working properly:https://channels.readthedocs.io/en/latest/tutorial/part_2.html#enable-a-channel-layer
Its is showing some thing like this :
(InteractiveConsole)
>>> import channels.layers
>>> channel_layer = channels.layers.get_channel_layer()
>>> from asgiref.sync import async_to_sync
>>> async_to_sync(channel_layer.send)('test_channel', {'type': 'hello'})
Segmentation fault (core dumped)

please help

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/0df2422d-2bc9-4f2c-97ec-35d1de57625c%40googlegroups.com.

No comments:

Post a Comment