AttributeError:' FlashPolicyServer'对象没有属性' kill'

时间:2017-07-08 17:46:04

标签: python django django-socketio

我使用python manage.py runserver_socketio

运行django app和django-socketio应用程序后立即出现以下错误
SocketIOServer running on 127.0.0.1:8001

KeyboardInterrupt
Thu Jul  6 22:04:52 2017
Traceback (most recent call last):
  File "manage.py", line 10, in <module>
   execute_from_command_line(sys.argv)
  File "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 353, in execute_from_command_line
   utility.execute()
  File "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 345, in execute
   self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", line 348, in run_from_argv
   self.execute(*args, **cmd_options)
  File "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", line 399, in execute
   output = self.handle(*args, **options)
  File "/usr/local/lib/python2.7/dist-packages/django_socketio-0.3.9-py2.7.egg/django_socketio/management/commands/runserver_socketio.py", line 65, in handle
   server.kill()
  File "/usr/local/lib/python2.7/dist-packages/socketio/server.py", line 43, in kill
   self.policy_server.kill()
 AttributeError: 'FlashPolicyServer' object has no attribute 'kill'

我错过了什么吗?

1 个答案:

答案 0 :(得分:0)

受到this问题的启发,我尝试降级gevent-socketio和gevent并且它有效。

pip uninstall gevent-socketio gevent
pip install gevent-socketio==0.2.1 gevent==0.13.6