glennhickey / progressiveCactus

Distribution package for the Prgressive Cactus multiple genome aligner. Dependencies are linked as submodules
Other
83 stars 26 forks source link

print error after build #97

Closed cistarsa closed 6 years ago

cistarsa commented 6 years ago

Hello, I believe I've successfully built this program from here using:

git clone git://github.com/glennhickey/progressiveCactus.git
cd progressiveCactus
git pull
git submodule update --init
make

# and update

git submodule update --init
make ucscClean
make

but am getting a print error (associated with python version?)

$ ./bin/runProgressiveCactus.sh
  File "./bin/../src/progressiveCactus.py", line 346
    print "\nBeginning Alignment"
                                ^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(print "\nBeginning Alignment")?

$ python -VPython 2.7.12

I also tried to call python2 directly, but still got an error...

 $ python2 ./bin/runProgressiveCactus.sh 
  File "./bin/runProgressiveCactus.sh", line 21
    binDir=$(dirname $0)
           ^
SyntaxError: invalid syntax

Thank you!

diekhans commented 6 years ago

./bin/runProgressiveCactus.sh is a bash program,

you can edit in to use python2 explicitly.

kingcohn1 notifications@github.com writes:

Hello, I believe I've successfully built this program from here using:

git clone git://github.com/glennhickey/progressiveCactus.git cd progressiveCactus git pull git submodule update --init make

and update

git submodule update --init make ucscClean make

but am getting a print error (associated with python version?)

$ ./bin/runProgressiveCactus.sh File "./bin/../src/progressiveCactus.py", line 346 print "\nBeginning Alignment" ^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(print "\nBeginning Alignment")?

$ python -VPython 2.7.12

I also tried to call python2 directly, but still got an error...

$ python2 ./bin/runProgressiveCactus.sh File "./bin/runProgressiveCactus.sh", line 21 binDir=$(dirname $0) ^ SyntaxError: invalid syntax

Thank you!

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.*

cistarsa commented 6 years ago

thank you!