views:

175

answers:

1

When I am trying to to do Model.put() in eclipse for a google python app after changing the parameter of --datastore_path="F:/tmp/myapp_datastore" in arguments of debug configurations.I dont know if its related to above change or is there any other magic behind the scene. Any help.

exception value:[Error 5] Access is denied 

UPDATE, Added codes for OP,

Everything is working fine for another application from command prompt but when i use the same from eclipse i get following dump

The below comes in console window of 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 screen dump of application in 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)
A: 

According to this error,

TypeError: 'str' object is not callable 

I guess, you have shadowed built-in object str to something else.

For example, you used str="dummy" in your code and str became uncallable object.

S.Mark