tseemann / prokka

:zap: :aquarius: Rapid prokaryotic genome annotation
843 stars 226 forks source link

date format in gbk file #542

Closed fetyj closed 3 years ago

fetyj commented 3 years ago

Hi, i have installed prokka with conda few days ago prokka 1.14.6. after annotating some fasta file I noticed that the date format was weird (15-DéC.-2020). When I use the files I got this error LOCUS line does not contain - at position 75 in date Can someone help me with this issue? Thanks for your help

Regards Fety

rpetit3 commented 3 years ago

Hi @fetyj

I realize I'm a bit late, but Prokka uses tbl2asn to generate the Genbank. I maintain tbl2asn-forever which Prokka from conda uses.

I wonder what you get from the following command env | grep LANG. I might need to force tbl2asn-forever to use LANG=en_US.UTF-8.

Cheers, Robert

fetyj commented 3 years ago

Hi @rpetit3 Here is the output from the command LANG=en_US.UTF-8 GDM_LANG=en_US LANGUAGE=en_US I tried a new analysis and the result is the same with date format 11-JANV.-2021 Regards,

Fety

rpetit3 commented 3 years ago

That's weird, what do you get for date?

fetyj commented 3 years ago

for date I get lundi 11 janvier 2021, 16:21:32 (UTC+0100)

rpetit3 commented 3 years ago

Safe to say OS is using French?

I wonder if running prokka like this: LC_ALL=en_US.UTF-8 prokka ARGS would fix your problem?

fetyj commented 3 years ago

Yes, you are right about OS. Indeed, your work-around works like a charm :-) Any idea to fix this in my conda environment for prokka? thanks for your help

rpetit3 commented 3 years ago

It might be worth trying an alias for prokka, before messing with conda.

In your .bashrc (or .bash_profile) add this:

alias prokka="LC_ALL=en_US.UTF-8 prokka"
fetyj commented 3 years ago

Thanks

Cheers, Fety

JipengLuo commented 1 year ago

Hi Fety, I have encountered the same problem with you, see it in the attachment. The error shows that 'ERROR 06/07 09:45:03 LOCUS line does not contain - at position 75 in date:'. I just find this problem reporting page, I wonder did you resolve this problem?

Looking forward to hearing from you. Thank you. Jipeng