Skip to content

Instantly share code, notes, and snippets.

@igorgue
Created March 14, 2009 04:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save igorgue/78936 to your computer and use it in GitHub Desktop.
Save igorgue/78936 to your computer and use it in GitHub Desktop.
<class 'django.core.exceptions.ImproperlyConfigured'> Python 2.5.2: /usr/bin/python
Sat Mar 14 04:26:13 2009
A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.
/home/igor/dev/jaikuengine/.google_appengine/google/appengine/tools/dev_appserver.py in _HandleRequest(self=<google.appengine.tools.dev_appserver.DevAppServerRequestHandler instance at 0x99150ec>)
2709 infile,
2710 outfile,
2711 base_env_dict=env_dict)
2712 finally:
2713 self.module_manager.UpdateModuleFileModificationTimes()
base_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'}
/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'})
378 infile,
379 outfile,
380 base_env_dict=base_env_dict)
381
382 if forward:
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'}
/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'})
1996 infile,
1997 outfile,
1998 self._module_dict)
1999 handler.AddDebuggingConsole(relative_url, env, outfile)
2000 finally:
self = <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'>, ...}
/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>)
1914 logging.debug('Executing CGI with env:\n%s', pprint.pformat(env))
1915 try:
1916 reset_modules = exec_script(handler_path, cgi_path, hook)
1917 except SystemExit, e:
1918 logging.debug('CGI exited with status: %s', e)
reset_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>
/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>)
1810 try:
1811 if module_code:
1812 exec module_code in script_module.__dict__
1813 else:
1814 script_module.main()
module_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>), ...}
/home/igor/dev/jaikuengine/main.py in ()
87 if __name__ == '__main__':
88 try:
89 main()
90 #profile_main()
91 except:
main = <function main at 0x9d34b1c>
/home/igor/dev/jaikuengine/main.py in main()
67
68 # Run the WSGI CGI handler with that application.
69 util.run_wsgi_app(application)
70
71 def profile_main():
global 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>
/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>)
74 env["wsgi.multithread"] = False
75 env["wsgi.multiprocess"] = False
76 result = application(env, _start_response)
77 if result is not None:
78 for data in result:
result 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>
/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>)
226 # Check that middleware is still uninitialised.
227 if self._request_middleware is None:
228 self.load_middleware()
229 self.initLock.release()
230
self = <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>>
/home/igor/dev/jaikuengine/django/core/handlers/base.py in load_middleware(self=<django.core.handlers.wsgi.WSGIHandler object at 0x9cf694c>)
38 mod = __import__(mw_module, {}, {}, [''])
39 except ImportError, e:
40 raise exceptions.ImproperlyConfigured, 'Error importing middleware %s: "%s"' % (mw_module, e)
41 try:
42 mw_class = getattr(mod, mw_classname)
exceptions = <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',)
<class 'django.core.exceptions.ImproperlyConfigured'>: Error importing middleware middleware.profile: "No module named pstats"
args = ('Error importing middleware middleware.profile: "No module named pstats"',)
message = 'Error importing middleware middleware.profile: "No module named pstats"'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment