Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NameError: global name 'memoryview' is not defined #93

Open
xinghailong opened this issue Jun 1, 2017 · 1 comment
Open

NameError: global name 'memoryview' is not defined #93

xinghailong opened this issue Jun 1, 2017 · 1 comment

Comments

@xinghailong
Copy link

When i run the redis-live and visit http://192.168.242.8:8888/index.html.
tornado got an error
[E 170601 13:52:01 http1connection:731] Uncaught exception Traceback (most recent call last): File "/usr/lib64/python2.6/site-packages/tornado/http1connection.py", line 722, in _server_request_loop ret = yield conn.read_response(request_delegate) File "/usr/lib64/python2.6/site-packages/tornado/gen.py", line 1055, in run value = future.result() File "/usr/lib64/python2.6/site-packages/tornado/concurrent.py", line 238, in result raise_exc_info(self._exc_info) File "/usr/lib64/python2.6/site-packages/tornado/gen.py", line 307, in wrapper yielded = next(result) File "/usr/lib64/python2.6/site-packages/tornado/http1connection.py", line 159, in _read_message max_bytes=self.params.max_header_size) File "/usr/lib64/python2.6/site-packages/tornado/iostream.py", line 256, in read_until_regex self._try_inline_read() File "/usr/lib64/python2.6/site-packages/tornado/iostream.py", line 720, in _try_inline_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

Python 2.6.6
tornado (4.5.1)
argparse (1.4.0)
python-dateutil (1.4.1)
redis (2.10.5)

@xinghailong
Copy link
Author

if you like me use py2.6.x
try this:
pip uninstall tornado
pip install tornado==2.1.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant