2009-09-16 5 views
3

apt (python 2.5, simplejson 등)를 통해 필요한 패키지를 설치 한 후 데모를 실행하려고하면 오류가 발생합니다. 여기토네이도 시작

 

: Request instance has no attribute 'responseHeaders' 
/usr/lib/python2.5/site-packages/tornado/web.py, line 404 in flush 
402 for k,v in self._generate_headers(): 
403  if isinstance(v, list): 
404  self.request.responseHeaders.setRawHeaders(k, v) 
405  else: 
Self 
request 
twisted.web.server.Request instance @ 0x85da24c 
Locals 
self  
k 'Set-Cookie' 
v 
List instance @ 0x85da46c 
 

필요한 패키지가

 

/web/tmp/tornado/demos/helloworld# dpkg -l | grep python2.5 
ii python2.5        2.5.2-2ubuntu6            An interactive high-level object-oriented la 
ii python2.5-dev       2.5.2-2ubuntu6            Header files and a static library for Python 
ii python2.5-minimal      2.5.2-2ubuntu6            A minimal subset of the Python language 
# dpkg -l | grep simplejson 
ii python-simplejson      1.7.3-1 
# dpkg -l | grep pycurl 
ii python-pycurl       7.16.4-1 
 

너무 많은 사람들이 아닙니다 프렌드에서이 토네이도 일을 시도 한 것으로 보인다 설치되어 있는지 증거입니다. 누구나 내가 도와 주려고 어떤 제안/힌트를 가지고 있니?

답변

2

토네이도가 뒤틀린 느낌이 들지 않았습니다. "공식"버전을 사용해 보셨습니까? 라인 (404)은 완전히 상이하다. 그 외에는

def flush(self, include_footers=False): 
    """Flushes the current output buffer to the nextwork.""" 
    if self.application._wsgi: 
     raise Exception("WSGI applications do not support flush()") #line 404 
    if not self._headers_written: 
     self._headers_written = True 
     headers = self._generate_headers() 
    else: 
     headers = "" 

http://github.com/facebook/tornado/blob/master/tornado/web.py

, 나는 트위스트 설치하려고 토네이도 트위스트에 의존하지 않는

+2

을 어떻게 볼 것입니다. –

+0

내가 "나는 토네이도가 꼬인 것에 의존하지 않았다"고 말했을 때 내가 남자라는 것을 의미하는 것이 었습니다. –

관련 문제