Strangeness.

When I run my application (local or deployed), the first time i load a
page (any page) on the app I get an error like the following:

 -->  --> -->


<type 'exceptions.IOError'>     Python 2.5.1: /System/Library/Frameworks/
Python.framework/Versions/2.5/Resources/Python.app/Contents/MacOS/
Python
Mon Nov 23 20:10:00 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.
 /Applications/GoogleAppEngineLauncher.app/Contents/Resources/
GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
google/appengine/tools/dev_appserver.py in _HandleRequest
(self=<google.appengine.tools.dev_appserver.DevAppServerRequestHandler
instance at 0x14015a8>)
 2976                               infile,
 2977                               outfile,
 2978                               base_env_dict=env_dict)
 2979         finally:
 2980           self.module_manager.UpdateModuleFileModificationTimes
()
base_env_dict undefined, env_dict = {'APPLICATION_ID': 'wordybot',
'CURRENT_VERSION_ID': '1.1', 'REMOTE_ADDR': '127.0.0.1',
'REQUEST_METHOD': 'GET', 'SERVER_NAME': 'localhost', 'SERVER_PORT':
'8094', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SOFTWARE': 'Development/
1.0'}
 /Applications/GoogleAppEngineLauncher.app/Contents/Resources/
GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
google/appengine/tools/dev_appserver.py in Dispatch
(self=<google.appengine.tools.dev_appserver.MatcherDispatcher object
at 0x12bd290>, relative_url='/', path=None, headers=<mimetools.Message
instance at 0x14016c0>, infile=<cStringIO.StringO object at
0x12bd640>, outfile=<cStringIO.StringO object at 0x12bd820>,
base_env_dict={'APPLICATION_ID': 'wordybot', 'CURRENT_VERSION_ID':
'1.1', 'REMOTE_ADDR': '127.0.0.1', 'REQUEST_METHOD': 'GET',
'SERVER_NAME': 'localhost', 'SERVER_PORT': '8094', 'SERVER_PROTOCOL':
'HTTP/1.0', 'SERVER_SOFTWARE': 'Development/1.0'})
  409                                       infile,
  410                                       outfile,
  411
base_env_dict=base_env_dict)
  412
  413         if forward:
base_env_dict = {'APPLICATION_ID': 'wordybot', 'CURRENT_VERSION_ID':
'1.1', 'REMOTE_ADDR': '127.0.0.1', 'REQUEST_METHOD': 'GET',
'SERVER_NAME': 'localhost', 'SERVER_PORT': '8094', 'SERVER_PROTOCOL':
'HTTP/1.0', 'SERVER_SOFTWARE': 'Development/1.0'}
 /Applications/GoogleAppEngineLauncher.app/Contents/Resources/
GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
google/appengine/tools/dev_appserver.py in Dispatch
(self=<google.appengine.tools.dev_appserver.CGIDispatcher object at
0x12bd6d0>, relative_url='/', path='main.py',
headers=<mimetools.Message instance at 0x14016c0>,
infile=<cStringIO.StringO object at 0x12bd640>,
outfile=<cStringIO.StringO object at 0x12bd820>, base_env_dict=
{'APPLICATION_ID': 'wordybot', 'CURRENT_VERSION_ID': '1.1',
'REMOTE_ADDR': '127.0.0.1', 'REQUEST_METHOD': 'GET', 'SERVER_NAME':
'localhost', 'SERVER_PORT': '8094', 'SERVER_PROTOCOL': 'HTTP/1.0',
'SERVER_SOFTWARE': 'Development/1.0'})
 2242                      infile,
 2243                      outfile,
 2244                      self._module_dict)
 2245       handler.AddDebuggingConsole(relative_url, env, outfile)
 2246     finally:
