dibs-devs / chatter

A simple Chat App for Django based on channels and websockets
MIT License
85 stars 29 forks source link

Conflicting requirements #42

Open misli opened 5 years ago

misli commented 5 years ago

You require explicit versions of channels and channels-redis, which are incompatible. It makes this package kind of not installable.

$ cat requirements.in
django-chatter
$ pip-compile --upgrade --no-index --output-file=requirements.txt requirements.in
Could not find a version that matches asgiref~=2.1,~=2.3,~=3.0 (from channels==2.1.7->django-chatter==1.0.7->-r requirements.in (line 1))
Tried: 0.8, 0.9, 0.9.1, 0.10.0, 0.11.0, 0.11.0, 0.11.0, 0.11.1, 0.11.1, 0.11.2, 0.11.2, 0.12.0, 0.12.0, 0.12.1, 0.12.1, 0.13.0, 0.13.0, 0.13.2, 0.13.2, 0.13.3, 0.14.0, 0.14.0, 1.0.0, 1.0    There are incompatible versions in the resolved dependencies:
  asgiref~=2.1 (from channels-redis==2.3.3->django-chatter==1.0.7->-r requirements.in (line 1))
  asgiref~=2.3 (from channels==2.1.7->django-chatter==1.0.7->-r requirements.in (line 1))
  asgiref~=3.0 (from daphne==2.3.0->channels==2.1.7->django-chatter==1.0.7->-r requirements.in (line 1))
ishtiaque06 commented 5 years ago

Thank you for bringing this to the front!

I've actually ran into this issue before but had forgotten to make a note of it. I think this is actually happening because I haven't specified a daphne version in my setup.py file, so it's defaulting to the latest version, which is actually incompatible with asgiref~=2.3. I've only tested this package using daphne==2.2.5, channels==2.1.7 and channels-redis==2.3.3 (as shown in dev_requirements.txt). I eventually plan on making this package compatible with the latest versions of its dependencies, but for now, pull requests to modify setup.py are welcome.