thrift-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ritchie" <ri...@qq.com>
Subject Re: tutorial for python2 tornado got error
Date Wed, 02 Dec 2015 08:59:23 GMT
sorry, but can anyone help me on this?




------------------ Original ------------------
From:  "Ritchie";<ritch@qq.com>;
Date:  Thu, Nov 26, 2015 09:57 AM
To:  "user"<user@thrift.apache.org>; 

Subject:  tutorial for python2 tornado got error



Hi,


I start to learn to use thrift and tried  the tutorial for python tornado. When I ran PythonClient.py,
got the error msg as below:


ERROR:tornado.application:Exception in callback <function null_wrapper at 0x7f38de9bcd70>
for <tornado.concurrent.Future object at 0x7f38de9c1110>
Traceback (most recent call last):
  File "/usr/local/python/lib/python2.7/site-packages/tornado/concurrent.py", line 300, in
_set_done
    cb(self)
  File "/usr/local/python/lib/python2.7/site-packages/tornado/stack_context.py", line 275,
in null_wrapper
    return fn(*args, **kwargs)
  File "/usr/local/python/lib/python2.7/site-packages/tornado/gen.py", line 149, in final_callback
    if future.result() is not None:
  File "/usr/local/python/lib/python2.7/site-packages/tornado/concurrent.py", line 215, in
result
    raise_exc_info(self._exc_info)
  File "/usr/local/python/lib/python2.7/site-packages/tornado/gen.py", line 876, in run
    yielded = self.gen.throw(*exc_info)
  File "./PythonClient.py", line 58, in communicate
    yield gen.Task(client.ping)
  File "/usr/local/python/lib/python2.7/site-packages/tornado/gen.py", line 870, in run
    value = future.result()
  File "/usr/local/python/lib/python2.7/site-packages/tornado/concurrent.py", line 215, in
result
    raise_exc_info(self._exc_info)
  File "/usr/local/python/lib/python2.7/site-packages/tornado/gen.py", line 505, in Task
    func(*args, callback=_argument_adapter(set_result), **kwargs)
TypeError: ping() got an unexpected keyword argument 'callback'



some info:
python: 2.6.6
tornado: 4.3
thrift: 0.9.3


Could anyone help on this?
Mime
  • Unnamed multipart/alternative (inline, 8-Bit, 0 bytes)
View raw message