When running these two commands sequentially in a terminal,
singularity run /home/___/singularity_containers/singularity_container.simg bash
python3 /home/__/__/___/src/python_file.py
Everything executes correctly, but when trying to run this from a batch file with
singularity exec /home/__/singularity_containers/singularity_container.simg python3 /home/___/____/____/src/python_file.py
I get an error, "cannot open shared object file: No such file or directory" for a specific backend library required in my project.
Why does it run in the first case but not in the second? Are the commands not supposed to be doing the same thing?