liftoff / GateOne

Gate One is an HTML5-powered terminal emulator and SSH client
http://liftoffsoftware.com/Products/GateOne
Other
6.26k stars 925 forks source link

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

Open weituotian opened 6 years ago

weituotian commented 6 years ago
[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
PineappleBeer commented 4 years ago

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

weituotian commented 4 years ago

@PineappleBeer 哦哦,看看