-
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
TypeError: Can't intern string #2798
TypeError: Can't intern string #2798
Comments
@darkvariantdivine can you try the latest pre-release please? |
Thanks for the prompt response @abn. Here is a snippet of my pyproject.toml that specifies my build-system:
I'm using pip to install the project with the following configuration: Just to confirm, this is poetry-core 1.0.0a9? I will try and update the results. |
Hello @darkvariantdivine, the latest pre-release version is 1.1.0b2. Could you please provide enough enough information to reproduce your issue? fin swimmer |
@finswimmer, thanks for replying. This is more of a poetry-core issue but when I attempted to create an issue on poetry-core, it directed me to the poetry issue board. I'm trying to install my project (that I'm using poetry to manage builds) to a specific folder with a specific structure using the following command:
My project's pyproject.toml is below, I'm using poetry-core build system rather than poetry due to #760 :
This is the error I'm getting:
When I looked deeper into the code base, the error seems similar to #634 and the fix in commit 417d01d does not seem to be applied in poetry-core poetry-core (poetry/core/masonry/builders/builder.py line 99):
poetry (poetry/masonry/builders/builder.py line 56):
|
@darkvariantdivine definitely give you this, this is an interesting issue. For anyone who is interested in the root case, when An immediate workaround would be to use |
When excluded path is not a glob pattern, pathlib implementation relies on `sys.intern`, which expects a string. However, the value passed in is of `tomlkit.items.String`. This change ensures poetry does not crash in this scenario. Resolves: python-poetry/poetry#2798 Co-authored-by: David Lee <[email protected]>
When excluded path is not a glob pattern, pathlib implementation relies on `sys.intern`, which expects a string. However, the value passed in is of `tomlkit.items.String`. This change ensures poetry does not crash in this scenario. Resolves: python-poetry/poetry#2798 Co-authored-by: David Lee <[email protected]>
Thanks @finswimmer and @abn for this. Poetry is a great tool, I hope it continues to grow! |
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).Issue
I'm facing this issue when building my poetry project using the new poetry-core. When looking a little deeper, it seems like the fix in commit was not applied to poetry-core.
I would love to help out with a PR, but will need some direction :)
The text was updated successfully, but these errors were encountered: