I am new to render and trying to manually deploy the sample django app by following the instruction: Getting Started with Django on Render | Render Docs
I haven’t created the django app on my local yet and it will be my next step after tring the deployment. I pretty much followed the section: “Deploy to Render” > “Manually Deployment”. The deployment failed with the error in the console:
psycopg/psycopgmodule.c: In function ‘add_module_types’:
psycopg/psycopgmodule.c:921:36: error: lvalue required as left operand of assignment
Py_TYPE(typetable[i].type) = &PyType_Type;
^
psycopg/psycopgmodule.c: In function ‘datetime_init’:
psycopg/psycopgmodule.c:953:30: error: lvalue required as left operand of assignment
Py_TYPE(&pydatetimeType) = &PyType_Type;
^
psycopg/psycopgmodule.c: In function ‘PyInit__psycopg’:
psycopg/psycopgmodule.c:1085:28: error: lvalue required as left operand of assignment
Py_TYPE(&typecastType) = &PyType_Type;
^
psycopg/psycopgmodule.c:1088:25: error: lvalue required as left operand of assignment
Py_TYPE(&chunkType) = &PyType_Type;
^
psycopg/psycopgmodule.c:1091:25: error: lvalue required as left operand of assignment
Py_TYPE(&errorType) = &PyType_Type;
^
error: command '/usr/bin/gcc' failed with exit code 1
at /home/render/.python-poetry/venv/lib/python3.11/site-packages/poetry/installation/chef.py:164 in _prepare
160│
161│ error = ChefBuildError("\n\n".join(message_parts))
162│
163│ if error is not None:
→ 164│ raise error from None
165│
166│ return path
167│
168│ def _prepare_sdist(self, archive: Path, destination: Path | None = None) -> Path:
Note: This error originates from the build backend, and is likely not a problem with poetry but with psycopg2-binary (2.8.5) not supporting PEP 517 builds. You can verify this by running 'pip wheel --no-cache-dir --use-pep517 "psycopg2-binary (==2.8.5)"'.
Any hint about what I may miss?