-
Notifications
You must be signed in to change notification settings - Fork 133
pip3 installed version doesn't support python 3? #14
Copy link
Copy link
Open
Description
I installed torgnas with pip3 (Python 3.6 + Tornado 4.3). The demo can't run because of Python 2.x syntax such as :
except Exception, e:
after using 2to3-3.6, still can't run, here is the tornado log :
_[E 171014 09:15:18 http1connection:54] Uncaught exception
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/tornado/http1connection.py", line 238, in _read_message
delegate.finish()
File "/usr/local/lib/python3.6/site-packages/tornado/routing.py", line 251, in finish
self.delegate.finish()
File "/usr/local/lib/python3.6/site-packages/tornado/web.py", line 2096, in finish
self.execute()
File "/usr/local/lib/python3.6/site-packages/tornado/web.py", line 2129, in execute
**self.path_kwargs)
File "/usr/local/lib/python3.6/site-packages/torngas/handler.py", line 44, in _execute
with stack_context.StackContext(functools.partial(ThreadlocalLikeRequestContext, **current_context)):
File "/usr/local/lib/python3.6/site-packages/tornado/stack_context.py", line 137, in __enter__
self.enter()
File "/usr/local/lib/python3.6/site-packages/tornado/stack_context.py", line 122, in enter
context.__enter__()
File "/usr/local/lib/python3.6/site-packages/torngas/utils.py", line 411, in __enter__
self._prev_data = self.__class__.data
AttributeError: type object 'ThreadlocalLikeRequestContext' has no attribute 'data'_
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels