-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
"Unable to create package with no name" #9191
Comments
you need to update pkg-info in your poetry installation: either by updating it directly in the appropriate virtual environment or by uninstalling and reinstalling poetry |
@dimbleby ah! Just reinstalling poetry didn't help, but forcing pkginfo to the latest version seems to have fixed it, I did I guess.. tracing this it seemed like it ended up, deep in the dungeons, picking a build backend based on what the library specified (hatchling, in this case), and that build backend wasn't compatible with the pkginfo that was installed locally. Man what a jungle this all is! Thanks for helping! |
To help make it easier for others who find this issue, if you've installed poetry using the installer script you can fix it with this command: |
depends how you installed poetry eg if you've done the recommened |
poetry self add keyrings.cryptfile@latest
poetry self add pkginfo==1.10.0 Pinning |
I just encountered this issue. I previously installed poetry through Homebrew, which caused the problem. However, installing poetry with pipx worked perfectly without needing the previously mentioned workarounds. |
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. |
Description
I'm not sure about the exact steps to reproduce this - it's consistently happening on my machine now and I've done some debugging, but I'm not sure how I ended up in this state. I thought it'd be good to open a ticket on case anyone else runs into this error, because googling it turns up nothing.
Briefly:
poetry lock
, it crashes with an error sayingUnable to create package with no name
Debugging:
The immediate cause of this is that, when poetry runs
get_pep517_metadata
, it builds my little library and generates aMETADATA
file that looks like this:And when poetry asks pkginfo to load this, it says "ok boss" and ignores all the contents, because it doesn't support
Metadata-Version: 2.3
I'm trying to work out, now:
Workarounds
Haven't found one yet
Poetry Installation Method
pipx
Operating System
Arch
Poetry Version
Poetry (version 1.8.2)
Poetry Configuration
Python Sysconfig
No response
Example pyproject.toml
No response
Poetry Runtime Logs
The text was updated successfully, but these errors were encountered: