Hello I have a small problem when I install my packages, I receive this error message
ERROR: Cannot install channels-redis==2.4.2 and channels==3.0.5 because these package versions have conflicting dependencies.
The conflict is caused by:
The user requested channels==3.0.5
channels-redis 2.4.2 depends on channels~=2.2To fix this you could try to:
- loosen the range of package versions you’ve specified
- remove package versions to allow pip attempt to solve the dependency conflict
ERROR: ResolutionImpossible: for help visit Dependency Resolution - pip documentation v23.0.dev0
,yet they are the same version of package that I use locally, so when I test this command
gunicorn --bind 0.0.0.0:8000 OrderLine1.asgi
I receive this error
File "/usr/lib/python3/dist-packages/gunicorn/arbiter.py", line 589, in spawn_worker
worker.init_process()
File "/usr/lib/python3/dist-packages/gunicorn/workers/base.py", line 134, in init_process
self.load_wsgi()
File "/usr/lib/python3/dist-packages/gunicorn/workers/base.py", line 146, in load_wsgi
self.wsgi = self.app.wsgi()
File "/usr/lib/python3/dist-packages/gunicorn/app/base.py", line 67, in wsgi
self.callable = self.load()
File "/usr/lib/python3/dist-packages/gunicorn/app/wsgiapp.py", line 58, in load
return self.load_wsgiapp()
File "/usr/lib/python3/dist-packages/gunicorn/app/wsgiapp.py", line 48, in load_wsgiapp
return util.import_app(self.app_uri)
File "/usr/lib/python3/dist-packages/gunicorn/util.py", line 384, in import_app
mod = importlib.import_module(module)
File "/usr/lib/python3.10/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 883, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "/home/wahab/apporder/OrderLine1/asgi.py", line 14, in <module>
from channels.routing import ProtocolTypeRouter, URLRouter
ModuleNotFoundError: No module named 'channels'
[2022-11-12 12:35:25 +0000] [28362] [INFO] Worker exiting (pid: 28362)
[2022-11-12 12:35:25 +0000] [28361] [INFO] Shutting down: Master
[2022-11-12 12:35:25 +0000] [28361] [INFO] Reason: Worker failed to boot.