← All tasks
pythonpython-poetry/poetry #9029Not a task: already works

Poetry dependency on `packaging` module requires `>=22.0`, but lists `>=20.5`

envgap__python-poetry__poetry-9029

01 / FAILURE SIGNATURE

As reported upstream

No identifying execution failure has been captured.
Not a benchmark task.
  • The project already builds and runs before the fix, so there is nothing to repair.

02 / ENVIRONMENT RECIPE

Base commit
fbffe8d519757d50f88f1c7aeff4860a4638a8d0
Manifest
pyproject.toml
Reproduce
Awaiting issue-specific recipe
Run under trace
Awaiting a meaningful runtime command

03 / ORIGINAL ISSUE TEXT

python-poetry/poetry #9029 · read the original issue
### Description

```Markdown
1. Pip installing poetry 1.8.0

2. Existing requirement of packaging==21.3 is not updated, since it still fits the requirements

3. poetry export fails with `No module named 'packaging.metadata'`



This is because the metadata module was introduced in release 22.0: https://github.com/pypa/packaging/releases/tag/22.0
```


### Workarounds

```Markdown
Update packaging to 22.0 or greater
```


### Poetry Installation Method

pip

### Operating System

Alpine

### Poetry Version

1.8.0

### Poetry Configuration

```bash session
cache-dir = "/Users/jgoerner/Library/Caches/pypoetry"

experimental.system-git-client = false

installer.max-workers = null

installer.modern-installation = true

installer.no-binary = null

installer.parallel = true

virtualenvs.create = true

virtualenvs.in-project = null

virtualenvs.options.always-copy = false

virtualenvs.options.no-pip = false

virtualenvs.options.no-setuptools = false

virtualenvs.options.system-site-packages = false

virtualenvs.path = "{cache-dir}/virtualenvs"  # /Users/jgoerner/Library/Caches/pypoetry/virtualenvs

virtualenvs.prefer-active-python = false

virtualenvs.prompt = "{project_name}-py{python_version}"

warnings.export = true
```


### Python Sysconfig

_No response_

### Example pyproject.toml

_No response_

### Poetry Runtime Logs

```bash session
No module named 'packaging.metadata'
```
Continue on GitHub ↗

04 / LABELS

Labels from the report text only; not yet run

No supported category has been assigned.

Label rules and the text that matched
[]