thrift-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nobuaki Sukegawa <nsu...@gmail.com>
Subject Re: tutorial for python2 tornado got error
Date Thu, 26 Nov 2015 15:01:10 GMT
The Client initialization part seems outdated since it uses old Tornado API.
It needs an update.

In the meantime, you can find working initialization code in
test/py.tornado/test_suite.py.

On Thu, Nov 26, 2015 at 10:59 AM Ritchie <ritch@qq.com> wrote:

> 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, None, 0 bytes)
View raw message