No home isolation with apptainer can cause Python errors when running heudiconv #1
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Running with apptainer according to the instructions means that home directory is mounted (default apptainer behavior), which can cause Python errors (depending on
~/local/libcontents) unless the environment variableAPPTAINER_NO_HOME=1is set.Detailed explanation:
I am running a command which is equivalent to the instructions provided in the README, with small changes which are not relevant for this issue (no mapping of identifiers, heuristic is not annexed, the input file is a tarball, long options are used):
I get errors which originate with my
~/.local/lib/python3.9/site-packages:When I first
export APPTAINER_NO_HOME=1, everything proceeds smoothly.FWIW, repronim-containers does some adaptations of binds, environment, etc for the singularity command (221 line bash wrapper).
The error is clearly dependent on my specific environment (Python 3.9 leftovers I would say) but perhaps we should suggest some isolation settings in the README or include them in the apptainer command in datalad-containers configuration? I think
--no-homeis sufficient but also consider--containall(see Bind paths and mounts and--cleanenv.