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

PermissionError installing root package in 1.1.0 #3079

Closed
3 tasks done
agoose77 opened this issue Oct 5, 2020 · 4 comments
Closed
3 tasks done

PermissionError installing root package in 1.1.0 #3079

agoose77 opened this issue Oct 5, 2020 · 4 comments
Labels
kind/bug Something isn't working as expected

Comments

@agoose77
Copy link

agoose77 commented Oct 5, 2020

  • I am on the latest Poetry version.
  • I have searched the issues of this repo and believe that this is not a duplicate.
  • If an exception occurs when executing a command, I executed it again in debug mode (-vvv option).

Issue

This issue follows from #2996

The line that install the dist-info directory uses a single env directory:

dist_info = self._env.site_packages.joinpath(builder.dist_info)

It seems to me like the fix would be similar to #3000

Thank you for all of the hard work Poetry team.

@agoose77 agoose77 added kind/bug Something isn't working as expected status/triage This issue needs to be triaged labels Oct 5, 2020
@abn
Copy link
Member

abn commented Oct 5, 2020

Verified against the 1.1 branch.

podman run --rm -i --entrypoint bash python:3.7 <<EOF
pip install --quiet git+https://github.com/python-poetry/poetry.git@1.1
adduser --disabled-password --gecos "User" --uid 1000 user
su - user
poetry new foobar
cd foobar
export PYTHONDONTWRITEBYTECODE=1
export POETRY_VIRTUALENVS_CREATE=0
poetry install -vvv
EOF

abn added a commit to abn/poetry that referenced this issue Oct 6, 2020
This change improves handling of site-packages under system env, by
gracefully handling fallbacks to user site when required and possible.

Resolves: python-poetry#3079
@abn
Copy link
Member

abn commented Oct 6, 2020

@agoose77 can you try #3107 please?

@agoose77
Copy link
Author

agoose77 commented Oct 8, 2020

@abn this passes my existing build-step test. Thanks for the quick turn around!

abn added a commit to abn/poetry that referenced this issue Oct 23, 2020
This change improves handling of site-packages under system env, by
gracefully handling fallbacks to user site when required and possible.

Resolves: python-poetry#3079
abn added a commit to abn/poetry that referenced this issue Oct 23, 2020
This change improves handling of site-packages under system env, by
gracefully handling fallbacks to user site when required and possible.

Resolves: python-poetry#3079
@abn abn closed this as completed in 4c81bcc Oct 23, 2020
@abn abn removed the status/triage This issue needs to be triaged label Mar 3, 2022
Copy link

github-actions bot commented Mar 2, 2024

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 2, 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

No branches or pull requests

2 participants