作者:jianji | 来源:互联网 | 2023-09-07 08:51
WhenItrytocallModel.put()inEclipseforaGooglePythonapp,Igetthefollowingerror:当我尝试在E
When I try to call Model.put()
in Eclipse for a Google Python app, I get the following error:
当我尝试在Eclipse中为Google Python应用程序调用Model.put()时,出现以下错误:
exception value:[Error 5] Access is denied
I don't know if it's related, but this happened after I changed the parameter of --datastore_path="F:/tmp/myapp_datastore"
in arguments of debug configurations.
我不知道它是否相关,但这发生在我在调试配置的参数中更改了--datastore_path =“F:/ tmp / myapp_datastore”的参数之后。
Everything is working fine for another application from the command prompt. However, when I use the same in Eclipse I get following dump in the console window of Eclipse:
从命令提示符处,其他应用程序的一切正常。但是,当我在Eclipse中使用相同的东西时,我会在Eclipse的控制台窗口中进行以下转储:
ERROR 2009-06-11 10:19:41,312 dev_appserver.py:2906] Exception
encountered handling request
Traceback (most recent call last):
File "F:\Program Files\Google\google_appengine\google\appengine\tools
\dev_appserver.py", line 2876, in _HandleRequest
base_env_dict=env_dict)
File "F:\Program Files\Google\google_appengine\google\appengine\tools
\dev_appserver.py", line 387, in Dispatch
base_env_dict=base_env_dict)
File "F:\Program Files\Google\google_appengine\google\appengine\tools
\dev_appserver.py", line 2163, in Dispatch
self._module_dict)
File "F:\Program Files\Google\google_appengine\google\appengine\tools
\dev_appserver.py", line 2081, in ExecuteCGI
reset_modules = exec_script(handler_path, cgi_path, hook)
File "F:\Program Files\Google\google_appengine\google\appengine\tools
\dev_appserver.py", line 1979, in ExecuteOrImportScript
script_module.main()
File "F:\eclipse\workspace\checkthis\src\carpoolkaro.py", line 749,
in main
run_wsgi_app(application)
File "F:\Program Files\Google\google_appengine\google\appengine\ext
\webapp\util.py", line 76, in run_wsgi_app
result = application(env, _start_response)
File "F:\Program Files\Google\google_appengine\google\appengine\ext
\webapp\__init__.py", line 517, in __call__
handler.handle_exception(e, self.__debug)
File "F:\Program Files\Google\google_appengine\google\appengine\ext
\webapp\__init__.py", line 384, in handle_exception
self.error(500)
TypeError: 'str' object is not callable
INFO 2009-06-11 10:19:41,312 dev_appserver.py:2935] "POST /suggest
HTTP/1.1" 500 -
This is the screen dump of the application from a browser window:
这是来自浏览器窗口的应用程序的屏幕转储:
F:\Program Files\Google\google_appengine\google\appengine\ext\webapp
\__init__.py in handle_exception(self=<__main__.SuggestHandler object
at 0x019C0510>, exception=WindowsError(5, 'Access is denied'),
debug_mode=True)
2 个解决方案