GateOne icon indicating copy to clipboard operation
GateOne copied to clipboard

SyntaxError: invalid syntax logging.error("Got exception in read: %s" % `e`)

Open weituotian opened this issue 7 years ago • 2 comments

[root@host gateone]# python --version
Python 3.6.2
[root@host gateone]# python -c "import tornado; print(tornado.version)"
2.4.1
[root@host gateone]# python gateone.py
Traceback (most recent call last):
  File "gateone.py", line 292, in <module>
    import termio, terminal
  File "/opt/gateone/termio.py", line 1596
    logging.error("Got exception in read: %s" % `e`)
                                                ^
SyntaxError: invalid syntax

weituotian avatar Jul 01 '18 02:07 weituotian

这是因为你用的python3.6相对gateone来说版本太高了,所以出现的语法错误,你应该使用python2.7来执行gateone.py

PineappleBeer avatar Nov 01 '19 02:11 PineappleBeer

@PineappleBeer 哦哦,看看

weituotian avatar Nov 01 '19 02:11 weituotian