Skip to content

Python init prebuild not working #7078

Closed
@quental96

Description

@quental96

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:

tasks:
   - init: pip3 install -r requirements.txt
     command: python3 src/app.py

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

  • Launch the example cited above.
  • Wait for init and command.
  • Close workspace.
  • Reopen workspace.

Workspace affected

ivory-cardinal-kxl6nm71

Expected behavior

Workspace should be saved.

Example repository

https://github.com/gitpod-io/Gitpod-Pandas

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions