prokka icon indicating copy to clipboard operation
prokka copied to clipboard

Argument "1.7.7" isn't numeric in numeric

Open tseemann opened this issue 4 years ago • 19 comments

Argument "1.7.7" isn't numeric in numeric lt (<) at /home/tseemann/git/prokka/bin/prokka line 259.

tseemann avatar Jul 05 '20 07:07 tseemann

Hello @tseemann , I noticed a similar error with a recent release of blastp (2.10) isn't being recognized as properly sufficient (>2.2 is required). Could this be a similar string comparison error?

MatthewRalston avatar Aug 06 '20 18:08 MatthewRalston

The same situation. What can I do to solve it?

hydong113 avatar Sep 18 '20 09:09 hydong113

Is there any solution since September?

JAnsede avatar Oct 29 '20 19:10 JAnsede

I am also getting this error. I simply can't get Prokka to run!

wolfgangrumpf avatar Dec 03 '20 20:12 wolfgangrumpf

Hi, I am getting the same error message, any recommendation?

ghost avatar Dec 07 '20 10:12 ghost

Hello,

It could be resolved doing this --> https://github.com/tseemann/prokka/issues/448

follow --> cabrerad commented on 13 Jan, I'll quote him

Try this: $ conda create -n prokka_env -c conda-forge -c bioconda prokka $ conda activate prokka_env

It worked for me! I had the same problem as you.

You can check your environment list with: $ conda env list

Hope this can help!

ghost avatar Dec 07 '20 20:12 ghost

This approach finally worked for me. It's bizarre - I TRIED doing a Conda install previously, but it too failed - until I wiped everything and started again with this approach. Thanks, JuanMartinezV!

wolfgangrumpf avatar Dec 11 '20 16:12 wolfgangrumpf

Hi, faced this Bioperl version issue a few months back. solved it by modifying a few lines of code.

Here's how I solved it on v1.14.5. Pretty sure, it will work on v1.14.6 too.

Need this module. use Perl::Version;

Changed the code a bit on those specific lines (starts from line 259)

my $minbpver = "1.006002"; # for Bio::SearchIO::hmmer3
my $bpver0 = Perl::Version->new($Bio::Root::Version::VERSION);
my $bpver = $bpver0->numify;
msg("You have BioPerl $bpver");
err("Please install BioPerl $minbpver or higher") if $bpver < $minbpver;

arif-tanmoy avatar Jan 07 '22 08:01 arif-tanmoy

I can solve it with a pre-code : prokka --setupdb

minhtrung1997 avatar Feb 24 '22 02:02 minhtrung1997

Hi, I have tried all the suggestion regarding this error on this page but still unable to resolve it. please help me if anyone know anything about this error.

This is prokka 1.14.6 [09:35:51] Written by Torsten Seemann [email protected] [09:35:51] Homepage is https://github.com/tseemann/prokka [09:35:51] Local time is Tue Sep 27 09:35:51 2022 [09:35:51] You are bvs [09:35:51] Operating system is linux [09:35:51] You have BioPerl 1.7.8 Argument "1.7.8" isn't numeric in numeric lt (<) at /home/bvs/anaconda3/envs/prokka_env/bin/prokka line 259. [09:35:51] System has 96 cores. [09:35:51] Will use maximum of 10 cores. [09:35:51] Annotating as >>> Bacteria <<< [09:35:51] Please supply a contig FASTA file on the command line. /home/bvs/neelam/plasmid_cp/P_aeruginosa_KB-PA_F19-3.fna

Thank you!

neelam19051 avatar Sep 27 '22 04:09 neelam19051

I can solve it with a pre-code : prokka --setupdb

How?

I am unable to resolve this issue.

MHassanSaeed avatar Jan 24 '23 21:01 MHassanSaeed

prokka --setupdb did not work, but @arif-tanmoy solution worked for me.

Veroman avatar Jan 26 '23 01:01 Veroman

Hi, faced this Bioperl version issue a few months back. solved it by modifying a few lines of code.

Here's how I solved it on v1.14.5. Pretty sure, it will work on v1.14.6 too.

Need this module. use Perl::Version;

Changed the code a bit on those specific lines (starts from line 259)

my $minbpver = "1.006002"; # for Bio::SearchIO::hmmer3
my $bpver0 = Perl::Version->new($Bio::Root::Version::VERSION);
my $bpver = $bpver0->numify;
msg("You have BioPerl $bpver");
err("Please install BioPerl $minbpver or higher") if $bpver < $minbpver;

Hi @arif-tanmoy I tried to change the code in prokka script but it shows me this error now:

Can't locate object method "new" via package "Perl::Version" (perhaps you forgot to load "Perl::Version"?) at /home/rsharma/anaconda3/envs/prokka/bin/prokka line 257

Kindly help me resolve this error! Thanks in Advance!!

saras224 avatar Feb 21 '23 10:02 saras224

Hi, faced this Bioperl version issue a few months back. solved it by modifying a few lines of code. Here's how I solved it on v1.14.5. Pretty sure, it will work on v1.14.6 too. Need this module. use Perl::Version; Changed the code a bit on those specific lines (starts from line 259)

my $minbpver = "1.006002"; # for Bio::SearchIO::hmmer3
my $bpver0 = Perl::Version->new($Bio::Root::Version::VERSION);
my $bpver = $bpver0->numify;
msg("You have BioPerl $bpver");
err("Please install BioPerl $minbpver or higher") if $bpver < $minbpver;

Hi @arif-tanmoy I tried to change the code in prokka script but it shows me this error now:

Can't locate object method "new" via package "Perl::Version" (perhaps you forgot to load "Perl::Version"?) at /home/rsharma/anaconda3/envs/prokka/bin/prokka line 257

Kindly help me resolve this error! Thanks in Advance!!

This link (https://github.com/tseemann/prokka/pull/619) fixed it for me as of today. I had the same problem as you

joelwwh avatar Feb 23 '23 02:02 joelwwh

Hi @joelwwh you just need to add the module I mentioned in the text.

use Perl::Version;

Add this in the script (in the module calling section) and it should be fine too.

arif-tanmoy avatar Feb 23 '23 02:02 arif-tanmoy

@arif-tanmoy I actually tried that but got the same error as @saras224. Not sure why. Perhaps others have better luck. Thanks for your help though

joelwwh avatar Feb 23 '23 02:02 joelwwh

Hi @joelwwh you just need to add the module I mentioned in the text.

use Perl::Version;

Add this in the script (in the module calling section) and it should be fine too.

Hi @arif-tanmoy Thanks for responding but I have a doubt, what do you mean when you are saying " use Perl::Version; "? What I am doing is that I am going to the prokka script in the bin and changing the lines from 259. Is it not what we should do? And even after doing that, I am getting the same error.

Thanks!

saras224 avatar Feb 23 '23 03:02 saras224

Hi @joelwwh you just need to add the module I mentioned in the text. use Perl::Version; Add this in the script (in the module calling section) and it should be fine too.

Hi @arif-tanmoy Thanks for responding but I have a doubt, what do you mean when you are saying " use Perl::Version; "? What I am doing is that I am going to the prokka script in the bin and changing the lines from 259. Is it not what we should do? And even after doing that, I am getting the same error.

Thanks!

Hi @saras224 - yes, you have to change the codes in/from line 259. However, you are using a different module there, named "Perl::Version" and it's not in the script by default. So, you have call that module from the script. You can add that module calling part use Perl::Version; in line 41. Now, with the changes in line 41 and few lines near 259, the script should run without an error.

arif-tanmoy avatar Feb 27 '23 03:02 arif-tanmoy