2009-09-16 145 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 
 

似乎不會有太多人已經嘗試了從FriendFeed的這場龍捲風的事情。任何人有任何建議/提示,以幫助我起牀和運行它?

回答

2

我在印象之下龍捲風不依賴於扭曲。你有沒有試過「官方」版本? 404行完全不同。

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

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 = "" 

除此之外,我想嘗試安裝扭曲,看看會發生什麼

+2

龍捲風不依賴於扭曲。 – 2011-03-24 10:26:41

+0

當我說「我在龍捲風的印象下並不依賴扭曲」時,這就是我的意思。 – 2011-03-24 16:29:16