Can't locate Bio/ - path error?
Entering edit mode
20 months ago
blur ▴ 270


I am trying to run snippy on my UBUNTU18 (inside a conda env that has this tool installed) but am getting an error:

Can't locate Bio/ in @INC (you may need to install the module)

I checked the posts here, and tried therefore to install BioPerl using:

sudo apt install bioperl

-> bioperl is already the newest version (1.7.2.-2)

Then I tried: cpnam Bio::Perl

--> I get multiple "bailing" errors...

I think (I might be wrong) that there is something off with my path but I can't figure out what it is. the path reads:


Any help would be greatly appreciated,

bioperl • 4.1k views
Entering edit mode
20 months ago

From what you've posted, it looks like that you are running into the problem of installing system packages vs. conda packages. The BioPerl will likely be available for the system's perl after the apt get, not for the conda one.

Check my configuration as an example of the different perl executables:

# normal system perl
xx@xx:~$ which perl
xx@xx:~$ perl -e 'use BioPerl;'

# conda's perl
(env) xx@xx:~$ which perl
(env) xx@xx:~$ 
(env) xx@xx:~$ perl -e 'use BioPerl;'
Can't locate in @INC ..............

Assuming that the program you are trying to run is installed via conda, and it's calling the perl associated with conda, then you would need to install the BioPerl for the "conda perl".

Check this conda package

Other things may be broken, but without you checking for what is used when, I cannot help further.

Entering edit mode

I tried that too - I opened the env where snippy is installed and ran

conda install -c bioconda perl-bioperl

I get a msg: "All requested packages are already installed"

Then I ran: which perl


then I ran snippy to get the same error msg. "Can't locate in @INC"

But I did manage to fix it, using your idea - I opened a new env for snippy and installed both bio-perl and snippy from bioconda directly and now it works! so thank you!

Entering edit mode

I had the same problem and i fixed it by installing perl-bio-featureio Cheers


Login before adding your answer.

Traffic: 1172 users visited in the last hour
Help About
Access RSS

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6