-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Python init prebuild not working #7078
Comments
Similar to this. |
Also Similar to #7110 |
Here is the fix (thank you @lechien73, see: #7064 (comment)): Problem & Solution Walkthrough
tasks:
- init: pip install pip_install_test
The library is installed in new workspaces
gitpod /workspace/test-for-prebuild $ pip freeze | grep pip-install-test
pip-install-test==0.5 We can see from the pip freeze, that the library Turning on prebuild breaks something
gitpod /workspace/test-for-prebuild $ pip freeze | grep pip-install-test We can see from the pip freeze, that the library Fix the problem with a custom docker imageBy default gitpod uses the
Image:
file: .gitpod.Dockerfile
FROM gitpod/workspace-full
ENV PYTHONUSERBASE=/workspace/.pip-modules
ENV PATH=$PYTHONUSERBASE/bin:$PATH
ENV PIP_USER=yes
Final Test
gitpod /workspace/test-for-prebuild $ pip freeze | grep pip-install-test
pip-install-test==0.5 We can see from the pip freeze, that the library |
Thank you @tiamot @quental96 for sharing this. I'll make sure this is reflected in the docs as well. Appreciate the effort, let me know if you are having any more issues 🙏🏼 Can you close this issue? |
Bug description
Hello,
Prebuilds in python are not working at all for me, and I am following exactly what the docs advise. My problem is even reproducible in the official gitpod pandas example.
The prebuild looks like this:
When I launch any type of workspace that has this sort of prebuild for the first time, it seems to work. However, the second time that I launch it, the init has not been saved; what this means here is that the python packages are not present and the command fails because of import errors.
I have been struggling with this for a couple days now and I found other inconsistencies with the docs. Namely, My pyenv is never saved. This is impossible to work with because I have to reinstall everything each time I reopen a workspace…
Thanks for your quick help, I can’t do any Gitpod work while this is not fixed…
Quentin
Steps to reproduce
Workspace affected
ivory-cardinal-kxl6nm71
Expected behavior
Workspace should be saved.
Example repository
https://github.com/gitpod-io/Gitpod-Pandas
Anything else?
No response
The text was updated successfully, but these errors were encountered: