I’ve followed the Django tutorial but am running into a problem when installing channels. The channels installation seems to pull in a cryptography package, but when I deploy I run into the error below:
Jul 3 04:54:07 PM Package operations: 37 installs, 0 updates, 0 removals
Jul 3 04:54:07 PM
Jul 3 04:54:07 PM • Installing pycparser (2.21)
Jul 3 04:54:08 PM • Installing cffi (1.15.1)
Jul 3 04:54:08 PM • Installing pyasn1 (0.4.8)
Jul 3 04:54:09 PM • Installing attrs (21.4.0)
Jul 3 04:54:09 PM • Installing cryptography (37.0.3)
Jul 3 04:54:09 PM • Installing idna (3.3)
Jul 3 04:54:09 PM • Installing pyasn1-modules (0.2.8)
Jul 3 04:54:09 PM • Installing six (1.16.0)
Jul 3 04:54:11 PM
Jul 3 04:54:11 PM EnvCommandError
Jul 3 04:54:11 PM
Jul 3 04:54:11 PM Command ['/opt/render/project/src/.venv/bin/pip', 'install', '--no-deps', '/opt/render/.cache/.python-poetry/cache/artifacts/3e/a1/b8/4727380b723e51d8955fcac5818c93c970fcc22c64286ce5b9c9a994c1/cryptography-37.0.3-cp36-abi3-manylinux_2_24_x86_64.whl'] errored with the following return code 1, and output:
Jul 3 04:54:11 PM ERROR: cryptography-37.0.3-cp36-abi3-manylinux_2_24_x86_64.whl is not a supported wheel on this platform.
I’ve been playing whack-a-mole with different python versions for a while now and haven’t made much progress. My pyproject.toml file from poetry is below:
[tool.poetry]
name = "mysite"
version = "0.1.0"
description = ""
authors = <redacted>
[tool.poetry.dependencies]
python = "^3.8"
Django = "^3.2.0"
dj-database-url = "^0.5.0"
psycopg2-binary = "^2.9.3"
whitenoise = {extras = ["brotli"], version = "^6.2.0"}
gunicorn = "^20.1.0"
channels = "^3.0.5"
[tool.poetry.dev-dependencies]
pytest = "^5.2"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
Any tips? Is there a tutorial on how to deploy a websocket enabled Django app on Render?