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 dependency on packaging module requires >=22.0, but lists >=20.5 #9029

Closed
glipR opened this issue Feb 26, 2024 · 4 comments · Fixed by #9031
Closed

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

glipR opened this issue Feb 26, 2024 · 4 comments · Fixed by #9031
Labels
kind/bug Something isn't working as expected

Comments

@glipR
Copy link

glipR commented Feb 26, 2024

Description

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

Update packaging to 22.0 or greater

Poetry Installation Method

pip

Operating System

Alpine

Poetry Version

1.8.0

Poetry Configuration

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

No module named 'packaging.metadata'
@glipR glipR added kind/bug Something isn't working as expected status/triage This issue needs to be triaged labels Feb 26, 2024
@KafCoppelia
Copy link

Same problem when I upgraded Poetry to 1.8.0

@ahartlba
Copy link

Same issue on ubuntu 22.04 LTS docker.

@radoering
Copy link
Member

FYI: It looks like at least packaging 23.1 is required to successfully run the tests.

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 Mar 28, 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
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants