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

No module named 'packaging.metadata' #9406

Closed
FelixBenning opened this issue May 10, 2024 · 3 comments
Closed

No module named 'packaging.metadata' #9406

FelixBenning opened this issue May 10, 2024 · 3 comments
Labels
kind/bug Something isn't working as expected status/triage This issue needs to be triaged

Comments

@FelixBenning
Copy link

FelixBenning commented May 10, 2024

Description

$ pipx uninstall poetry
Nothing to uninstall for poetry 😴
$ pipx install poetry
  installed package poetry 1.8.3, installed using Python 3.10.5
  These apps are now globally available
    - poetry
done! ✨ 🌟 ✨
$ poetry

No module named 'packaging.metadata'

Workarounds

$ pipx install poetry==1.7
  installed package poetry 1.7.0, installed using Python 3.10.5
  These apps are now globally available
    - poetry
done! ✨ 🌟 ✨
$ poetry
Poetry (version 1.7.0)

...

Poetry Installation Method

pipx

Operating System

Red Hat Enterprise Linux 8.6 (Ootpa)

Poetry Version

1.8.3

Poetry Configuration

Not really possible to do if the poetry command fails

Python Sysconfig

No response

Example pyproject.toml

No response

Poetry Runtime Logs

-
@FelixBenning FelixBenning added kind/bug Something isn't working as expected status/triage This issue needs to be triaged labels May 10, 2024
@FelixBenning
Copy link
Author

FelixBenning commented May 10, 2024

This is a duplicate of #9034 but that issue has been auto closed

@dimbleby
Copy link
Contributor

dimbleby commented May 10, 2024

poetry 1.8.3 declares a dependency on packaging>=23.1, which provides packaging.metadata.

I don't know what is wrong with your install - you will have to investigate that yourself - but it seems likely that there is nothing more that can or should be done from this repository

@Secrus Secrus closed this as not planned Won't fix, can't repro, duplicate, stale May 13, 2024
@hxmn
Copy link

hxmn commented May 15, 2024

@FelixBenning I came across this after a recent update to oh-my-zsh. The problem was that the virtualenv-autodetect plugin set the PYTHONPATH variable incorrectly. Disabling this plugin allowed me to continue working with poetry.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working as expected status/triage This issue needs to be triaged
Projects
None yet
Development

No branches or pull requests

4 participants