the modules are working if they are in the same folder but i created the
folder SE_controller and append the path for it but it is not working.
Code:
# -*- coding: utf-8 -*-
import sys, os
sys.path.append('/home/baddc0re/Desktop/htdocs') # the folder with the
modules needer
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 SE_controller.SE_text_parser import * #the error
from SE_controller.SE_text_query import * #the error
from hypertable.thriftclient import *
from hyperthrift.gen.ttypes import *
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]
The error:
[Thu Apr 12 19:04:38 2012] [error] [client 127.0.0.1] mod_wsgi (pid=13857):
Exception occurred processing WSGI script
'/home/baddc0re/Desktop/htdocs/index.wsgi'.
[Thu Apr 12 19:04:38 2012] [error] [client 127.0.0.1] Traceback (most
recent call last):
[Thu Apr 12 19:04:38 2012] [error] [client 127.0.0.1] File
"/home/baddc0re/Desktop/htdocs/index.wsgi", line 7, in <module>
[Thu Apr 12 19:04:38 2012] [error] [client 127.0.0.1] from
SE_controller.SE_text_parser import * #the error
[Thu Apr 12 19:04:38 2012] [error] [client 127.0.0.1] ImportError: No
module named SE_controller.SE_text_parser
--
You received this message because you are subscribed to the Google Groups
"modwsgi" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/modwsgi/-/lXc5zlfKMTkJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/modwsgi?hl=en.