Skip to content

Poetry.lock python version error when building codabench #1586

Closed

Description

@ObadaS

@bbearce
It seems like there is a problem when trying to build deploy Codabench on the current develop branch:

 => CACHED [django 2/9] RUN apt-get update && apt-get install -y gcc build-essential && rm -rf /var/lib/apt/lists/*                                                                                             0.0s
 => CACHED [django 3/9] RUN curl -sSL https://install.python-poetry.org | python3 -                                                                                                                             0.0s
 => CACHED [django 4/9] RUN poetry config virtualenvs.create false                                                                                                                                              0.0s
 => CACHED [django 5/9] RUN poetry config virtualenvs.in-project false                                                                                                                                          0.0s
 => CACHED [django 6/9] COPY pyproject.toml ./                                                                                                                                                                  0.0s
 => ERROR [django 7/9] RUN poetry lock                                                                                                                                                                          0.7s
------                                                                                                                                                                                                               
 > [django 7/9] RUN poetry lock:                                                                                                                                                                                     
0.513 The currently activated Python version 3.9.20 is not supported by the project (3.9.19).                                                                                                                        
0.513 Trying to find and use a compatible version.                                                                                                                                                                   
0.584                                                                                                                                                                                                                
0.584 Poetry was unable to find a compatible version. If you have one, you can explicitly use it via the "env use" command.                                                                                          
------                                                                                                                                                                                                               
failed to solve: process "/bin/sh -c poetry lock" did not complete successfully: exit code: 1 

Looks like an easy fix.

Activity

  1. Didayolo commented on Sep 16, 2024

    @Didayolo
    Member

    I am confused by this. Benjamin started to work on Poetry on other branches, and now we have errors on the CircleCI of develop and master. Is there a link? What is happening? I am confused by the errors appearing on branches that we did not touch in a while. I don't even know how the tests got triggered again.

  2. ObadaS commented on Sep 16, 2024

    @ObadaS
    CollaboratorAuthor

    If we are using a script to install the latest verison of Poetry instead of a fixed one, it is possible that nothing changed on our end. Not sure if that's the thing that happened in this case though

  3. linked a pull request that will close this issuePoetry error tentative fix #1588on Sep 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions