Hi Larry,

Your problem is the Python version - 3.5 is somewhat old (but most
importantly, was still a very rough release for asyncio) and isn't
supported by any current release of asgiref/channels for that reason. If
you are able to upgrade that, I very much recommend it.

Andrew

On Sat, Feb 22, 2020 at 2:52 AM Aldian Fazrihady <mob...@aldian.net> wrote:

> I have these working module combinations, but my Python is 3.6.9:
> asgiref==2.2.0
> channels==2.0.2
> channels_redis==2.3.0
> daphne==2.1.0
> Django==2.2.4
> django-redis==4.10.0
> redis==3.3.6
> Twisted[tls,http2]
> uwsgi==2.0.18
> websockets==6.0
>
> On Sat, Feb 22, 2020 at 3:25 AM Larry Martell <larry.mart...@gmail.com>
> wrote:
>
>> I am in a bit of version hell. Not fun on a Friday afternoon.
>>
>> Django 2.0.4, python 3.5.2
>>
>> Trying to get channels, websockets, daphne, and asgiref working.
>>
>> When I installed the latest channels it did not work with my version
>> of mysqlclient and some googling led me to install 2.0 of channels.
>> That worked fine with the dev server, and then I wanted to deploy my
>> app in prod. In prod we use nginx/uwsgi so I was going to replace
>> uwsgi with daphne. When I tried to run daphne I got:
>>
>> ImportError: No module named 'asgiref.compatibility'
>>
>> Googling that I was led to upgrade asgiref to the latest version.
>> After I did that I got:
>>
>> AttributeError: module 'asyncio.coroutines' has no attribute
>> '_is_coroutine'
>>
>> Have not been able to get past this one.
>>
>> Anyone have any thoughts? Would upgrading django and python fix these
>> issues? I am planning on doing that soon, but I was not planning on
>> doing that now. Don't want to upgrade now and then find I still have
>> issues. Can I get all this to work with my current versions and
>> upgrade later?
>>
>> TIA!
>> Larry
>>
>> --
>> 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+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CACwCsY5SQzRG-7EuEM8rZvOfQor5bBOjt%3DBV1Qsbn9%2BBhMx12g%40mail.gmail.com
>> .
>>
>
>
> --
> Regards,
>
> Aldian Fazrihady
> http://aldianfazrihady.com
>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAN7EoAbSAVUT%3D8sg1o-0oczCfjfRhtGwrMDE31YBt9N%2Bm96YmA%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAN7EoAbSAVUT%3D8sg1o-0oczCfjfRhtGwrMDE31YBt9N%2Bm96YmA%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAFwN1up5WAkwAVrasG%2BgG6ia8JSru1sMjJnckiCP8kbsVK-JiA%40mail.gmail.com.

Reply via email to