Skip to content
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

Installation through Bioconda not working #418

Closed
Aron-github opened this issue Aug 31, 2018 · 18 comments
Closed

Installation through Bioconda not working #418

Aron-github opened this issue Aug 31, 2018 · 18 comments

Comments

@Aron-github
Copy link

Dear developer,

I am trying to download roary through conda, but the system freezes trying to solve the environment once I type "conda install roary". I'm sure my conda environment is up and running since I have other conda enviroment (e.g. prokka) working correctly. Are you aware of any issue on the subject on your side?

Best regards,
Nora

@tseemann
Copy link
Contributor

tseemann commented Sep 4, 2018

Can you try conda update --all first?

@Aron-github
Copy link
Author

Dear tseemann,

I followed your suggestion and I got a "# All requested packages already installed.". However, no changes in the "conda install roary" result: it keeps freezing trying to solve the environment.

Thank you for your support, any other help would be greatly appreciated.
Best,
Nora

@tseemann
Copy link
Contributor

tseemann commented Sep 6, 2018

It sounds like your conda environment isn't working properly, or you don't have proper internet access.

Are you using minconda2 or miniconda3 ?
Did you activate your conda environment?

You can always mv miniconda miniconda.old to try reinstalling. if it doesn't work you can just move it back.

@Aron-github
Copy link
Author

Dear Tseemann,

are you suggesting that I should activate the conda environment before installing roary? I always do the opposite (activate to use an already installed env).

My sysadm installed miniconda 3 and set up a specific folder for all conda instances, therefore I'm always using the -p version of the commands to link the conda image to the right path.
So for roary I did:

conda create -p $MY_PATH/roary
conda install -p $MY_PATH/roary roary
source activate $MY_PATH/roary

From version info: I currently run conda 4.5.11 with python version 2.7.15.

Thanks again for your support.
Best regards,

Nora

@tseemann
Copy link
Contributor

tseemann commented Sep 8, 2018

I think you should ask your sysadmin to install roary and ensure it works.

Also, python 2.7 is end of life soon.

@Aron-github
Copy link
Author

Dear Tseemann,

with the help of my sysadmin we tryed to circumvent the error. We found that, by specifying the version of roary we needed, the command actually managed to solve the environment

conda install -p /pbs/scratch/bis/conda/roary roary=3.12.0

Unfortunately, the download issued several warnings:

Warning: 8 possible package resolutions (only showing differing packages):
  - bioconda::perl-test-exception-0.43-0, bioconda::perl-test-pod-1.51-0, bioconda::perl-text-diff-1.44-0
  - bioconda::perl-test-exception-0.43-pl5.22.0_0, bioconda::perl-test-pod-1.51-0, bioconda::perl-text-diff-1.44-0
  - bioconda::perl-test-exception-0.43-0, bioconda::perl-test-pod-1.51-0, bioconda::perl-text-diff-1.44-pl5.22.0_0
  - bioconda::perl-test-exception-0.43-pl5.22.0_0, bioconda::perl-test-pod-1.51-0, bioconda::perl-text-diff-1.44-pl5.22.0_0
  - bioconda::perl-test-exception-0.43-0, bioconda::perl-test-pod-1.51-pl5.22.0_0, bioconda::perl-text-diff-1.44-pl5.22.0_0
  - bioconda::perl-test-exception-0.43-pl5.22.0_0, bioconda::perl-test-pod-1.51-pl5.22.0_0, bioconda::perl-text-diff-1.44-pl5.22.0_0
  - bioconda::perl-test-exception-0.43-0, bioconda::perl-test-pod-1.51-pl5.22.0_0, bioconda::perl-text-diff-1.44-0
  - bioconda::perl-test-exception-0.43-pl5.22.0_0, bioconda::perl-test-pod-1.51-pl5.22.0_0, bioconda::perl-text-diff-1.44done

This prevented roary to work properly on some test sample when I activated the source:

source activate /pbs/scratch/bis/conda/roary
cd $my_test_path
roary -p 8 -f $my_test_path/Roary_output -e -n -r *.gff >roary_EXEC.txt 2> roary_ERR.txt

which resulted in the following error:

