This is a test version of Biostars. For the public version, visit https://www.biostars.org.
BioPerl: Use of uninitialized value $Bio::DB::NCBIHelper::HOSTBASE

Hi,

I'm new to both Perl and especially to BioPerl so bear with me.

It was a struggle to install BioPerl on Windows to begin with and now I got this error just by trying to run: use Bio::DB::GenBank;

Use of uninitialized value $Bio::DB::NCBIHelper::HOSTBASE in concatenation (.) or string at C:/Strawberry/perl/site/lib/Bio/DB/Query/GenBank.pm line 103.
Use of uninitialized value $Bio::DB::NCBIHelper::HOSTBASE in concatenation (.) or string at C:/Strawberry/perl/site/lib/Bio/DB/Query/GenBank.pm line 104.

line 103: use constant EPOST       => $Bio::DB::NCBIHelper::HOSTBASE.'/entrez/eutils/epost.fcgi';
line 104: use constant ESEARCH     => $Bio::DB::NCBIHelper::HOSTBASE.'/entrez/eutils/esearch.fcgi';

However if I try to print $Bio::DB::NCBIHelper::HOSTBASE it prints the correct hostbase (http://eutils.ncbi.nlm.nih.gov), meaning that it is in fact not uninitialized right?

bioperl perl

Please show a small piece of code that generates the error.

Well there is not much to show. Like I said the error occurs just by running the line:

​use Bio::DB::GenBank;

I can't reproduce that, could you please show us the version of bioperl you are using.

0 answers

No answers yet.

Log in to answer this question.