Skip to content

pip-containerize update fails with a --slim container #31

Closed
@maciejjan

Description

@maciejjan

On Puhti (Tykky v0.3.2) any attempt to call pip-containerize update on a container created with a --slim flag throws an error about not being able to find Python.

How to reproduce

module purge
module load tykky
pip-containerize new --slim --prefix tykky_test requirements.txt
pip-containerize update --post-install extra.txt tykky_test

Fails with:

/PUHTI_TYKKY_vYJJ0DS/_post_install.sh: /PUHTI_TYKKY_vYJJ0DS/env1/bin/pip: /PUHTI_TYKKY_vYJJ0DS/env1/bin/python3: bad interpreter: No such file or directory

This seems to be independent of what packages requirements.txt and extra.txt contain. I'm attaching examples with very simple packages.

requirements.txt
extra.txt

The error does not occur if the container is created without the --slim flag.

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