-
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
Can't name my project 'integration' #7261
Comments
I tried printing the value of "self._poetry.file.path" in ~/.local/share/pypoetry/venv/lib/python3.8/site-packages/poetry/masonry/builders/editable.py:252, it has the following value: "integration/pyproject.toml" |
Hey @vholmer, unfortunately I'm not able to reproduce your issue. Please share as much information as possible about your project/folder structure and Poetry installation. We need a minimal reproducible example for further debugging. fin swimmer |
@finswimmer I managed to produce a minimal reproducible example. First, here's the directory structure:
Notice that the project package integration itself contains a folder named integration, I think this is causing the issue. When I "poetry install -C integration/" from the root I just get "relative path can't be expressed as a file URI" as previously mentioned. Is this intended or a bug? (meme.py is just an empty file) |
Ah, you haven't told us in your original post, that you run That's a bug, but we can fix it easily by resolving the given relative path. |
@finswimmer Yes, my apologies. I wasn't sure it was related to the -C flag. Actually, I wasn't even sure what exactly caused this until I wrote up that reproducible example. I'm glad to hear it can be fixed anyway! 👍 |
@finswimmer I want to emphasize that changing the name in the pyproject.toml to something else fixes the issue. In fact, it seems as if the issue only manifests if the innermost "integration" folder shares a name with the project. |
The reason for this is, that if you have a folder with the same name as in the |
@finswimmer Okay I see. I thought I would provide some information that could help you but you're already on the ball! Looking forward to the fix, happy new year! |
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. |
-vvv
option) and have included the output below.Issue
It seems like I can't name my project integration, poetry just crashes when running poetry install. If i change the name to anything else, it works.
Here's the output:
The text was updated successfully, but these errors were encountered: