1

I have installed yugabytes DB in linux machine and when i try to start the cluster using yugabyted and getting error as invalid syntax. Please help how to resolve this issue.

./bin/yugabyted status File "./bin/yugabyted", line 1430 with open(out_log, "a") as out_log, open(err_log, "a") as err_log: ^ SyntaxError: invalid syntax

Python version using - 2.6.6 Linux Version - 2.6.32-754.31.1.el6.x86_64

thilsen
  • 11
  • 2

1 Answers1

1

This is a Python 2.6 issue where multiple contextmanagers in the same line are not supported - https://docs.python.org/2.7/reference/compound_stmts.html#the-with-statement. While the fix for this particular error should be simple, Python 2.6 is quite outdated at this point - retired in 2013 according to https://www.python.org/downloads/release/python-269/ - and I would recommend upgrading to Python 2.7.

iSignal
  • 11
  • 3