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

AttributeError: 'MyClient' object has no attribute '_cleanup' #119

Closed
stodge opened this issue Feb 7, 2014 · 3 comments
Closed

AttributeError: 'MyClient' object has no attribute '_cleanup' #119

stodge opened this issue Feb 7, 2014 · 3 comments

Comments

@stodge
Copy link

stodge commented Feb 7, 2014

I'm getting an exception in tornadoclient when the server closes the websocket:

AttributeError: 'MyClient' object has no attribute '_cleanup'
ERROR:tornado.application:Exception in callback <functools.partial object at 0xe64c00>
Traceback (most recent call last):
  File "/usr/lib64/python2.7/site-packages/tornado/ioloop.py", line 477, in _run_callback
    callback()
  File "/usr/lib64/python2.7/site-packages/tornado/stack_context.py", line 331, in wrapped
    raise_exc_info(exc)
  File "/usr/lib64/python2.7/site-packages/tornado/stack_context.py", line 302, in wrapped
    ret = fn(*args, **kwargs)
  File "/usr/lib64/python2.7/site-packages/tornado/iostream.py", line 354, in wrapper
    callback(*args)
  File "/usr/lib64/python2.7/site-packages/tornado/stack_context.py", line 331, in wrapped
    raise_exc_info(exc)
  File "/usr/lib64/python2.7/site-packages/tornado/stack_context.py", line 302, in wrapped
    ret = fn(*args, **kwargs)
  File "/home/mike/Development/test/tornadoclient.py", line 123, in __stream_closed
    self._cleanup()
AttributeError: 'MyClient' object has no attribute '_cleanup'
@Lawouach
Copy link
Owner

Lawouach commented Feb 7, 2014

There might be a bug indeed. Could you let me know which version of ws4py you're running please?

@stodge
Copy link
Author

stodge commented Feb 7, 2014

Thanks:

ls /usr/lib/python2.7/site-packages/ws4py
ws4py/                      ws4py-0.3.2-py2.7.egg-info/

@canhduong28
Copy link

Hello,

I got the same error:

AttributeError: 'MyWebSocket' object has no attribute '_cleanup'
ERROR:tornado.application:Exception in callback <functools.partial object at 0x969ad74>
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/tornado/ioloop.py", line 477, in _run_callback
callback()
File "/usr/local/lib/python2.7/dist-packages/tornado/stack_context.py", line 331, in wrapped
raise_exc_info(exc)
File "/usr/local/lib/python2.7/dist-packages/tornado/stack_context.py", line 302, in wrapped
ret = fn(_args, *_kwargs)
File "/usr/local/lib/python2.7/dist-packages/tornado/iostream.py", line 354, in wrapper
callback(_args)
File "/usr/local/lib/python2.7/dist-packages/tornado/stack_context.py", line 331, in wrapped
raise_exc_info(exc)
File "/usr/local/lib/python2.7/dist-packages/tornado/stack_context.py", line 302, in wrapped
ret = fn(_args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/ws4py/client/tornadoclient.py", line 121, in __stream_closed
self._cleanup()
AttributeError: 'MyWebSocket' object has no attribute '_cleanup'

I'm using ws4py version 0.3.2

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

3 participants