Ensembl / ensembl-vep

The Ensembl Variant Effect Predictor predicts the functional effects of genomic variants
https://www.ensembl.org/vep
Apache License 2.0
453 stars 152 forks source link

Installation failure. #665

Closed KoenDebackere closed 4 years ago

KoenDebackere commented 4 years ago

Describe the issue

I try to install ensembl-vep according to the instructions provided for macOS. All the prerequisites are installed according to the instructions. When running INSTALL.pl, all tests failed initially, but this could be overcome by installing Try::Tiny. Now I get more or less the same errors as mentioned in the closed report #381. I double checked the path to the manual installation of BioPerl in my .bash_profile as suggested, and this is OK. I removed the vep-ensembl directory and did a reinstall, but I get exactly the same error.

Additional information

Please fill in the following sections to help us find the source of your issue as quickly as possible.

System

Full VEP command line

perl INSTALL.pl 

Full error message

Installation on OSX requires that you set up some paths before running this installer. Have you

  1. added /Users/u0062120/ensembl-vep/htslib to your DYLD_LIBRARY_PATH environment variable? (y/n): y

Hello! This installer is configured to install v98 of the Ensembl API for use by the VEP. It will not affect any existing installations of the Ensembl API that you may have.

It will also download and install cache files from Ensembl's FTP server.

Checking for installed versions of the Ensembl API...done

Setting up directories

If this fails, try re-running with --NO_HTSLIB

You are in 'detached HEAD' state. You can look around, make experimental changes and commit them, and you can discard any commits you make in this state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may do so (now or later) by using -b with the checkout command again. Example:

git checkout -b

Downloading required Ensembl API files

Testing VEP installation ./t/Utils.t .......................................... ok
./t/Parser_Region.t .................................. Possible precedence issue with control flow operator at /Users/u0062120/perl5/BioPerl-1.6.924/Bio/DB/IndexedBase.pm line 791. ./t/Parser_Region.t .................................. ok
./t/FilterSet.t ...................................... ok
./t/AnnotationSource_Cache.t ......................... Possible precedence issue with control flow operator at /Users/u0062120/perl5/BioPerl-1.6.924/Bio/DB/IndexedBase.pm line 791. ./t/AnnotationSource_Cache.t ......................... ok
./t/AnnotationSource_Database_Variation.t ............ Possible precedence issue with control flow operator at /Users/u0062120/perl5/BioPerl-1.6.924/Bio/DB/IndexedBase.pm line 791. ./t/AnnotationSource_Database_Variation.t ............ ok
./t/AnnotationSource_Database_RegFeat.t .............. Possible precedence issue with control flow operator at /Users/u0062120/perl5/BioPerl-1.6.924/Bio/DB/IndexedBase.pm line 791. ./t/AnnotationSource_Database_RegFeat.t .............. ok
./t/OutputFactory_Tab.t .............................. Possible precedence issue with control flow operator at /Users/u0062120/perl5/BioPerl-1.6.924/Bio/DB/IndexedBase.pm line 791. ./t/OutputFactory_Tab.t .............................. ok
./t/version.t ........................................ ok
./t/AnnotationSource_File_BigWig.t ................... Possible precedence issue with control flow operator at /Users/u0062120/perl5/BioPerl-1.6.924/Bio/DB/IndexedBase.pm line 791. ./t/AnnotationSource_File_BigWig.t ................... ok
./t/AnnotationSource_Cache_VariationTabix.t .......... Possible precedence issue with control flow operator at /Users/u0062120/perl5/BioPerl-1.6.924/Bio/DB/IndexedBase.pm line 791. ./t/AnnotationSource_Cache_VariationTabix.t .......... ok
./t/OutputFactory_VEP_output.t ....................... Possible precedence issue with control flow operator at /Users/u0062120/perl5/BioPerl-1.6.924/Bio/DB/IndexedBase.pm line 791. ./t/OutputFactory_VEP_output.t ....................... ok
./t/Config.t ......................................... Possible precedence issue with control flow operator at /Users/u0062120/perl5/BioPerl-1.6.924/Bio/DB/IndexedBase.pm line 791. ./t/Config.t ......................................... ok
./t/TranscriptTree.t ................................. Possible precedence issue with control flow operator at /Users/u0062120/perl5/BioPerl-1.6.924/Bio/DB/IndexedBase.pm line 791. ./t/TranscriptTree.t ................................. ok
./t/InputBuffer.t .................................... Possible precedence issue with control flow operator at /Users/u0062120/perl5/BioPerl-1.6.924/Bio/DB/IndexedBase.pm line 791. ./t/InputBuffer.t .................................... ok
./t/OutputFactory_JSON.t ............................. Possible precedence issue with control flow operator at /Users/u0062120/perl5/BioPerl-1.6.924/Bio/DB/IndexedBase.pm line 791. ./t/OutputFactory_JSON.t ............................. ok
./t/Parser.t ......................................... Possible precedence issue with control flow operator at /Users/u0062120/perl5/BioPerl-1.6.924/Bio/DB/IndexedBase.pm line 791. ./t/Parser.t ......................................... ok
./t/VariantRecoder.t ................................. Possible precedence issue with control flow operator at /Users/u0062120/perl5/BioPerl-1.6.924/Bio/DB/IndexedBase.pm line 791. ./t/VariantRecoder.t ................................. ok
./t/AnnotationSource_File.t .......................... Possible precedence issue with control flow operator at /Users/u0062120/perl5/BioPerl-1.6.924/Bio/DB/IndexedBase.pm line 791. ./t/AnnotationSource_File.t .......................... 1/? Can't locate object method "new" via package "Bio::EnsEMBL::VEP::AnnotationSource::File::GFF" at /Users/u0062120/ensembl-vep/modules/Bio/EnsEMBL/VEP/AnnotationSource/File.pm line 167.