Use of uninitialized value in require at /pbs/scratch/bis/conda/roary/lib/perl5/5.22.0/x86_64-linux-thread-multi/Encode.pm line 59.
2018/09/10 16:04:32 Input file contains duplicate gene IDs, attempting to fix by adding a unique suffix, new GFF in the fixed_input_files directory: /pbs/scratch/bis/test_roary/104-2014_S26.gff
Use of uninitialized value in require at /pbs/scratch/bis/conda/roary/lib/perl5/site_perl/5.22.0/Bio/Roary/CommandLine/RoaryPostAnalysis.pm line 10.
Can't locate File/Find/Rule.pm in @INC (you may need to install the File::Find::Rule module) (@INC contains:  /pbs/scratch/bis/test_roary/Roary_output/lib /pbs/scratch/bis/conda/roary/lib/perl5/site_perl/5.22.0/x86_64-linux-thread-multi /pbs/scratch/bis/conda/roary/lib/perl5/site_perl/5.22.0 /pbs/scratch/bis/conda/roary/lib/perl5/5.22.0/x86_64-linux-thread-multi /pbs/scratch/bis/conda/roary/lib/perl5/5.22.0 .) at /pbs/scratch/bis/conda/roary/lib/perl5/site_perl/5.22.0/Bio/Roary/CommandLine/RoaryPostAnalysis.pm line 10.
BEGIN failed--compilation aborted at /pbs/scratch/bis/conda/roary/lib/perl5/site_perl/5.22.0/Bio/Roary/CommandLine/RoaryPostAnalysis.pm line 10.
Compilation failed in require at /pbs/scratch/bis/conda/roary/bin/pan_genome_post_analysis line 12.
BEGIN failed--compilation aborted at /pbs/scratch/bis/conda/roary/bin/pan_genome_post_analysis line 12.

Any idea on how to solve these issues?

Thanks again for your support.
Best regards,

Nora

@tseemann
Copy link
Contributor

I have dug deeper and I think roary on conda is broken and needs to rebuilt again for the recent perl upgrade.

I am trying here:
bioconda/bioconda-recipes#10895

@Aron-github
Copy link
Author

Dear tseeman,

thanks a lot for your support!
I'll wait for you to be back at me as soon as I can try to download Roary via conda again.

Best,
Nora

@tseemann
Copy link
Contributor

tseemann commented Sep 11, 2018

It seems to have re-built, but this doesn't mean it will work yet.

Try this:

conda update --all

Then try and run roary again - just roary -a first to see if dependencies installed ok.

@Aron-github
Copy link
Author

Dear tseeman,

conda freezes again at "Solving the environment" when I try to update all.
Do you think it could be useful if I try re-creating the environment from the start?

Best regards,
Eleonora

@tseemann
Copy link
Contributor

It's not freezing - it can take up to 30 minutes for me sometimes too :(

You could try reinstalling miniconda3 from scratch, yes.

@Aron-github
Copy link
Author

Dear tseeman,

after waiting for several hours, I had to kill the process of conda update.
The last thing I will do is to try reinstalling miniconda, possibily in a containerized env. (so not to conflict with the one setup by my sysadmin) and see if anything changes.

Any other suggestion would be greatly apreciated.
Best regards,
Nora

@andrewjpage
Copy link
Member

Hi @DolapoA
@tseemann @Slugger70 and myself will be at a Hackathon at the end of next week and will hopefully be able to take a look then. We do this in our spare time, hence the longer time scales. If you sys admin can help give us some more clues, that would be very helpful.
Regards,
Andrew

@DolapoA
Copy link

DolapoA commented Sep 14, 2018

@andrewjpage Okay thanks, just wanted to know if there was something I should be doing.

@tseemann
Copy link
Contributor

@Slugger70 won't be coming - he has had too many trips this year :-P

@darwinbandoy
Copy link

Hi Torsten,

Have you managed to make the conda installation working?

@tseemann
Copy link
Contributor

tseemann commented Sep 19, 2018

@Aron-github
Copy link
Author

Dear tseemann,

sweet, now everything seems to work fine! Thank you and @druvus for addressing this!
Best,
Nora

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants