Poetry not correctly installed on Python 3.9

When I set PYTHON_VERSION to 3.9.4 I get this error

Apr 24 04:21:21 PM   ==> Downloaded 146MB in 5s. Extraction took 5s.
Apr 24 04:21:41 PM   ==> Using Python version: 3.9.4
Apr 24 04:21:46 PM   ==> Running build command 'NODE_ENV=production poetry install --no-dev && pip install gunicorn && yarn install --production=false && node_modules/.bin/svelte-kit build'...
Apr 24 04:21:46 PM   Traceback (most recent call last):
Apr 24 04:21:46 PM     File "/home/render/.python-poetry/bin/poetry", line 17, in <module>
Apr 24 04:21:46 PM       from poetry.console import main
Apr 24 04:21:46 PM     File "/home/render/.python-poetry/lib/poetry/console/__init__.py", line 1, in <module>
Apr 24 04:21:46 PM       from .application import Application
Apr 24 04:21:46 PM     File "/home/render/.python-poetry/lib/poetry/console/application.py", line 1, in <module>
Apr 24 04:21:46 PM       from cleo import Application as BaseApplication
Apr 24 04:21:46 PM   ModuleNotFoundError: No module named 'cleo'
Apr 24 04:21:46 PM   ==> Build failed 😞

When I choose 3.8.9 Poetry works. Seems like on 3.9 Poetry is not correctly installed?

This is my build command

NODE_ENV=production poetry install --no-dev && pip install gunicorn && yarn install --production=false && node_modules/.bin/svelte-kit build

Hey @jokull, thanks for flagging this. It looks like the version of Poetry we install (1.0.5) does not support Python 3.9. We’ll work on upgrading the Poetry version so that you can use 3.9.

1 Like

@jokull this is now resolved, please let us know if you continue to experience issues