-
Notifications
You must be signed in to change notification settings - Fork 248
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
Perl dependencies not found for conda-installed package with biocontainers image #84
Comments
Hey @jaeddy; This is a pretty common error message. As you know, it signs that the module can't be found. Since we are dealing with a container and a conda installation, the problem may come from different sources.
The perl interpreter will always look at the default place plus any other directory specified on the script. In this particular case, what's going on is that the module is being installed by conda on the conda directory, not the default directory for Perl modules. There is a way to circumvent this during run time, you just need to run the script like this:
The When I run it like that I also have another error from a missing DBI module. So my guess here is that you will have the same problems with other modules, so:
I hope that can help you, I'm closing the issue but let me know if you need further asisstance good luck |
Thanks, @prvst! My understanding of Perl is admittedly rough. Working with that information, I was able to get the tool working within the container using these commands:
Per your second point, I need to get up to speed on writing my own conda recipes - hopefully that will happen soon. Is there a good rule of thumb for how best to combine dependencies when building recipes/containers? For example, if some tool |
I'm glad to know that you manage to have that working. You should try conda first if your software is available there. |
Posted this in the 'bioconda-recipes' repo earlier and was directed here. I'm trying to build a Docker image with the
variant-effect-predictor
package and another tool, but I'm running into an issue with the installed script not detecting the requiredCGI
Perl module.I'm using the base image from BioContainers to manually test the VEP install. The installation with
conda
seems to work fine, but I get an error when I try to run the tool. It seems to be looking in the default Perl path for the container but not the conda-specific path. I can't tell whether this is a problem with the BioContainers image or with the VEP recipe.Dockerfile here: https://github.com/BioContainers/containers/blob/master/biocontainers/Dockerfile
Here's the error message:
Confirming that CGI was installed by the conda recipe under
/opt/conda/lib/
:The text was updated successfully, but these errors were encountered: