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

Exception when running ./manage.py runserver_socketio host:port command #21

Closed
jeanrick opened this issue Mar 8, 2012 · 4 comments
Closed

Comments

@jeanrick
Copy link

jeanrick commented Mar 8, 2012

I keep getting the exception below when I try to run the server:

SocketIOServer running on 0.0.0.0:8000

Traceback (most recent call last):
File "./manage.py", line 14, in
execute_manager(settings)
File "/home/sky/development/py_environs/socket/local/lib/python2.7/site-packages/django/core/management/init.py", line 438, in execute_manager
utility.execute()
File "/home/sky/development/py_environs/socket/local/lib/python2.7/site-packages/django/core/management/init.py", line 379, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/home/sky/development/py_environs/socket/local/lib/python2.7/site-packages/django/core/management/base.py", line 191, in run_from_argv
self.execute(_args, *_options.dict)
File "/home/sky/development/py_environs/socket/local/lib/python2.7/site-packages/django/core/management/base.py", line 220, in execute
output = self.handle(_args, *_options)
File "/home/sky/development/py_environs/socket/local/lib/python2.7/site-packages/django_socketio/management/commands/runserver_socketio.py", line 57, in handle
server = SocketIOServer(bind, handler, resource="socket.io")
File "/home/sky/development/py_environs/socket/local/lib/python2.7/site-packages/socketio/server.py", line 22, in init
self.namespace = kwargs.pop('namespace')
KeyError: 'namespace'
Unhandled exception in thread started by <function reload_watcher at 0xa4c9a04>
Traceback (most recent call last):
File "/home/sky/development/py_environs/socket/local/lib/python2.7/site-packages/django_socketio/management/commands/runserver_socketio.py", line 24, in reload_watcher
RELOAD = code_changed()
TypeError: 'NoneType' object is not callable

I notice that when I do the install stage I get:

Downloading/unpacking django-socketio
Downloading django-socketio-0.3.1.tar.gz (43Kb): 43Kb downloaded
Running setup.py egg_info for package django-socketio

file django_socketio.py (for module django_socketio) not found
Downloading/unpacking gevent-socketio (from django-socketio)

I'm not sure if this has anything to do with it.

@RobertoMaurizzi
Copy link

The first error you're getting is KeyError: 'namespace'
I have the same error. I searched a little on Google and I found an example where instead of resource='socket.io' they used namespace='socket.io' and I'm currently continuing my initial experimentation with that. I'm not sure it's correct in this context however (but you beat me at opening the issue :-) )

Is this due to a change in gevent-socketio? pip downloaded gevent-socketio==0.2.3

@stephenmcd
Copy link
Owner

Gonna close this as a duplicate of #19

Basically we just need to upgrade django-socketio to the new versions of gevent-socketio and socket.io.js itself.

If you read #19, a lot of the work has been done. I'm now looking into what else needs to happen and have more work done. Not far off now.

@RobertoMaurizzi
Copy link

Thank you! :-)

@jeanrick
Copy link
Author

jeanrick commented Mar 9, 2012

Awesome ... Thanks!

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