Deploy failing on build.sh

My tech stack is Django.

I followed the steps in https://render.com/docs/deploy-django but it’s getting stuck on the build.sh file.

I’ve tried:
Removing and re-installing the lock file, changing python version used from 3.9 (my local machine) to 3.7.10.

Does anyone have any thoughts?

Output:

Oct 17 07:22:03 PM  ==> Running build command './build.sh'...
Oct 17 07:22:05 PM  Installing dependencies from lock file
Oct 17 07:22:06 PM  
Oct 17 07:22:06 PM  Package operations: 33 installs, 0 updates, 0 removals
Oct 17 07:22:06 PM  
Oct 17 07:22:06 PM    • Installing pycparser (2.20)
Oct 17 07:22:07 PM    • Installing certifi (2021.10.8)
Oct 17 07:22:07 PM    • Installing cffi (1.15.0)
Oct 17 07:22:07 PM    • Installing charset-normalizer (2.0.7)
Oct 17 07:22:07 PM    • Installing idna (3.3)
Oct 17 07:22:07 PM    • Installing urllib3 (1.26.7)
Oct 17 07:22:07 PM    • Installing typing-extensions (3.10.0.2)
Oct 17 07:22:09 PM    • Installing asgiref (3.4.1)
Oct 17 07:22:09 PM    • Installing cryptography (35.0.0)
Oct 17 07:22:09 PM    • Installing defusedxml (0.7.1)
Oct 17 07:22:09 PM    • Installing oauthlib (3.1.1)
Oct 17 07:22:09 PM    • Installing pytz (2021.3)
Oct 17 07:22:09 PM    • Installing requests (2.26.0)
Oct 17 07:22:09 PM    • Installing sqlparse (0.4.2)
Oct 17 07:22:11 PM  
Oct 17 07:22:11 PM    EnvCommandError
Oct 17 07:22:11 PM  
Oct 17 07:22:11 PM    Command ['/opt/render/project/src/.venv/bin/pip', 'install', '--no-deps', '/opt/render/.cache/.python-poetry/cache/artifacts/e1/d7/4d/feba82b3e08ae623ac92cf194b0a0df925c6966688ac2a8ffffce96800/cryptography-35.0.0-cp36-abi3-manylinux_2_24_x86_64.whl'] errored with the following return code 1, and output:
Oct 17 07:22:11 PM    ERROR: cryptography-35.0.0-cp36-abi3-manylinux_2_24_x86_64.whl is not a supported wheel on this platform.
Oct 17 07:22:11 PM    WARNING: You are using pip version 20.1.1; however, version 21.3 is available.
Oct 17 07:22:11 PM    You should consider upgrading via the '/opt/render/project/src/.venv/bin/python -m pip install --upgrade pip' command.
Oct 17 07:22:11 PM  
Oct 17 07:22:11 PM  
Oct 17 07:22:11 PM    at /home/render/.python-poetry/lib/poetry/utils/env.py:1183 in _run
Oct 17 07:22:12 PM        1179│                 output = subprocess.check_output(
Oct 17 07:22:12 PM        1180│                     cmd, stderr=subprocess.STDOUT, **kwargs
Oct 17 07:22:12 PM        1181│                 )
Oct 17 07:22:12 PM        1182│         except CalledProcessError as e:
Oct 17 07:22:12 PM      → 1183│             raise EnvCommandError(e, input=input_)
Oct 17 07:22:12 PM        1184│
Oct 17 07:22:12 PM        1185│         return decode(output)
Oct 17 07:22:12 PM        1186│
Oct 17 07:22:12 PM        1187│     def execute(self, bin, *args, **kwargs):
Oct 17 07:22:12 PM  
Oct 17 07:22:12 PM  ==> Build failed 😞

Hi @catsarebetter, we have seen an issue with cryptography-35.0.0-cp36-abi3-manylinux_2_24_x86_64.whl and the version of pip Render uses by default. Can you try adding pip install --upgrade pip to your build command or script and see if that resolves the issue?

Sorry for the late reply, I eventually deleted the line in my poetry.lock local file and uploaded the lock file to render. Seems to work!

Very manual process but very quick as long as I keep note of it so resolved for now probably…