Python Forum
python installation/running inside singularity container
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
python installation/running inside singularity container
#1
I have singularity-ce version 3.10.2 on ubuntu 20.02. I am trying to install python package. It always says;

Error:
Singularity> apt-get -y update bash: apt-get: command not found
How can I resolve this?
Reply
#2
Not that I know the first thing about singularity-ce, but what I can see (or what I think I can see) is that you're trying to run a bash command (apt-get -y update) from the singularity-ce terminal, which is why (or so I assume) it's not going to work.

tbh, I don't think that this is not the correct Forum site for this topic, but as there's been no moderator intervention, maybe I'm wrong about that (also?).
Sig:
>>> import this

The UNIX philosophy: "Do one thing, and do it well."

"The danger of computers becoming like humans is not as great as the danger of humans becoming like computers." :~ Konrad Zuse

"Everything should be made as simple as possible, but not simpler." :~ Albert Einstein
Reply
#3
(Sep-20-2022, 09:44 PM)rob101 Wrote: Not that I know the first thing about singularity-ce, but what I can see (or what I think I can see) is that you're trying to run a bash command (apt-get -y update) from the singularity-ce terminal, which is why (or so I assume) it's not going to work.
Singularity is just another environment that is embedded into Linux and allowing me to use Linux shell commands as they are.

(Sep-20-2022, 09:44 PM)rob101 Wrote: tbh, I don't think that this is not the correct Forum site for this topic, but as there's been no moderator intervention, maybe I'm wrong about that (also?).
The point is that to be able to run/compile python scripts inside the singularity containers.

Recently, I pulled a python container named <pre>python-3.9.6.sif</pre>. But anytime, I try to run my python script inside, I see the following error
Error:
/usr/local/bin/python: can't open file '/home/(my user name)/Downloads/singularity-ce-3.10.2/examples/build-singularity/build-singularity/main_ST_Model_ECDGCA3_NG.py': [Errno 13] Permission denied
If I try to run as root, then I see the following
Error:
/usr/local/bin/python: can't open file '/root/main_ST_Model_ECDGCA3_NG.p': [Errno 2] No such file or directory
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  uploading files from a ubuntu local directory to Minio storage container dchilambo 0 471 Dec-22-2023, 07:17 AM
Last Post: dchilambo
  Upload Files to Azure Storage Container phillyfa 6 712 Dec-22-2023, 06:11 AM
Last Post: Pedroski55
  Python installation for old MacOS Yonix 1 499 Sep-21-2023, 03:32 PM
Last Post: menator01
  Installation of packages to newest Python version from previous one Andrzej_Andrzej 3 848 Jul-15-2023, 11:32 AM
Last Post: snippsat
  How to see the date of installation of python modules. newbieAuggie2019 4 1,640 Mar-31-2023, 12:40 PM
Last Post: newbieAuggie2019
  Getting "SSL client not supported by this Python installation" error prabirsarkar 0 968 Mar-13-2023, 05:01 PM
Last Post: prabirsarkar
Lightbulb shutdown host from docker container cosmin1805 0 961 Nov-27-2022, 06:34 PM
Last Post: cosmin1805
  networkx package is not visible in singularity container image erdemath 11 2,300 Oct-14-2022, 12:04 PM
Last Post: Larz60+
  Python in Singularity Container on Ubuntu erdemath 0 913 Aug-31-2022, 02:17 PM
Last Post: erdemath
Question Python V3.11 Installation Help Danno 2 1,111 Aug-11-2022, 02:30 AM
Last Post: Danno

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020