django调试消息不起作用。仅显示 - filedescriptor超出select()范围

时间:2013-12-04 21:37:13

标签: python django debugging

我总是收到此错误消息 - 发生服务器错误。请联系管理员。

Traceback (most recent call last):
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/wsgiref/handlers.py", line 85, in run
self.result = application(self.environ, self.start_response)
File "/Users/chris/Projects/django/django/contrib/staticfiles/handlers.py", line 67, in __call__
return self.application(environ, start_response)
File "/Users/chris/Projects/django/django/core/handlers/wsgi.py", line 209, in __call__
response = self.get_response(request)
 File "/Users/chris/Projects/django/django/core/handlers/base.py", line 200, in get_response
response = self.handle_uncaught_exception(request, resolver, sys.exc_info())
File "/Users/chris/Projects/django/django/core/handlers/base.py", line 235, in         handle_uncaught_exception
return debug.technical_500_response(request, *exc_info)
File "/Users/chris/Projects/django/django/views/debug.py", line 77, in technical_500_response
html = reporter.get_traceback_html()
File "/Users/chris/Projects/django/django/views/debug.py", line 335, in get_traceback_html
c = Context(self.get_traceback_data(), use_l10n=False)
File "/Users/chris/Projects/django/django/views/debug.py", line 317, in get_traceback_data
'django_version_info': get_version(),
File "/Users/chris/Projects/django/django/__init__.py", line 8, in get_version
return get_version(*args, **kwargs)
File "/Users/chris/Projects/django/django/utils/version.py", line 26, in get_version
git_changeset = get_git_changeset()
File "/Users/chris/Projects/django/django/utils/version.py", line 48, in get_git_changeset
timestamp = git_log.communicate()[0]
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 806, in communicate
return self._communicate(input)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1384, in _communicate
stdout, stderr = self._communicate_with_select(input)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1485, in _communicate_with_select
rlist, wlist, xlist = select.select(read_set, write_set, [])
ValueError: filedescriptor out of range in select()

有人有什么想法吗?这似乎只是在升级到django 1.7之后才发生,但我不确定那个

1 个答案:

答案 0 :(得分:0)

刚刚更新到最新版本的django,错误已经消失。使用1.7而不是1.6和南方感觉有点愚蠢,但你去了。