sanger-pathogens / Roary

Rapid large-scale prokaryote pan genome analysis
http://sanger-pathogens.github.io/Roary
Other
303 stars 189 forks source link

SyntaxError: invalid syntax #538

Open TC-2021 opened 3 years ago

TC-2021 commented 3 years ago

Hi all,

I am running roary_plots.py, I've downloaded the script of "roary_plots.py " and trying to run the next code:

roary_plots.py mytree.nwk gene_presence_absence.csv

I got the following: SyntaxError: invalid syntax

I also tried the code: roary_plots.py c:/mytree.nwk c:/gene_presence_absence.csv

Got the same message!

Could someone help me out please? Thanks.

jellyvanderwoude commented 1 year ago

This error is likely because you're running your script within the python interpreter. Exit the python interpreter using exit() and in the command line use the code python roary_plots.py mytree.nwk gene_presence_absence.csv which tells the computer to use python and read the .py script.