-
Notifications
You must be signed in to change notification settings - Fork 29
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
Helixer official docker not finding its own python modules when running in AWS through nextflow #154
Comments
Hi,
|
That was my first attempt, but wasn't successful. |
Here's a dockerfile I've used to construct an image that fits all the criteria above. I'm attaching it so that you may see if anything is useful for you! It creates a very heavy container (21.9 GB), it would need lots of improvement and perhaps a multi-stage build to reduce size (your original is 7.74 GB). But anyway, thought it was useful. |
UPDATE: I've managed to reduce the docker to about 12 GB based on your new commit and some other changes. Here it is (attached). |
Could you try adding |
I'm closing this issue, because there was no activity for 1 month. Feel free to reopen the issue if necessary. |
Describe the bug
I have successfully run Helixer locally using the pre-constructed docker container. Note that I am running it without GPU. When I run it on AWS using Nextflow, this happens:
To Reproduce
This is my nextflow process:
To reproduce the behavior, all that is needed is to run this process using the preconstructed container as container for the process, with no modification.
Error
The error I'm getting:
Seems to come from the fact that the environment does not find the
helixer
directory from where to load the local modulesprioritized_models
andfetch_and_organize_models
. Even if I change directory into the one where this folder is, or if I add it to the PYTHONPATH (see the nextflow process above).Note that this behavior is not observed when running locally, just in AWS. AWS + Nextflow notoriously creates some issues when something is installed in
/usr
, i.e. chances are this something won't be found when running in the cloud (not always, but frequently).Environment (please complete the following information):
The official docker from helixer
Suggested fix
I am adding a suggestion to fix it. I haven't fully tested it, but it should work if everything (including CUDA drivers) is installed outside of /usr, preferrably in
/opt
.Here's the changes I've done to the docker file:
This goes for the python packages too. In fact, it would be important to install them outside of
/usr/local
, e.g. just/usr
.I have solved at least that issue by setting this in the dockerfile:
The text was updated successfully, but these errors were encountered: