GateOne
GateOne copied to clipboard
SyntaxError: invalid syntax logging.error("Got exception in read: %s" % `e`)
[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
这是因为你用的python3.6相对gateone来说版本太高了,所以出现的语法错误,你应该使用python2.7来执行gateone.py。
@PineappleBeer 哦哦,看看