Tests were run but no plan was declared and done_testing() was not seen.

Looks like your test exited with 2 just after 17.

./t/AnnotationSource_File.t .......................... Dubious, test returned 2 (wstat 512, 0x200) All 17 subtests passed ./t/Parser_ID.t ...................................... Possible precedence issue with control flow operator at /Users/u0062120/perl5/BioPerl-1.6.924/Bio/DB/IndexedBase.pm line 791. ./t/Parser_ID.t ...................................... ok
./t/OutputFactory.t .................................. Possible precedence issue with control flow operator at /Users/u0062120/perl5/BioPerl-1.6.924/Bio/DB/IndexedBase.pm line 791. ./t/OutputFactory.t .................................. ok
./t/Parser_VEP_input.t ............................... Possible precedence issue with control flow operator at /Users/u0062120/perl5/BioPerl-1.6.924/Bio/DB/IndexedBase.pm line 791. ./t/Parser_VEP_input.t ............................... ok
./t/Parser_SPDI.t .................................... Possible precedence issue with control flow operator at /Users/u0062120/perl5/BioPerl-1.6.924/Bio/DB/IndexedBase.pm line 791. ./t/Parser_SPDI.t .................................... ok
./t/CacheDir.t ....................................... Possible precedence issue with control flow operator at /Users/u0062120/perl5/BioPerl-1.6.924/Bio/DB/IndexedBase.pm line 791. ./t/CacheDir.t ....................................... ok
./t/AnnotationSource_Database_Transcript.t ........... Possible precedence issue with control flow operator at /Users/u0062120/perl5/BioPerl-1.6.924/Bio/DB/IndexedBase.pm line 791. ./t/AnnotationSource_Database_Transcript.t ........... ok
./t/Runner.t ......................................... Possible precedence issue with control flow operator at /Users/u0062120/perl5/BioPerl-1.6.924/Bio/DB/IndexedBase.pm line 791. ./t/Runner.t ......................................... 50/? Can't locate object method "new" via package "Bio::EnsEMBL::VEP::AnnotationSource::File::GFF" at /Users/u0062120/ensembl-vep/modules/Bio/EnsEMBL/VEP/AnnotationSource/File.pm line 167.

Tests were run but no plan was declared and done_testing() was not seen.

Looks like your test exited with 255 just after 73.

./t/Runner.t ......................................... Dubious, test returned 255 (wstat 65280, 0xff00) All 73 subtests passed ./t/AnnotationSource_Database_StructuralVariation.t .. Possible precedence issue with control flow operator at /Users/u0062120/perl5/BioPerl-1.6.924/Bio/DB/IndexedBase.pm line 791. ./t/AnnotationSource_Database_StructuralVariation.t .. ok
./t/AnnotationSource_Cache_RegFeat.t ................. Possible precedence issue with control flow operator at /Users/u0062120/perl5/BioPerl-1.6.924/Bio/DB/IndexedBase.pm line 791. ./t/AnnotationSource_Cache_RegFeat.t ................. ok
./t/AnnotationSource_File_GFF.t ...................... Possible precedence issue with control flow operator at /Users/u0062120/perl5/BioPerl-1.6.924/Bio/DB/IndexedBase.pm line 791. ./t/AnnotationSource_File_GFF.t ...................... 1/?

Failed test 'use Bio::EnsEMBL::VEP::AnnotationSource::File::GFF;'

at ./t/AnnotationSource_File_GFF.t line 41.

Tried to use 'Bio::EnsEMBL::VEP::AnnotationSource::File::GFF'.

Error: Attempt to reload Bio/EnsEMBL/VEP/AnnotationSource/File/GFF.pm aborted.

Compilation failed in require at ./t/AnnotationSource_File_GFF.t line 41.

