Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Poetry unable to install/update dependencies with Python 3.10 #8093

Closed
4 tasks done
DudeNr33 opened this issue Jun 12, 2023 · 2 comments
Closed
4 tasks done

Poetry unable to install/update dependencies with Python 3.10 #8093

DudeNr33 opened this issue Jun 12, 2023 · 2 comments
Labels
kind/bug Something isn't working as expected status/duplicate Duplicate issues

Comments

@DudeNr33
Copy link

  • Poetry version: 1.5.0
  • Python version: 3.10.12
  • OS version and name: Docker image python:3.10-slim
  • pyproject.toml: None
  • 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

I am unable to install or update any dependencies when running Poetry with Python 3.10 from the official Python Docker image.
The minimal reproduction example is described below.

With python:3.10-slim, Poetry is unable to even update itself after installing:

# apt -y update && apt -y install --no-install-recommends curl
[...]

# curl -sSL https://install.python-poetry.org | python3 - --version 1.5.0
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:

/root/.local/bin

You can uninstall at any time by executing this script with the --uninstall option,
and these changes will be reverted.

Installing Poetry (1.5.0): Done

Poetry (1.5.0) is installed now. Great!

To get started you need Poetry's bin directory (/root/.local/bin) in your `PATH`
environment variable.

Add `export PATH="/root/.local/bin:$PATH"` to your shell configuration file.

Alternatively, you can call Poetry explicitly with `/root/.local/bin/poetry`.

You can test that everything is set up by executing:

`poetry --version`

# export PATH="/root/.local/bin:$PATH"
# poetry --version
Poetry (version 1.5.0)

# poetry self update 1.5.1
Updating Poetry version ...


Updating dependencies
Resolving dependencies... (8.7s)

Package operations: 0 installs, 2 updates, 0 removals

# poetry --version
Poetry (version 1.5.0)

# python --version
Python 3.10.12

Installing anything from a pyproject.toml leads to a similar result: Poetry prints out the required installs/updates, but then does nothing.

With python:3.11-slim, all works as expected:

# apt -y update && apt -y install --no-install-recommends curl
[...]

# curl -sSL https://install.python-poetry.org | python3 - --version 1.5.0
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:

/root/.local/bin

You can uninstall at any time by executing this script with the --uninstall option,
and these changes will be reverted.

Installing Poetry (1.5.0): Done

Poetry (1.5.0) is installed now. Great!

To get started you need Poetry's bin directory (/root/.local/bin) in your `PATH`
environment variable.

Add `export PATH="/root/.local/bin:$PATH"` to your shell configuration file.

Alternatively, you can call Poetry explicitly with `/root/.local/bin/poetry`.

You can test that everything is set up by executing:

`poetry --version`

# export PATH="/root/.local/bin:$PATH"
# poetry --version
Poetry (version 1.5.0)

# poetry self update 1.5.1
Updating Poetry version ...


Updating dependencies
Resolving dependencies... (9.3s)

Package operations: 0 installs, 2 updates, 0 removals

  • Updating poetry-core (1.6.0 -> 1.6.1)
  • Updating poetry (1.5.0 -> 1.5.1)

Writing lock file

# poetry --version
Poetry (version 1.5.1)

# python --version
Python 3.11.4
@DudeNr33 DudeNr33 added kind/bug Something isn't working as expected status/triage This issue needs to be triaged labels Jun 12, 2023
@dimbleby
Copy link
Contributor

dimbleby commented Jun 17, 2023

duplicate #7148, #7184, #7648

@radoering radoering added status/duplicate Duplicate issues and removed status/triage This issue needs to be triaged labels Jun 18, 2023
@radoering radoering closed this as not planned Won't fix, can't repro, duplicate, stale Jun 18, 2023
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 29, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/bug Something isn't working as expected status/duplicate Duplicate issues
Projects
None yet
Development

No branches or pull requests

3 participants