stephenmcd/django-socketio — Issue #21: Exception when running ./manage.py runserver_socketio host:port command
Author: jeanrick
Created: 2012-03-08 22:19:00+00:00
State: open

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
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.