我找不到错误,我使用python调试但没有错误,但我的浏览器给我错误500.所以这是代码:
import sys
import site
sys.path.append('/opt/hypertable/0.9.5.6/lib/py')
sys.path.append('/opt/hypertable/0.9.5.6/lib/py/gen-py')
sys.path.append('/usr/lib/python2.7/site-packages')
from hypertable.thriftclient import * #working
from hyperthrift.gen.ttypes import * #working
from SE_controller.SE_text_query import SE_text_query #not working custom module
def application(environ, start_response):
status = '200 OK'
output = 'Hello World!'
response_headers = [('Content-type', 'text/plain'),
('Content-Length', str(len(output)))]
start_response(status, response_headers)
return [output]
我还制作了文件 init .py