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: 'NoneType' object has no attribute 'recv' #5

Closed
mitar opened this issue Oct 4, 2014 · 1 comment
Closed

AttributeError: 'NoneType' object has no attribute 'recv' #5

mitar opened this issue Oct 4, 2014 · 1 comment

Comments

@mitar
Copy link

mitar commented Oct 4, 2014

The following program throws an error:

client = MeteorClient.MeteorClient('ws://127.0.0.1:3000/websocket')

def connected():
    client.close()

client.on('connected', connected)
client.connect()
Exception in thread WebSocketClient:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.7/threading.py", line 763, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/usr/local/lib/python2.7/dist-packages/ws4py/websocket.py", line 427, in run
    if not self.once():
  File "/usr/local/lib/python2.7/dist-packages/ws4py/websocket.py", line 300, in once
    b = self.sock.recv(self.reading_buffer_size)
AttributeError: 'NoneType' object has no attribute 'recv'
hharnisc referenced this issue in hharnisc/python-ddp Nov 20, 2014
@hharnisc
Copy link
Owner

Fixed, do a pip install -U python-meteor and you'll get the updated dependency. (Issue fixed in python-ddp)

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

2 participants