Google App Engine Apptrace 错误
我正在尝试使用 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__'
如果我的代码中有类对象,则会显示该错误。我应该改变什么?
I am trying to profile my GAE application using Apptrace
When I try to do so, I get the following error
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__'
The error shows up if I have a class object in my code. What should I change ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是旧类类型的问题。该错误已在 Apptrace 版本 0.2.2 中修复
It was an issue with old class type. The bug is fixed in Apptrace Version 0.2.2