Skip to content

pip3 install in the recipe fails and image is not created #1776

Answered by dtrudg
statsconchris asked this question in Q&A
Discussion options

You must be logged in to vote

Indeed your solution solves the problem. How can I use /bin/bash in my container instead of a minimal setup?

My apologies... it's not because of a minimal container. It's because %post is run with /bin/sh and that's a symlink to dash on Debian, rather than bash in other distributions.

You can add -c /bin/bash to your %post line to make the script run under bash

%post -c /bin/bash
    # This will now run through /bin/bash

With regard to the def file, and the error with pip3.... there's nothing Singularity can do about that. It's a limitation that has been added in Debian's python3-pip. If this definition file previously worked, it means that Debian have changed their python3-pip since t…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@statsconchris
Comment options

@dtrudg
Comment options

Answer selected by statsconchris
@statsconchris
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1775 on June 15, 2023 07:29.