· 8 years ago · Mar 02, 2018, 04:06 PM
1<class 'django.core.exceptions.ImproperlyConfigured'> Python 2.5.2: /usr/bin/python
2Sat Mar 14 04:26:13 2009
3
4A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.
5 /home/igor/dev/jaikuengine/.google_appengine/google/appengine/tools/dev_appserver.py in _HandleRequest(self=<google.appengine.tools.dev_appserver.DevAppServerRequestHandler instance at 0x99150ec>)
6 2709 infile,
7 2710 outfile,
8 2711 base_env_dict=env_dict)
9 2712 finally:
10 2713 self.module_manager.UpdateModuleFileModificationTimes()
11base_env_dict undefined, env_dict = {'APPLICATION_ID': 'jaiku', 'CURRENT_VERSION_ID': '1.1', 'REMOTE_ADDR': '127.0.0.1', 'REQUEST_METHOD': 'GET', 'SERVER_NAME': 'localhost', 'SERVER_PORT': '8080', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SOFTWARE': 'Development/1.0'}
12 /home/igor/dev/jaikuengine/.google_appengine/google/appengine/tools/dev_appserver.py in Dispatch(self=<google.appengine.tools.dev_appserver.MatcherDispatcher object at 0x991564c>, relative_url='/', path=None, headers=<mimetools.Message instance at 0x991526c>, infile=<cStringIO.StringI object at 0x926f530>, outfile=<cStringIO.StringO object at 0x9915360>, base_env_dict={'APPLICATION_ID': 'jaiku', 'CURRENT_VERSION_ID': '1.1', 'REMOTE_ADDR': '127.0.0.1', 'REQUEST_METHOD': 'GET', 'SERVER_NAME': 'localhost', 'SERVER_PORT': '8080', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SOFTWARE': 'Development/1.0'})
13 378 infile,
14 379 outfile,
15 380 base_env_dict=base_env_dict)
16 381
17 382 if forward:
18base_env_dict = {'APPLICATION_ID': 'jaiku', 'CURRENT_VERSION_ID': '1.1', 'REMOTE_ADDR': '127.0.0.1', 'REQUEST_METHOD': 'GET', 'SERVER_NAME': 'localhost', 'SERVER_PORT': '8080', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SOFTWARE': 'Development/1.0'}
19 /home/igor/dev/jaikuengine/.google_appengine/google/appengine/tools/dev_appserver.py in Dispatch(self=<google.appengine.tools.dev_appserver.CGIDispatcher object at 0x991560c>, relative_url='/', path='main.py', headers=<mimetools.Message instance at 0x991526c>, infile=<cStringIO.StringI object at 0x926f530>, outfile=<cStringIO.StringO object at 0x9915360>, base_env_dict={'APPLICATION_ID': 'jaiku', 'CURRENT_VERSION_ID': '1.1', 'REMOTE_ADDR': '127.0.0.1', 'REQUEST_METHOD': 'GET', 'SERVER_NAME': 'localhost', 'SERVER_PORT': '8080', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SOFTWARE': 'Development/1.0'})
20 1996 infile,
21 1997 outfile,
22 1998 self._module_dict)
23 1999 handler.AddDebuggingConsole(relative_url, env, outfile)
24 2000 finally:
25self = <google.appengine.tools.dev_appserver.CGIDispatcher object at 0x991560c>, self._module_dict = {'Cookie': <module 'Cookie' from '/usr/lib/python2.5/Cookie.pyc'>, 'StringIO': <module 'StringIO' from '/usr/lib/python2.5/StringIO.pyc'>, 'UserDict': <module 'UserDict' from '/usr/lib/python2.5/UserDict.pyc'>, '__future__': <module '__future__' from '/usr/lib/python2.5/__future__.pyc'>, '__main__': <module 'main' from '/home/igor/dev/jaikuengine/main.py'>, '_bisect': <module '_bisect' from '/usr/lib/python2.5/lib-dynload/_bisect.so'>, '_functools': <module '_functools' from '/usr/lib/python2.5/lib-dynload/_functools.so'>, '_hashlib': <module '_hashlib' from '/usr/lib/python2.5/lib-dynload/_hashlib.so'>, '_locale': <module '_locale' from '/usr/lib/python2.5/lib-dynload/_locale.so'>, '_random': <module '_random' from '/usr/lib/python2.5/lib-dynload/_random.so'>, ...}
26 /home/igor/dev/jaikuengine/.google_appengine/google/appengine/tools/dev_appserver.py in ExecuteCGI(root_path=u'/home/igor/dev/jaikuengine', handler_path='main.py', cgi_path=u'/home/igor/dev/jaikuengine/main.py', env={'APPLICATION_ID': 'jaiku', 'AUTH_DOMAIN': 'gmail.com', 'CONTENT_LENGTH': '', 'CONTENT_TYPE': 'application/x-www-form-urlencoded', 'CURRENT_VERSION_ID': '1.1', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'HTTP_CONNECTION': 'keep-alive', ...}, infile=<cStringIO.StringI object at 0x926f530>, outfile=<cStringIO.StringO object at 0x9915360>, module_dict={'Cookie': <module 'Cookie' from '/usr/lib/python2.5/Cookie.pyc'>, 'StringIO': <module 'StringIO' from '/usr/lib/python2.5/StringIO.pyc'>, 'UserDict': <module 'UserDict' from '/usr/lib/python2.5/UserDict.pyc'>, '__future__': <module '__future__' from '/usr/lib/python2.5/__future__.pyc'>, '__main__': <module 'main' from '/home/igor/dev/jaikuengine/main.py'>, '_bisect': <module '_bisect' from '/usr/lib/python2.5/lib-dynload/_bisect.so'>, '_functools': <module '_functools' from '/usr/lib/python2.5/lib-dynload/_functools.so'>, '_hashlib': <module '_hashlib' from '/usr/lib/python2.5/lib-dynload/_hashlib.so'>, '_locale': <module '_locale' from '/usr/lib/python2.5/lib-dynload/_locale.so'>, '_random': <module '_random' from '/usr/lib/python2.5/lib-dynload/_random.so'>, ...}, exec_script=<function ExecuteOrImportScript at 0x94a5f7c>)
27 1914 logging.debug('Executing CGI with env:\n%s', pprint.pformat(env))
28 1915 try:
29 1916 reset_modules = exec_script(handler_path, cgi_path, hook)
30 1917 except SystemExit, e:
31 1918 logging.debug('CGI exited with status: %s', e)
32reset_modules = True, exec_script = <function ExecuteOrImportScript at 0x94a5f7c>, handler_path = 'main.py', cgi_path = u'/home/igor/dev/jaikuengine/main.py', hook = <google.appengine.tools.dev_appserver.HardenedModulesHook object at 0x942474c>
33 /home/igor/dev/jaikuengine/.google_appengine/google/appengine/tools/dev_appserver.py in ExecuteOrImportScript(handler_path='main.py', cgi_path=u'/home/igor/dev/jaikuengine/main.py', import_hook=<google.appengine.tools.dev_appserver.HardenedModulesHook object at 0x942474c>)
34 1810 try:
35 1811 if module_code:
36 1812 exec module_code in script_module.__dict__
37 1813 else:
38 1814 script_module.main()
39module_code = <code object <module> at 0x99789f8, file "/home/igor/dev/jaikuengine/main.py", line 21>, script_module = <module 'main' from '/home/igor/dev/jaikuengine/main.py'>, script_module.__dict__ = {'InstallAppengineHelperForDjango': <function InstallAppengineHelperForDjango at 0x9a0610c>, '__builtins__': {'ArithmeticError': <type 'exceptions.ArithmeticError'>, 'AssertionError': <type 'exceptions.AssertionError'>, 'AttributeError': <type 'exceptions.AttributeError'>, 'BaseException': <type 'exceptions.BaseException'>, 'DeprecationWarning': <type 'exceptions.DeprecationWarning'>, 'EOFError': <type 'exceptions.EOFError'>, 'Ellipsis': Ellipsis, 'EnvironmentError': <type 'exceptions.EnvironmentError'>, 'Exception': <type 'exceptions.Exception'>, 'False': False, ...}, '__doc__': 'Bootstrap for running a Django app under Google ...ly -- everything else is controlled from there.\n\n', '__file__': '/home/igor/dev/jaikuengine/main.py', '__loader__': <google.appengine.tools.dev_appserver.HardenedModulesHook object at 0x942474c>, '__name__': 'main', 'component': <module 'common.component' from '/home/igor/dev/jaikuengine/common/component.pyc'>, 'django': <module 'django' from '/home/igor/dev/jaikuengine/django/__init__.pyc'>, 'django_zip_path': '/home/igor/dev/jaikuengine/django.zip', 'exc_info': (<class 'django.core.exceptions.ImproperlyConfigured'>, ImproperlyConfigured('Error importing middleware middleware.profile: "No module named pstats"',), <traceback object at 0x9d8ed9c>), ...}
40 /home/igor/dev/jaikuengine/main.py in ()
41 87 if __name__ == '__main__':
42 88 try:
43 89 main()
44 90 #profile_main()
45 91 except:
46main = <function main at 0x9d34b1c>
47 /home/igor/dev/jaikuengine/main.py in main()
48 67
49 68 # Run the WSGI CGI handler with that application.
50 69 util.run_wsgi_app(application)
51 70
52 71 def profile_main():
53global util = <module 'google.appengine.ext.webapp.util' from ...e_appengine/google/appengine/ext/webapp/util.py'>, util.run_wsgi_app = <function run_wsgi_app at 0x9f7d764>, application = <django.core.handlers.wsgi.WSGIHandler object at 0x9cf694c>
54 /home/igor/dev/jaikuengine/.google_appengine/google/appengine/ext/webapp/util.py in run_wsgi_app(application=<django.core.handlers.wsgi.WSGIHandler object at 0x9cf694c>)
55 74 env["wsgi.multithread"] = False
56 75 env["wsgi.multiprocess"] = False
57 76 result = application(env, _start_response)
58 77 if result is not None:
59 78 for data in result:
60result undefined, application = <django.core.handlers.wsgi.WSGIHandler object at 0x9cf694c>, env = {'APPLICATION_ID': 'jaiku', 'AUTH_DOMAIN': 'gmail.com', 'CONTENT_LENGTH': '', 'CONTENT_TYPE': 'application/x-www-form-urlencoded', 'CURRENT_VERSION_ID': '1.1', 'DJANGO_SETTINGS_MODULE': 'settings', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', ...}, global _start_response = <function _start_response at 0x9f7d7d4>
61 /home/igor/dev/jaikuengine/django/core/handlers/wsgi.py in __call__(self=<django.core.handlers.wsgi.WSGIHandler object at 0x9cf694c>, environ={'APPLICATION_ID': 'jaiku', 'AUTH_DOMAIN': 'gmail.com', 'CONTENT_LENGTH': '', 'CONTENT_TYPE': 'application/x-www-form-urlencoded', 'CURRENT_VERSION_ID': '1.1', 'DJANGO_SETTINGS_MODULE': 'settings', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', ...}, start_response=<function _start_response at 0x9f7d7d4>)
62 226 # Check that middleware is still uninitialised.
63 227 if self._request_middleware is None:
64 228 self.load_middleware()
65 229 self.initLock.release()
66 230
67self = <django.core.handlers.wsgi.WSGIHandler object at 0x9cf694c>, self.load_middleware = <bound method WSGIHandler.load_middleware of <dj...e.handlers.wsgi.WSGIHandler object at 0x9cf694c>>
68 /home/igor/dev/jaikuengine/django/core/handlers/base.py in load_middleware(self=<django.core.handlers.wsgi.WSGIHandler object at 0x9cf694c>)
69 38 mod = __import__(mw_module, {}, {}, [''])
70 39 except ImportError, e:
71 40 raise exceptions.ImproperlyConfigured, 'Error importing middleware %s: "%s"' % (mw_module, e)
72 41 try:
73 42 mw_class = getattr(mod, mw_classname)
74exceptions = <module 'django.core.exceptions' from '/home/igor/dev/jaikuengine/django/core/exceptions.pyc'>, exceptions.ImproperlyConfigured = <class 'django.core.exceptions.ImproperlyConfigured'>, mw_module = 'middleware.profile', e = ImportError('No module named pstats',)
75
76<class 'django.core.exceptions.ImproperlyConfigured'>: Error importing middleware middleware.profile: "No module named pstats"
77 args = ('Error importing middleware middleware.profile: "No module named pstats"',)
78 message = 'Error importing middleware middleware.profile: "No module named pstats"'