Skip to content

Issue with Poetry 1.3.1 and Python 3.10 in Github Actions. #7343

@fbalo-medium

Description

@fbalo-medium
  • I am on the latest stable Poetry version, installed using a recommended method.
  • I have searched the issues of this repo and believe that this is not a duplicate.
  • I have consulted the FAQ and blog for any relevant entries or release notes.
  • If an exception occurs when executing a command, I executed it again in debug mode (-vvv option) and have included the output below.

Issue

An issue I just discovered is if you are using a Python version lower than 3.10 (even if you set Poetry to accept Python 3.8 or higher in myproject.toml) in your project and try to run that project in an environment that runs 3.10, it raises an “Invalid version '1.1build1' on package distro-info” error.

I suspect Poetry sees Python 3.10 as Python 3.1.

This happened when I tried to running Poetry in a Github Action environment. When I explicit choose the version to be 3.8, it worked.

Metadata

Metadata

Assignees

No one assigned

    Labels

    status/external-issueIssue is caused by external project (platform, dep, etc)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions