xsank / webssh

WebSSH is a simple web project which support login linux server with explorer.
http://xsank.github.io/webssh/
MIT License
581 stars 221 forks source link

python2.7版本以下不能正确运行 #26

Open chutian52 opened 7 years ago

chutian52 commented 7 years ago

python2.7版本以下不能正确运行

[E 170801 17:32:26 ioloop:638] Exception in callback None
    Traceback (most recent call last):
      File "/usr/lib64/python2.6/site-packages/tornado/ioloop.py", line 888, in start
        handler_func(fd_obj, events)
      File "/usr/lib64/python2.6/site-packages/tornado/stack_context.py", line 277, in null_wrapper
        return fn(*args, **kwargs)
      File "/usr/lib64/python2.6/site-packages/tornado/iostream.py", line 519, in _handle_events
        self._handle_read()
      File "/usr/lib64/python2.6/site-packages/tornado/iostream.py", line 663, in _handle_read
        self._read_from_buffer(pos)
      File "/usr/lib64/python2.6/site-packages/tornado/iostream.py", line 778, in _read_from_buffer
        self._run_read_callback(pos, False)
      File "/usr/lib64/python2.6/site-packages/tornado/iostream.py", line 687, in _run_read_callback
        future.set_result(self._consume(size))
      File "/usr/lib64/python2.6/site-packages/tornado/iostream.py", line 910, in _consume
        b = (memoryview(self._read_buffer)
    NameError: global name 'memoryview' is not defined
xsank commented 7 years ago

OK,最近比较忙,周末装一个2.6的环境试下

huashengdun commented 6 years ago

试试tornado旧版本看行不行 pip uninstall tornado pip install tornado==2.1.1 参考 https://github.com/nkrode/RedisLive/issues/93