Google App Engine Apptrace错误

时间:2011-01-07 16:29:50

标签: python google-app-engine memory-profiling

我正在尝试使用Apptrace配置我的GAE应用程序 当我尝试这样做时,我收到以下错误

Traceback (most recent call last):
  File "/Users/praveensekar/FYP/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/dev_appserver.py", line 3245, in _HandleRequest
    self._Dispatch(dispatcher, self.rfile, outfile, env_dict)
  File "/Users/praveensekar/FYP/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/dev_appserver.py", line 3186, in _Dispatch
    base_env_dict=env_dict)
  File "/Users/praveensekar/FYP/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/dev_appserver.py", line 531, in Dispatch
    base_env_dict=base_env_dict)
  File "/Users/praveensekar/FYP/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/dev_appserver.py", line 2410, in Dispatch
    self._module_dict)
  File "/Users/praveensekar/FYP/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/dev_appserver.py", line 2320, in ExecuteCGI
    reset_modules = exec_script(handler_path, cgi_path, hook)
  File "/Users/praveensekar/FYP/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/dev_appserver.py", line 2218, in ExecuteOrImportScript
    script_module.main()
  File "/Users/praveensekar/myFYP/gaecode/pknots3/pknots.py", line 289, in main
    run_wsgi_app(application)
  File "/Users/praveensekar/FYP/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/ext/webapp/util.py", line 97, in run_wsgi_app
    run_bare_wsgi_app(add_wsgi_middleware(application))
  File "/Users/praveensekar/FYP/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/ext/webapp/util.py", line 115, in run_bare_wsgi_app
    result = application(env, _start_response)
  File "/Library/Python/2.6/site-packages/apptrace-0.2.1-py2.6.egg/apptrace/middleware.py", line 116, in wsgi_app
    if record: recorder.trace()
  File "/Library/Python/2.6/site-packages/apptrace-0.2.1-py2.6.egg/apptrace/instruments.py", line 207, in trace
    obj_type = obj.__class__.__name__
AttributeError: class rnapar_2 has no attribute '__class__'

如果我的代码中有一个类对象,则会显示错误。我应该改变什么?

1 个答案:

答案 0 :(得分:2)

这是旧类型的问题。该错误已在Apptrace版本0.2.2

中修复