-
Notifications
You must be signed in to change notification settings - Fork 633
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Singularity uses python libraries outside container #2348
Comments
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
bump, as this is very bad for reproducibility.
Linking the related nf-core discussion:
https://nfcore.slack.com/archives/CE5LG7WMB/p1643152746064800
…On Thu, 7 Apr 2022 at 01:49, stale[bot] ***@***.***> wrote:
This issue has been automatically marked as stale because it has not had
recent activity. It will be closed if no further activity occurs. Thank you
for your contributions.
—
Reply to this email directly, view it on GitHub
<#2348 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABVZRV7PS5YY5W6GUIVEW33VDYPITANCNFSM5E2HHHCA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
I got the same problem with Rscript. Rscript is located at /usr/bin/ in both my computer and the container. Nextflow seems to load the Rscript from my computer instead of the container. How to solve it ? |
This is the workaround used in nf-core: I really think this should be fixed on the nexflow side though! |
I tried to run my nextflow with and without this fix in my It doesn't change anything. This is strange because on a non-DSL2 nextflow, the singularity container is working well with Rscript. |
how do you pass the Setting |
It fixed my problem ! Indeed I use it only on the concerned modules in PS: I used the wrong notation:
instead of
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
I still think this should be fixed. |
is it not |
shouldn't be this the default? |
Could not break the execution of pipeline that are relying on that? |
yes it could, but just as it breaks pipelines that rely on using libraries/tools/software-versions that are packaged into the singularity image. I think the question is, what is more important then. For me, as a pipeline developer, it would be more important that the pipeline is reliably using the software (versions) that I pack into the image, so things remain reproducible. |
Well, you never know, but
Error messages arising due to wrong package versions being used are usually obscure and hard to debug. If a file is not found, it's pretty obvious. |
Fair enough. This can be added provided there's an option to opt-out e.g. I leave this as a community effort, feel free to provide a PR to address it. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
If someone comes looking for why some of their JAVA based programs are failing after the addition of -Djava.util.prefs.userRoot=user_prefs -Duser.home=user_home |
Bug report
Expected behavior and actual behavior
Expected: The process fails, as Biopython is not available in a vanilla python container
Actual: The process succeeds, as the
.local
directory in my home directory gets mounted into the containerThis is a problem as pipelines may not be reproducible anymore as a different version of a Python package than
installed in the container may be used. This may happen with R packages, too.
Steps to reproduce the problem
nextflow.config
singularity-nohome.nf
NB: to reproduce, the python version of the container must match the python version on the system running nextflow
Command executed:
Program output
(Copy and paste here output produced by the failing execution. Please highlight it as a code block. Whenever possible upload the
.nextflow.log
file.)Environment
version 21.04.0 build 5552
openjdk version "11.0.8-internal" 2020-07-14
GNU bash, version 5.1.8(1)-release (x86_64-pc-linux-gnu)
singularity version 3.8.3
Proposed solution
Always call singularity with the
--no-home
option.CC @riederd
The text was updated successfully, but these errors were encountered: