Community Cloud deploy mistakes PDM for poetry and fails

hello!

i’m new. i just tried to deploy my first app and was swiftly reminded that both poetry and pdm use a pyproject.toml file for project metadata, and the console log seems to suggest that it’s automatically assuming poetry and being upset when my TOML file doesnt have a [tool.poetry] block.

here’s the full log. any ideas about most advisable next steps? thanks!

─── ─── ───

[05:55:38] :desktop_computer: Provisioning machine…

[05:55:38] :control_knobs: Preparing system…

[05:55:38] :chains: Spinning up manager process…

[05:55:46] :rocket: Starting up repository: ‘gradientlab’, branch: ‘main’, main module: ‘main.py’

[05:55:46] :octopus: Cloning repository…

[05:55:46] :octopus: Cloning into ‘/mount/src/gradientlab’…

[05:55:46] :octopus: Cloned repository!

[05:55:46] :octopus: Pulling code changes from Github…

[05:55:46] :package: Processing dependencies…

─────────────────────────────────────── poetry ─────────────────────────────────────────

/mount/src/gradientlab /mount/src/gradientlab

[tool.poetry] section not found in /mount/src/gradientlab/pyproject.toml

/mount/src/gradientlab

─── ─── ───

[05:55:48] :exclamation: installer returned a non-zero exit code

[05:55:48] :exclamation: Error during processing dependencies! Please fix the error and push an update, or try restarting the app.

[05:57:26] :exclamation: Streamlit server consistently failed status checks

[05:57:26] :exclamation: Please fix the errors, push an update to the git repo, or reboot the app.

Hey @hexbenjamin,

Community Cloud doesn’t support PDM – it only supports pipenv, conda, pip, and poetry, unfortunately. (Related doc here)

hey, thanks for the quick reply & clarification! i’ll try a requirements.txt instead :slight_smile:

1 Like

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