BEGIN failed--compilation aborted at ./t/AnnotationSource_File_GFF.t line 41.

Can't locate object method "new" via package "Bio::EnsEMBL::VEP::AnnotationSource::File::GFF" at ./t/AnnotationSource_File_GFF.t line 51, <__ANONIO__> line 9.

Tests were run but no plan was declared and done_testing() was not seen.

Looks like your test exited with 25 just after 4.

./t/AnnotationSource_File_GFF.t ...................... Dubious, test returned 25 (wstat 6400, 0x1900) Failed 1/4 subtests ./t/Parser_HGVS.t .................................... Possible precedence issue with control flow operator at /Users/u0062120/perl5/BioPerl-1.6.924/Bio/DB/IndexedBase.pm line 791. ./t/Parser_HGVS.t .................................... ok
./t/AnnotationSource_File_VCF.t ...................... Possible precedence issue with control flow operator at /Users/u0062120/perl5/BioPerl-1.6.924/Bio/DB/IndexedBase.pm line 791. ./t/AnnotationSource_File_VCF.t ...................... ok
./t/bam_edit.t ....................................... Possible precedence issue with control flow operator at /Users/u0062120/perl5/BioPerl-1.6.924/Bio/DB/IndexedBase.pm line 791. ./t/bam_edit.t ....................................... ok
./t/OutputFactory_VCF.t .............................. Possible precedence issue with control flow operator at /Users/u0062120/perl5/BioPerl-1.6.924/Bio/DB/IndexedBase.pm line 791. ./t/OutputFactory_VCF.t .............................. ok
./t/AnnotationSourceAdaptor.t ........................ Possible precedence issue with control flow operator at /Users/u0062120/perl5/BioPerl-1.6.924/Bio/DB/IndexedBase.pm line 791. ./t/AnnotationSourceAdaptor.t ........................ ok
./t/Stats.t .......................................... Possible precedence issue with control flow operator at /Users/u0062120/perl5/BioPerl-1.6.924/Bio/DB/IndexedBase.pm line 791. ./t/Stats.t .......................................... ok
./t/AnnotationSource_Cache_Transcript.t .............. Possible precedence issue with control flow operator at /Users/u0062120/perl5/BioPerl-1.6.924/Bio/DB/IndexedBase.pm line 791. ./t/AnnotationSource_Cache_Transcript.t .............. ok
./t/AnnotationSource_File_BED.t ...................... Possible precedence issue with control flow operator at /Users/u0062120/perl5/BioPerl-1.6.924/Bio/DB/IndexedBase.pm line 791. ./t/AnnotationSource_File_BED.t ...................... ok
./t/AnnotationSource.t ............................... Possible precedence issue with control flow operator at /Users/u0062120/perl5/BioPerl-1.6.924/Bio/DB/IndexedBase.pm line 791. ./t/AnnotationSource.t ............................... ok
./t/AnnotationSource_Cache_Variation.t ............... Possible precedence issue with control flow operator at /Users/u0062120/perl5/BioPerl-1.6.924/Bio/DB/IndexedBase.pm line 791. ./t/AnnotationSource_Cache_Variation.t ............... ok
./t/Parser_VCF.t ..................................... "my" variable $cnv_vf masks earlier declaration in same scope at ./t/Parser_VCF.t line 570. Possible precedence issue with control flow operator at /Users/u0062120/perl5/BioPerl-1.6.924/Bio/DB/IndexedBase.pm line 791. ./t/Parser_VCF.t ..................................... 1/? WARNING: variant sv_dup on line 1 is too long to annotate: (10000) WARNING: variant sv_dup on line 1 is too long to annotate: (10000) ./t/Parser_VCF.t ..................................... ok
./t/BaseVEP.t ........................................ Possible precedence issue with control flow operator at /Users/u0062120/perl5/BioPerl-1.6.924/Bio/DB/IndexedBase.pm line 791. ./t/BaseVEP.t ........................................ ok
./t/AnnotationSource_File_GTF.t ...................... Possible precedence issue with control flow operator at /Users/u0062120/perl5/BioPerl-1.6.924/Bio/DB/IndexedBase.pm line 791. ./t/AnnotationSource_File_GTF.t ...................... 1/?

Failed test 'use Bio::EnsEMBL::VEP::AnnotationSource::File::GTF;'

at ./t/AnnotationSource_File_GTF.t line 41.

Tried to use 'Bio::EnsEMBL::VEP::AnnotationSource::File::GTF'.

Error: Attempt to reload Bio/EnsEMBL/IO/Parser/GXF.pm aborted.

Compilation failed in require at /Users/u0062120/perl5/perlbrew/perls/5.26.2/lib/5.26.2/parent.pm line 16.

BEGIN failed--compilation aborted at Bio/EnsEMBL/IO/Parser/GTF.pm line 30.

