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
  White Screen Issue with Toolbar After Python Installation evelynfreya 3 1,164 Apr-30-2025, 06:43 AM
Last Post: encore
  Install a module to a specific to Python Installation (one of many)) tester_V 2 2,218 Oct-29-2024, 03:25 PM
Last Post: snippsat
  Shrink Python installation? Extract site-packages from .zip only on demand? pstein 4 1,691 Oct-28-2024, 04:29 PM
Last Post: snippsat
  Troubleshooting Jupyter Notebook installation with Python using pip and a venv Drone4four 1 2,386 Jun-04-2024, 10:55 PM
Last Post: Drone4four
  uploading files from a ubuntu local directory to Minio storage container dchilambo 0 1,408 Dec-22-2023, 07:17 AM
Last Post: dchilambo
  Upload Files to Azure Storage Container phillyfa 6 3,229 Dec-22-2023, 06:11 AM
Last Post: Pedroski55
  Python installation for old MacOS Yonix 1 1,101 Sep-21-2023, 03:32 PM
Last Post: menator01
  Installation of packages to newest Python version from previous one Andrzej_Andrzej 3 4,732 Jul-15-2023, 11:32 AM
Last Post: snippsat
  How to see the date of installation of python modules. newbieAuggie2019 4 4,685 Mar-31-2023, 12:40 PM
Last Post: newbieAuggie2019
  Getting "SSL client not supported by this Python installation" error prabirsarkar 0 1,648 Mar-13-2023, 05:01 PM
Last Post: prabirsarkar

Forum Jump:

User Panel Messages

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