anuradhawick / MetaBCC-LR

Reference-free Binning of Metagenomics Long Reads using Coverage and Composition
https://doi.org/10.1093/bioinformatics/btaa441
MIT License
19 stars 0 forks source link

line 76 error #7

Closed sankadinesh closed 3 years ago

sankadinesh commented 3 years ago

Hi there, How to resolve the following error while running ./MetaBCC-LR

./MetaBCC-LR File "./MetaBCC-LR", line 76 checkpoints_path = f"{output}/checkpoints" ^ SyntaxError: invalid syntax

Regards, Dinesh

anuradhawick commented 3 years ago

Hello,

Can you confirm whether you are running pythong version 3.7 or above? It might have been the issue. Older python versions did not support template strings.

sankadinesh commented 3 years ago

Hi there, yes. I have confirmed it. I am attaching screen shot as well. Pls check. Thanks Regards, Dinesh S L

Screenshot 2020-12-20 at 3 12 14 AM

anuradhawick commented 3 years ago

Hi,

You must be using a python version older than 3.6. As other users haven't got the error could you try following and see if it is 3.7?

python --version

sankadinesh commented 3 years ago

Hi Anuradha, yes. it is 3.7 Thanks Regards, Dinesh S L Screenshot 2020-12-20 at 3 24 56 AM

anuradhawick commented 3 years ago

Hi Dinesh,

It's strange and I'll have a deeper look as soon as I return to uni after holiday shutdown.

Thanks for understanding Anuradha

anuradhawick commented 3 years ago

Could you try to run the program without installing it? Although you might have python3 the version caught by the main python file's header may be different.

You can build using build.sh and then run using python3 MetaBCC-LR from the cloned directory.