hart-lab / bagel

BAGEL software
MIT License
26 stars 20 forks source link

Syntax error #1

Open kdelint opened 6 years ago

kdelint commented 6 years ago

This syntax error keeps coming up, but I can't figure out what's wrong. Any help would be appreciated!

C:\BAGEL>BAGEL.py bf -i RPE1.txt -o RPE1out.txt -e CEGv2.txt -n NEGv1.txt -c 1,2,3 File "C:\BAGEL\BAGEL.py", line 106 print helptext('main') ^ SyntaxError: invalid syntax

traverhart commented 5 years ago

Are you running Python v3? print syntax has changed. We will update.

rraadd88 commented 5 years ago

@kdelint , me too stumbled upon the same error. In my case I was using python3. You may convert the BAGEL.py script to python 3 and fix the syntaxes using this command (that's what I did): 2to3 -w BAGEL.py;autopep8 -i BAGEL.py 2to3 and autopep8 can be installed from pypi pip install 2to3 autopep8.