Poetry install broken (mkdocs project)

Hi there,

I am trying to setup Render to build the docs on GitHub - python-discord/infra: Infrastructure for Python Discord

We use mkdocs with dependencies installed via Poetry, as such, I have set our build command to poetry install --with docs && poetry run mkdocs build, this works locally.

In Render, I am experiencing the following issue:

==> Using Python version 3.12.4 via environment variable PYTHON_VERSION
==> Docs on specifying a Python version: https://render.com/docs/python-version
==> Using Poetry version 1.8.3 via environment variable POETRY_VERSION
==> Docs on specifying a Poetry version: https://render.com/docs/poetry-version
==> Installing Poetry version 1.8.3
Retrieving Poetry metadata
# Welcome to Poetry!
This will download and install the latest version of Poetry,
a dependency and package manager for Python.
It will add the `poetry` command to Poetry's bin directory, located at:
/opt/render/project/poetry/bin
You can uninstall at any time by executing this script with the --uninstall option,
and these changes will be reverted.
Installing Poetry (1.8.3)
Installing Poetry (1.8.3): Creating environment
Installing Poetry (1.8.3): Installing Poetry
Installing Poetry (1.8.3): Creating script
Installing Poetry (1.8.3): Done
Poetry (1.8.3) is installed now. Great!
To get started you need Poetry's bin directory (/opt/render/project/poetry/bin) in your `PATH`
environment variable.
Add `export PATH="/opt/render/project/poetry/bin:$PATH"` to your shell configuration file.
Alternatively, you can call Poetry explicitly with `/opt/render/project/poetry/bin/poetry`.
You can test that everything is set up by executing:
`poetry --version`
/home/render/envwrappers/poetry: line 80: poetry: command not found

I have changed no defaults or set any other parameters than the build command and the versions of Python & Poetry to use, so this seems like an issue with the Render environment that the Poetry bootstrapping does not leave a functional Poetry install once complete.

Hi there,

Thanks for letting us know about this. We have a patch coming which should resolve this. The issue was with static site builds not including poetry on the $PATH.

Regards,

Keith
Render Support, UTC+10 :australia:

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.