-
Notifications
You must be signed in to change notification settings - Fork 315
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 use pyenv-virtualenv (ERROR: Can not perform a '--user' install) #1192
Labels
Comments
github-actions
bot
added
the
team: team-experience
Belonging to the Experience team
label
Oct 3, 2023
Hi @LeSphax, can you try Also, wanted to share a few things about this part of the dockerfile (notice WORKDIR / # <-- does not affect Gitpod
RUN sudo chown -R $USER ~ # <-- not necessary, it is already set to gitpod:gitpod
RUN mkdir -p /workspace/postgres/data /workspace/.config/gcloud # <-- will not work, see https://www.gitpod.io/docs/configure/workspaces/workspace-lifecycle#workspace-statuses | you could take reference from https://github.com/gitpod-io/workspace-images/tree/main/chunks/tool-postgresql
ENV DEV_LOCAL_IP=localhost
ENV PGHOST=localhost
ENV DOCKER_DB_HOST=postgres
ENV DOCKER_POSTGRES_VOLUME=/workspace/postgres/data:/workspace/postgres/data
ENV PATH="/workspace/picnic/bin:$PATH"
ENV TERRAGRUNT_DOWNLOAD=$HOME/.terragrunt-cache
RUN mkdir -p $TERRAGRUNT_DOWNLOAD |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Bug description
Our local setup uses pyenv-virtualenv to run mypy in a virtual environment with the same libraries as CI.
But using pyenv-virtualenv in gitpod results in the following error when doing
pip install
commands.This is because the script /home/gitpod/.gp_pyenv.d/exec/gitpod.bash automatically sets PIP_USER=true in gitpod.
I'm not sure why this flag needs to be set but if it needs to be ideally there would be an error message to explain the reason when using a virtualenv.
Or at least a comment in the gitpod.bash script.
Right now I could change/remove that script in our docker image but I'm not sure what else would break if I did that.
Steps to reproduce
brew_upstall pyenv-virtualenv
pyenv virtualenv test
pyenv activate test
pip install openai
Expected behavior
No response
Example repository
This is our docker image in case it helps:
Anything else?
No response
The text was updated successfully, but these errors were encountered: