brownan / Rubiks-Cube-Solver

The optimal Rubik's cube solver that I wrote a while back. It uses pattern databases to somewhat efficiently solve the puzzle optimally (finds the fewest turns required to solve it).
GNU General Public License v3.0
70 stars 25 forks source link

SyntaxError: invalid syntax #4

Open afgoulart opened 7 years ago

afgoulart commented 7 years ago
.../Rubiks-Cube-Solver$ ./cube_convert.py
  File "./cube_convert.py", line 30
    print template % tuple(range(1,49))
                 ^
SyntaxError: invalid syntax
.../Rubiks-Cube-Solver$ python --version
Python 3.6.0

What python version I need to execute the script?

jan4984 commented 6 years ago

try py2?

aaronryank commented 6 years ago

You need to run the script with Python 2, not 3.

Change the first line of the script from this:

#!/usr/bin/env python

To this:

#!/usr/bin/env python2
petterreinholdtsen commented 4 months ago

Perhaps it is time to migrate to python 3?

brownan commented 4 months ago

Hi @petterreinholdtsen I appreciate the interest, but I'm not really maintaining this project any longer. If you'd like to update it, I'd encourage you to fork it and continue development in your own repository. Thanks!

petterreinholdtsen commented 4 months ago

[Andrew Brown]

Hi @petterreinholdtsen I appreciate the interest, but I'm not really maintaining this project any longer. If you'd like to update it, I'd encourage you to fork it and continue development in your own repository. Thanks!

No worries. I just came across some of my very old and not yet accepted change proposals, and thought it best to poke and see if the project was still alive.

-- Happy hacking Petter Reinholdtsen