self = <google.appengine.tools.dev_appserver.CGIDispatcher object at
0x12bd6d0>, self._module_dict = {'Cookie': <module 'Cookie' from '/
System/Library/Framework...framework/Versions/2.5/lib/python2.5/
Cookie.pyc'>, 'StringIO': <module 'StringIO' from '/System/Library/
Framewo...amework/Versions/2.5/lib/python2.5/StringIO.pyc'>,
'UserDict': <module 'UserDict' from '/System/Library/Framewo...amework/
Versions/2.5/lib/python2.5/UserDict.pyc'>, '__future__': <module
'__future__' from '/System/Library/Frame...ework/Versions/2.5/lib/
python2.5/__future__.pyc'>, '__main__': <module 'main' from '/Users/
CoDonnell/Desktop/Pr...rkitecht-svn/trunk/wave-robots/wordybot/
main.py'>, '_hashlib': <module '_hashlib' from '/System/Library/
Framewo...sions/2.5/lib/python2.5/lib-dynload/_hashlib.so'>,
'_locale': <module '_locale' from '/System/Library/Framewor...rsions/
2.5/lib/python2.5/lib-dynload/_locale.so'>, '_random': <module
'_random' from '/System/Library/Framewor...rsions/2.5/lib/python2.5/
lib-dynload/_random.so'>, '_sha256': <module '_sha256' from '/System/
Library/Framewor...rsions/2.5/lib/python2.5/lib-dynload/_sha256.so'>,
'_sha512': <module '_sha512' from '/System/Library/Framewor...rsions/
2.5/lib/python2.5/lib-dynload/_sha512.so'>, ...}
 /Applications/GoogleAppEngineLauncher.app/Contents/Resources/
GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
google/appengine/tools/dev_appserver.py in ExecuteCGI(root_path='/
Users/CoDonnell/Desktop/Products/markitecht-svn/trunk/wave-robots/
wordybot', handler_path='main.py', cgi_path='/Users/CoDonnell/Desktop/
Products/markitecht-svn/trunk/wave-robots/wordybot/main.py', env=
{'APPLICATION_ID': 'wordybot', '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.StringO object at 0x12bd640>,
outfile=<cStringIO.StringO object at 0x12bd820>, module_dict=
{'Cookie': <module 'Cookie' from '/System/Library/
Framework...framework/Versions/2.5/lib/python2.5/Cookie.pyc'>,
'StringIO': <module 'StringIO' from '/System/Library/Framewo...amework/
Versions/2.5/lib/python2.5/StringIO.pyc'>, 'UserDict': <module
'UserDict' from '/System/Library/Framewo...amework/Versions/2.5/lib/
python2.5/UserDict.pyc'>, '__future__': <module '__future__' from '/
System/Library/Frame...ework/Versions/2.5/lib/python2.5/
__future__.pyc'>, '__main__': <module 'main' from '/Users/CoDonnell/
Desktop/Pr...rkitecht-svn/trunk/wave-robots/wordybot/main.py'>,
'_hashlib': <module '_hashlib' from '/System/Library/Framewo...sions/
2.5/lib/python2.5/lib-dynload/_hashlib.so'>, '_locale': <module
'_locale' from '/System/Library/Framewor...rsions/2.5/lib/python2.5/
lib-dynload/_locale.so'>, '_random': <module '_random' from '/System/
Library/Framewor...rsions/2.5/lib/python2.5/lib-dynload/_random.so'>,
'_sha256': <module '_sha256' from '/System/Library/Framewor...rsions/
2.5/lib/python2.5/lib-dynload/_sha256.so'>, '_sha512': <module
'_sha512' from '/System/Library/Framewor...rsions/2.5/lib/python2.5/
lib-dynload/_sha512.so'>, ...}, exec_script=<function
ExecuteOrImportScript at 0x12a0030>)
 2160     logging.debug('Executing CGI with env:\n%s', pprint.pformat
(env))
 2161     try:
 2162       reset_modules = exec_script(handler_path, cgi_path, hook)
 2163     except SystemExit, e:
 2164       logging.debug('CGI exited with status: %s', e)
reset_modules = True, exec_script = <function ExecuteOrImportScript at
0x12a0030>, handler_path = 'main.py', cgi_path = '/Users/CoDonnell/
Desktop/Products/markitecht-svn/trunk/wave-robots/wordybot/main.py',
hook = <google.appengine.tools.dev_appserver.HardenedModulesHook
object at 0x12bd5f0>
 /Applications/GoogleAppEngineLauncher.app/Contents/Resources/
GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
google/appengine/tools/dev_appserver.py in ExecuteOrImportScript
(handler_path='main.py', cgi_path='/Users/CoDonnell/Desktop/Products/
markitecht-svn/trunk/wave-robots/wordybot/main.py',
import_hook=<google.appengine.tools.dev_appserver.HardenedModulesHook
object at 0x12bd5f0>)
 2061
 2062     sys.stdout.flush()
 2063     sys.stdout.seek(0)
 2064     try:
 2065       headers = mimetools.Message(sys.stdout)
global sys = <module 'sys' (built-in)>, sys.stdout = <open file
'<stdout>', mode 'w' at 0x17068>, sys.stdout.seek = <built-in method
seek of file object at 0x17068>

<type 'exceptions.IOError'>: [Errno 29] Illegal seek


-------

Now, when I reload the page, it works.

Once deployed, the app seems to go 'stale' for me, and i have to do
the 'reload-twice' trick to get the page to load.

This is a Wave robot, but I also have a couple of web pages i'd like
to publish on the domain as well.

thanks as always,
Christopher O'Donnell

--

You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=.


Reply via email to