Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
381 views
in Technique[技术] by (71.8m points)

pip - Singularity run container - permission denied to run snakemake command

I'm trying to wrap my snakemake pipeline into a singularity container. But I'm not even able to summon snakemake when I want to run my container. During building there is no problem snakemake is here, I can see the snakemake --version print. But when I run my singularity container... I have this issue :

 /.singularity.d/runscript: 3: snakemake: Permission denied

Here is the (minimum) def file to reproduce the error :

BootStrap: debootstrap
OSVersion: focal
MirrorURL: http://us.archive.ubuntu.com/ubuntu/

%runscript
    snakemake --version
%post
    apt-get -y install software-properties-common
    add-apt-repository universe
    apt update
    apt-get -y install python3-pip
    update-alternatives --install /usr/bin/python python /usr/bin/python3.8 2

    python --version
    python -m pip install --user --upgrade cutadapt
    python -m pip install --user --upgrade snakemake

%environment
    PATH="/root/.local/bin/:$PATH"

I tried various things such as (sometimes awkward, but I'm desperate ahah) :

  • chmod 777 /root/.local/bin/snakemake
  • call snakemake like : /root/.local/bin/snakemake

I'm using singularity version 3.7.0

Could someone help me ? Have a nice day !!

question from:https://stackoverflow.com/questions/66048093/singularity-run-container-permission-denied-to-run-snakemake-command

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...