Compilation failed in require at Bio/EnsEMBL/IO/Parser/GTFTabix.pm line 41.

BEGIN failed--compilation aborted at Bio/EnsEMBL/IO/Parser/GTFTabix.pm line 41.

Compilation failed in require at /Users/u0062120/ensembl-vep/modules/Bio/EnsEMBL/VEP/AnnotationSource/File/GTF.pm line 67.

BEGIN failed--compilation aborted at /Users/u0062120/ensembl-vep/modules/Bio/EnsEMBL/VEP/AnnotationSource/File/GTF.pm line 67.

Compilation failed in require at ./t/AnnotationSource_File_GTF.t line 41.

BEGIN failed--compilation aborted at ./t/AnnotationSource_File_GTF.t line 41.

Can't locate object method "new" via package "Bio::EnsEMBL::VEP::AnnotationSource::File::GTF" at ./t/AnnotationSource_File_GTF.t line 51, <__ANONIO__> line 9.

Tests were run but no plan was declared and done_testing() was not seen.

Looks like your test exited with 25 just after 4.

./t/AnnotationSource_File_GTF.t ...................... Dubious, test returned 25 (wstat 6400, 0x1900) Failed 1/4 subtests

Test Summary Report

./t/AnnotationSource_File.t (Wstat: 512 Tests: 17 Failed: 0) Non-zero exit status: 2 Parse errors: No plan found in TAP output ./t/Runner.t (Wstat: 65280 Tests: 73 Failed: 0) Non-zero exit status: 255 Parse errors: No plan found in TAP output ./t/AnnotationSource_File_GFF.t (Wstat: 6400 Tests: 4 Failed: 1) Failed test: 2 Non-zero exit status: 25 Parse errors: No plan found in TAP output ./t/AnnotationSource_File_GTF.t (Wstat: 6400 Tests: 4 Failed: 1) Failed test: 2 Non-zero exit status: 25 Parse errors: No plan found in TAP output Files=41, Tests=1613, 103 wallclock secs ( 0.24 usr 0.13 sys + 97.39 cusr 4.17 csys = 101.93 CPU) Result: FAIL Failed 4/41 test programs. 2/1613 subtests failed.

at7 commented 4 years ago

Dear @KoenDebackere, thank you for your detailed error report. Is it possible that you have already installed BioPerl? The errors look like there is a conflict with an existing BioPerl installation on your computer. If that is the case we have previously suggested to: 1) Delete the ensembl-vep directory 2) Reclone VEP with ‘git clone https://github.com/ensembl/ensembl-vep 3) Ensure that the path to your manually installed BioPerl is stored within your PERL5LIB variable 4) Rerun the installer

Kind regards, Anja

KoenDebackere commented 4 years ago

Dear @at7 Anja,

Thanks for your reply. I already did that. I have a manual installation of BioPerl 1.6.924 and the path is correctly stored within my PERL5LIB variable:

~$ echo $PERL5LIB /Users/u0062120/perl5/BioPerl-1.6.924

When I try another reinstall, I get the same error.

Moreover, since the installer installs BioPerl 1.6.924 as well, I ran the INSTALL.pl script in an new session without the path to my manual install of BioPerl in the PERL5LIB variable, but I get exactly the same errors.

For both ./t/AnnotationSource_File.t and ./t/Runner.t I get this error: Can't locate object method "new" via package "Bio::EnsEMBL::VEP::AnnotationSource::File::GFF" at /Users/u0062120/ensembl-vep/modules/Bio/EnsEMBL/VEP/AnnotationSource/File.pm line 167.

The next to errors involve ./t/AnnotationSource_File_GFF.t and ./t/AnnotationSource_File_GTF.t. First they throw "Possible precedence issue with control flow operator at Bio/DB/IndexedBase.pm line 791." Then both scripts are ran again and throw a very similar error:

Can these errors be related/a consequence of to the first two errors?

at7 commented 4 years ago

The "Possible precedence issue with control flow operator" message can be ignored. I'm concerned about the second error related to the AnnotationSource::File::GFF and AnnotationSource::File::GTF tests. However, if you are not planning to use the custom annotation option I would suggest that you try running VEP regardless of those messages and we will look into it and get back to you with a solution. But this will not be before the new year.

at7 commented 4 years ago

Hi @KoenDebackere, how have you been getting on? Considering that you have already installed htslib through homebrew could you please try running the VEP installation with perl INSTALL.pl --NO_HTSLIB? Thank you, Anja

KoenDebackere commented 4 years ago

Hi Anja, I have been using VEP despite the errors and so far everything seems OK. I use VEP in combination with an adapted version of vcf2maf.pl to annotate vcf4.1 files from VarScan2 and convert them tw .maf files for visualisation with the Maftools package. I will try to reinstall with --NO_HTSLIB out of curiosity.

Best regards,

Koen