import wsgiref.handlers from google.appengine.ext import webapp
class MainPage(webapp.RequestHandler): def get(self): self.response.headers['Content-Type'] = 'text/plain' self.response.out.write('Hello, webapp World!') def main(): application = webapp.WSGIApplication( [('/', MainPage)], debug=True) wsgiref.handlers.CGIHandler().run(application) if __name__ == "__main__": main() -> --> --> <type 'exceptions.TypeError'> Python 2.6.1: C:\Python26\python.exe Sun Jan 04 06:06:29 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. C:\Program Files\Google\google_appengine\google\appengine\tools \dev_appserver.py in _HandleRequest (self=<google.appengine.tools.dev_appserver.DevAppServerRequestHandler instance at 0x02C65A30>) 2270 infile, 2271 outfile, 2272 base_env_dict=env_dict) 2273 finally: 2274 self.module_manager.UpdateModuleFileModificationTimes () base_env_dict undefined, env_dict = {'CURRENT_VERSION_ID': '1.1', 'REMOTE_ADDR': '127.0.0.1', 'REQUEST_METHOD': 'GET', 'SERVER_NAME': 'localhost', 'SERVER_PORT': '8080', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SOFTWARE': 'Development/1.0'} C:\Program Files\Google\google_appengine\google\appengine\tools \dev_appserver.py in Dispatch (self=<google.appengine.tools.dev_appserver.MatcherDispatcher object at 0x02E2A170>, relative_url='/', path=None, headers=<mimetools.Message instance at 0x02E22E90>, infile=<cStringIO.StringI object at 0x02B62E00>, outfile=<cStringIO.StringO object at 0x02E2A7E0>, base_env_dict= {'CURRENT_VERSION_ID': '1.1', 'REMOTE_ADDR': '127.0.0.1', 'REQUEST_METHOD': 'GET', 'SERVER_NAME': 'localhost', 'SERVER_PORT': '8080', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SOFTWARE': 'Development/ 1.0'}) 337 infile, 338 outfile, 339 base_env_dict=base_env_dict) 340 341 return base_env_dict = {'CURRENT_VERSION_ID': '1.1', 'REMOTE_ADDR': '127.0.0.1', 'REQUEST_METHOD': 'GET', 'SERVER_NAME': 'localhost', 'SERVER_PORT': '8080', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SOFTWARE': 'Development/1.0'} C:\Program Files\Google\google_appengine\google\appengine\tools \dev_appserver.py in Dispatch (self=<google.appengine.tools.dev_appserver.CGIDispatcher object at 0x02E2A6F0>, relative_url='/', path='helloworld.py', headers=<mimetools.Message instance at 0x02E22E90>, infile=<cStringIO.StringI object at 0x02B62E00>, outfile=<cStringIO.StringO object at 0x02E2A7E0>, base_env_dict= {'CURRENT_VERSION_ID': '1.1', 'REMOTE_ADDR': '127.0.0.1', 'REQUEST_METHOD': 'GET', 'SERVER_NAME': 'localhost', 'SERVER_PORT': '8080', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SOFTWARE': 'Development/ 1.0'}) 1757 infile, 1758 outfile, 1759 self._module_dict) 1760 handler.AddDebuggingConsole(relative_url, env, outfile) 1761 finally: self = <google.appengine.tools.dev_appserver.CGIDispatcher object at 0x02E2A6F0>, self._module_dict = {'codecs': <module 'codecs' from 'C: \Python26\lib\codecs.pyc'>, 'encodings': <module 'encodings' from 'C: \Python26\lib\encodings\__init__.pyc'>, 'encodings.aliases': <module 'encodings.aliases' from 'C:\Python26\lib\encodings\aliases.pyc'>, 'encodings.ascii': <module 'encodings.ascii' from 'C:\Python26\lib \encodings\ascii.pyc'>, 'encodings.gbk': <module 'encodings.gbk' from 'C:\Python26\lib\encodings\gbk.pyc'>, 'google': <module 'google' from 'C:\Program Files\Google\google_appengine\google\__init__.py'>, 'google.appengine': <module 'google.appengine' from 'C:\Program File...e\google_appengine\google\appengine\__init__.py'>, 'google.appengine.api': <module 'google.appengine.api' from 'C: \Program ...ogle_appengine\google\appengine\api\__init__.py'>, 'google.appengine.api.api_base_pb': <module 'google.appengine.api.api_base_pb' from ...e_appengine\google\appengine \api\api_base_pb.py'>, 'google.appengine.api.apiproxy_stub_map': <module 'google.appengine.api.apiproxy_stub_map'...ngine\google \appengine\api\apiproxy_stub_map.py'>, ...} C:\Program Files\Google\google_appengine\google\appengine\tools \dev_appserver.py in ExecuteCGI(root_path=r'D:\WorkSpaces\gooapp \helloworld', handler_path='helloworld.py', cgi_path=r'D:\WorkSpaces \gooapp\helloworld\helloworld.py', env={'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/xml,application/xml,application/xhtml +xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5', 'HTTP_ACCEPT_CHARSET': 'gb18030,*,utf-8', 'HTTP_ACCEPT_ENCODING': 'gzip,deflate,bzip2,sdch', 'HTTP_ACCEPT_LANGUAGE': 'zh-CN,zh', 'HTTP_CACHE_CONTROL': 'max-age=0', ...}, infile=<cStringIO.StringI object at 0x02B62E00>, outfile=<cStringIO.StringO object at 0x02E2A7E0>, module_dict={'codecs': <module 'codecs' from 'C: \Python26\lib\codecs.pyc'>, 'encodings': <module 'encodings' from 'C: \Python26\lib\encodings\__init__.pyc'>, 'encodings.aliases': <module 'encodings.aliases' from 'C:\Python26\lib\encodings\aliases.pyc'>, 'encodings.ascii': <module 'encodings.ascii' from 'C:\Python26\lib \encodings\ascii.pyc'>, 'encodings.gbk': <module 'encodings.gbk' from 'C:\Python26\lib\encodings\gbk.pyc'>, 'google': <module 'google' from 'C:\Program Files\Google\google_appengine\google\__init__.py'>, 'google.appengine': <module 'google.appengine' from 'C:\Program File...e\google_appengine\google\appengine\__init__.py'>, 'google.appengine.api': <module 'google.appengine.api' from 'C: \Program ...ogle_appengine\google\appengine\api\__init__.py'>, 'google.appengine.api.api_base_pb': <module 'google.appengine.api.api_base_pb' from ...e_appengine\google\appengine \api\api_base_pb.py'>, 'google.appengine.api.apiproxy_stub_map': <module 'google.appengine.api.apiproxy_stub_map'...ngine\google \appengine\api\apiproxy_stub_map.py'>, ...}, exec_script=<function ExecuteOrImportScript at 0x02C99370>) 1668 logging.debug('Executing CGI with env:\n%s', pprint.pformat (env)) 1669 try: 1670 reset_modules = exec_script(handler_path, cgi_path, hook) 1671 except SystemExit, e: 1672 logging.debug('CGI exited with status: %s', e) reset_modules = True, exec_script = <function ExecuteOrImportScript at 0x02C99370>, handler_path = 'helloworld.py', cgi_path = r'D:\WorkSpaces \gooapp\helloworld\helloworld.py', hook = <google.appengine.tools.dev_appserver.HardenedModulesHook object at 0x03148DD0> C:\Program Files\Google\google_appengine\google\appengine\tools \dev_appserver.py in ExecuteOrImportScript (handler_path='helloworld.py', cgi_path=r'D:\WorkSpaces\gooapp \helloworld\helloworld.py', import_hook=<google.appengine.tools.dev_appserver.HardenedModulesHook object at 0x03148DD0>) 1569 try: 1570 if module_code: 1571 exec module_code in script_module.__dict__ 1572 else: 1573 script_module.main() module_code = <code object <module> at 03118F98, file "D:\WorkSpaces \gooapp\helloworld\helloworld.py", line 1>, script_module = <module 'helloworld' from 'D:\WorkSpaces\gooapp\helloworld\helloworld.py'>, script_module.__dict__ = {'__builtins__': {'ArithmeticError': <type 'exceptions.ArithmeticError'>, 'AssertionError': <type 'exceptions.AssertionError'>, 'AttributeError': <type 'exceptions.AttributeError'>, 'BaseException': <type 'exceptions.BaseException'>, 'BufferError': <type 'exceptions.BufferError'>, 'BytesWarning': <type 'exceptions.BytesWarning'>, 'DeprecationWarning': <type 'exceptions.DeprecationWarning'>, 'EOFError': <type 'exceptions.EOFError'>, 'Ellipsis': Ellipsis, 'EnvironmentError': <type 'exceptions.EnvironmentError'>, ...}, '__doc__': None, '__file__': r'D:\WorkSpaces\gooapp\helloworld\helloworld.py', '__loader__': <google.appengine.tools.dev_appserver.HardenedModulesHook object at 0x03148DD0>, '__name__': 'helloworld', '__package__': None, 'users': <module 'google.appengine.api.users' from 'C:\Pr...\google_appengine \google\appengine\api\users.py'>, 'wsgiref': <module 'wsgiref' from 'C: \Python26\lib\wsgiref\__init__.pyc'>} D:\WorkSpaces\gooapp\helloworld\helloworld.py in () 2 3 from google.appengine.api import users 4 from google.appengine.ext import webapp 5 6 class MainPage(webapp.RequestHandler): google undefined, webapp undefined C:\Program Files\Google\google_appengine\google\appengine\tools \dev_appserver.py in decorate (self=<google.appengine.tools.dev_appserver.HardenedModulesHook object at 0x03148DD0>, *args=('google.appengine.ext.webapp',), **kwargs={}) 814 self._indent_level += 1 815 try: 816 return func(self, *args, **kwargs) 817 finally: 818 self._indent_level -= 1 func = <function load_module at 0x02C990B0>, self = <google.appengine.tools.dev_appserver.HardenedModulesHook object at 0x03148DD0>, args = ('google.appengine.ext.webapp',), kwargs = {} C:\Program Files\Google\google_appengine\google\appengine\tools \dev_appserver.py in load_module (self=<google.appengine.tools.dev_appserver.HardenedModulesHook object at 0x03148DD0>, fullname='google.appengine.ext.webapp') 1334 search_path = parent_module.__path__ 1335 1336 return self.FindAndLoadModule(submodule, fullname, search_path) 1337 1338 @Trace self = <google.appengine.tools.dev_appserver.HardenedModulesHook object at 0x03148DD0>, self.FindAndLoadModule = <bound method HardenedModulesHook.decorate of <g...server.HardenedModulesHook object at 0x03148DD0>>, submodule = 'webapp', fullname = 'google.appengine.ext.webapp', search_path = [r'C:\Program Files\Google \google_appengine\google\appengine\ext'] C:\Program Files\Google\google_appengine\google\appengine\tools \dev_appserver.py in decorate (self=<google.appengine.tools.dev_appserver.HardenedModulesHook object at 0x03148DD0>, *args=('webapp', 'google.appengine.ext.webapp', [r'C: \Program Files\Google\google_appengine\google\appengine\ext']), **kwargs={}) 814 self._indent_level += 1 815 try: 816 return func(self, *args, **kwargs) 817 finally: 818 self._indent_level -= 1 func = <function FindAndLoadModule at 0x02C98E70>, self = <google.appengine.tools.dev_appserver.HardenedModulesHook object at 0x03148DD0>, args = ('webapp', 'google.appengine.ext.webapp', [r'C: \Program Files\Google\google_appengine\google\appengine\ext']), kwargs = {} C:\Program Files\Google\google_appengine\google\appengine\tools \dev_appserver.py in FindAndLoadModule (self=<google.appengine.tools.dev_appserver.HardenedModulesHook object at 0x03148DD0>, submodule='webapp', submodule_fullname='google.appengine.ext.webapp', search_path=[r'C: \Program Files\Google\google_appengine\google\appengine\ext']) 1243 source_file, 1244 pathname, 1245 description) 1246 1247 module.__loader__ = self description = ('', '', 5) C:\Program Files\Google\google_appengine\google\appengine\tools \dev_appserver.py in decorate (self=<google.appengine.tools.dev_appserver.HardenedModulesHook object at 0x03148DD0>, *args=('google.appengine.ext.webapp', None, r'C: \Program Files\Google\google_appengine\google\appengine\ext\webapp', ('', '', 5)), **kwargs={}) 814 self._indent_level += 1 815 try: 816 return func(self, *args, **kwargs) 817 finally: 818 self._indent_level -= 1 func = <function LoadModuleRestricted at 0x02C98DF0>, self = <google.appengine.tools.dev_appserver.HardenedModulesHook object at 0x03148DD0>, args = ('google.appengine.ext.webapp', None, r'C:\Program Files\Google\google_appengine\google\appengine\ext\webapp', ('', '', 5)), kwargs = {} C:\Program Files\Google\google_appengine\google\appengine\tools \dev_appserver.py in LoadModuleRestricted (self=<google.appengine.tools.dev_appserver.HardenedModulesHook object at 0x03148DD0>, submodule_fullname='google.appengine.ext.webapp', source_file=None, pathname=r'C:\Program Files\Google\google_appengine \google\appengine\ext\webapp', description=('', '', 5)) 1193 source_file, 1194 pathname, 1195 description) 1196 except: 1197 if submodule_fullname in self._module_dict: description = ('', '', 5) C:\Program Files\Google\google_appengine\google\appengine\ext\webapp \__init__.py in () 59 60 61 import cgi 62 import StringIO 63 import logging cgi undefined C:\Program Files\Google\google_appengine\google\appengine\tools \dev_appserver.py in decorate (self=<google.appengine.tools.dev_appserver.HardenedModulesHook object at 0x03148DD0>, *args=('cgi',), **kwargs={}) 814 self._indent_level += 1 815 try: 816 return func(self, *args, **kwargs) 817 finally: 818 self._indent_level -= 1 func = <function load_module at 0x02C990B0>, self = <google.appengine.tools.dev_appserver.HardenedModulesHook object at 0x03148DD0>, args = ('cgi',), kwargs = {} C:\Program Files\Google\google_appengine\google\appengine\tools \dev_appserver.py in load_module (self=<google.appengine.tools.dev_appserver.HardenedModulesHook object at 0x03148DD0>, fullname='cgi') 1334 search_path = parent_module.__path__ 1335 1336 return self.FindAndLoadModule(submodule, fullname, search_path) 1337 1338 @Trace self = <google.appengine.tools.dev_appserver.HardenedModulesHook object at 0x03148DD0>, self.FindAndLoadModule = <bound method HardenedModulesHook.decorate of <g...server.HardenedModulesHook object at 0x03148DD0>>, submodule = 'cgi', fullname = 'cgi', search_path = None C:\Program Files\Google\google_appengine\google\appengine\tools \dev_appserver.py in decorate (self=<google.appengine.tools.dev_appserver.HardenedModulesHook object at 0x03148DD0>, *args=('cgi', 'cgi', None), **kwargs={}) 814 self._indent_level += 1 815 try: 816 return func(self, *args, **kwargs) 817 finally: 818 self._indent_level -= 1 func = <function FindAndLoadModule at 0x02C98E70>, self = <google.appengine.tools.dev_appserver.HardenedModulesHook object at 0x03148DD0>, args = ('cgi', 'cgi', None), kwargs = {} C:\Program Files\Google\google_appengine\google\appengine\tools \dev_appserver.py in FindAndLoadModule (self=<google.appengine.tools.dev_appserver.HardenedModulesHook object at 0x03148DD0>, submodule='cgi', submodule_fullname='cgi', search_path=None) 1243 source_file, 1244 pathname, 1245 description) 1246 1247 module.__loader__ = self description = ('.py', 'U', 1) C:\Program Files\Google\google_appengine\google\appengine\tools \dev_appserver.py in decorate (self=<google.appengine.tools.dev_appserver.HardenedModulesHook object at 0x03148DD0>, *args=('cgi', <closed file 'C:\Python26\lib\cgi.py', mode 'U' at 0x030983E0>, r'C:\Python26\lib\cgi.py', ('.py', 'U', 1)), **kwargs={}) 814 self._indent_level += 1 815 try: 816 return func(self, *args, **kwargs) 817 finally: 818 self._indent_level -= 1 func = <function LoadModuleRestricted at 0x02C98DF0>, self = <google.appengine.tools.dev_appserver.HardenedModulesHook object at 0x03148DD0>, args = ('cgi', <closed file 'C:\Python26\lib\cgi.py', mode 'U' at 0x030983E0>, r'C:\Python26\lib\cgi.py', ('.py', 'U', 1)), kwargs = {} C:\Program Files\Google\google_appengine\google\appengine\tools \dev_appserver.py in LoadModuleRestricted (self=<google.appengine.tools.dev_appserver.HardenedModulesHook object at 0x03148DD0>, submodule_fullname='cgi', source_file=<closed file 'C: \Python26\lib\cgi.py', mode 'U' at 0x030983E0>, pathname=r'C: \Python26\lib\cgi.py', description=('.py', 'U', 1)) 1193 source_file, 1194 pathname, 1195 description) 1196 except: 1197 if submodule_fullname in self._module_dict: description = ('.py', 'U', 1) C:\Python26\lib\cgi.py in () 38 import sys 39 import os 40 import urllib 41 import UserDict 42 import urlparse urllib undefined C:\Program Files\Google\google_appengine\google\appengine\tools \dev_appserver.py in decorate (self=<google.appengine.tools.dev_appserver.HardenedModulesHook object at 0x03148DD0>, *args=('urllib',), **kwargs={}) 814 self._indent_level += 1 815 try: 816 return func(self, *args, **kwargs) 817 finally: 818 self._indent_level -= 1 func = <function load_module at 0x02C990B0>, self = <google.appengine.tools.dev_appserver.HardenedModulesHook object at 0x03148DD0>, args = ('urllib',), kwargs = {} C:\Program Files\Google\google_appengine\google\appengine\tools \dev_appserver.py in load_module (self=<google.appengine.tools.dev_appserver.HardenedModulesHook object at 0x03148DD0>, fullname='urllib') 1334 search_path = parent_module.__path__ 1335 1336 return self.FindAndLoadModule(submodule, fullname, search_path) 1337 1338 @Trace self = <google.appengine.tools.dev_appserver.HardenedModulesHook object at 0x03148DD0>, self.FindAndLoadModule = <bound method HardenedModulesHook.decorate of <g...server.HardenedModulesHook object at 0x03148DD0>>, submodule = 'urllib', fullname = 'urllib', search_path = None C:\Program Files\Google\google_appengine\google\appengine\tools \dev_appserver.py in decorate (self=<google.appengine.tools.dev_appserver.HardenedModulesHook object at 0x03148DD0>, *args=('urllib', 'urllib', None), **kwargs={}) 814 self._indent_level += 1 815 try: 816 return func(self, *args, **kwargs) 817 finally: 818 self._indent_level -= 1 func = <function FindAndLoadModule at 0x02C98E70>, self = <google.appengine.tools.dev_appserver.HardenedModulesHook object at 0x03148DD0>, args = ('urllib', 'urllib', None), kwargs = {} C:\Program Files\Google\google_appengine\google\appengine\tools \dev_appserver.py in FindAndLoadModule (self=<google.appengine.tools.dev_appserver.HardenedModulesHook object at 0x03148DD0>, submodule='urllib', submodule_fullname='urllib', search_path=None) 1243 source_file, 1244 pathname, 1245 description) 1246 1247 module.__loader__ = self description = ('.py', 'U', 1) C:\Program Files\Google\google_appengine\google\appengine\tools \dev_appserver.py in decorate (self=<google.appengine.tools.dev_appserver.HardenedModulesHook object at 0x03148DD0>, *args=('urllib', <closed file 'C:\Python26\lib \urllib.py', mode 'U' at 0x030AF520>, r'C:\Python26\lib\urllib.py', ('.py', 'U', 1)), **kwargs={}) 814 self._indent_level += 1 815 try: 816 return func(self, *args, **kwargs) 817 finally: 818 self._indent_level -= 1 func = <function LoadModuleRestricted at 0x02C98DF0>, self = <google.appengine.tools.dev_appserver.HardenedModulesHook object at 0x03148DD0>, args = ('urllib', <closed file 'C:\Python26\lib \urllib.py', mode 'U' at 0x030AF520>, r'C:\Python26\lib\urllib.py', ('.py', 'U', 1)), kwargs = {} C:\Program Files\Google\google_appengine\google\appengine\tools \dev_appserver.py in LoadModuleRestricted (self=<google.appengine.tools.dev_appserver.HardenedModulesHook object at 0x03148DD0>, submodule_fullname='urllib', source_file=<closed file 'C:\Python26\lib\urllib.py', mode 'U' at 0x030AF520>, pathname=r'C: \Python26\lib\urllib.py', description=('.py', 'U', 1)) 1193 source_file, 1194 pathname, 1195 description) 1196 except: 1197 if submodule_fullname in self._module_dict: description = ('.py', 'U', 1) C:\Python26\lib\urllib.py in () 28 import time 29 import sys 30 from urlparse import urljoin as basejoin 31 import warnings 32 urlparse undefined, urljoin undefined, basejoin undefined C:\Program Files\Google\google_appengine\google\appengine\tools \dev_appserver.py in decorate (self=<google.appengine.tools.dev_appserver.HardenedModulesHook object at 0x03148DD0>, *args=('urlparse',), **kwargs={}) 814 self._indent_level += 1 815 try: 816 return func(self, *args, **kwargs) 817 finally: 818 self._indent_level -= 1 func = <function load_module at 0x02C990B0>, self = <google.appengine.tools.dev_appserver.HardenedModulesHook object at 0x03148DD0>, args = ('urlparse',), kwargs = {} C:\Program Files\Google\google_appengine\google\appengine\tools \dev_appserver.py in load_module (self=<google.appengine.tools.dev_appserver.HardenedModulesHook object at 0x03148DD0>, fullname='urlparse') 1334 search_path = parent_module.__path__ 1335 1336 return self.FindAndLoadModule(submodule, fullname, search_path) 1337 1338 @Trace self = <google.appengine.tools.dev_appserver.HardenedModulesHook object at 0x03148DD0>, self.FindAndLoadModule = <bound method HardenedModulesHook.decorate of <g...server.HardenedModulesHook object at 0x03148DD0>>, submodule = 'urlparse', fullname = 'urlparse', search_path = None C:\Program Files\Google\google_appengine\google\appengine\tools \dev_appserver.py in decorate (self=<google.appengine.tools.dev_appserver.HardenedModulesHook object at 0x03148DD0>, *args=('urlparse', 'urlparse', None), **kwargs={}) 814 self._indent_level += 1 815 try: 816 return func(self, *args, **kwargs) 817 finally: 818 self._indent_level -= 1 func = <function FindAndLoadModule at 0x02C98E70>, self = <google.appengine.tools.dev_appserver.HardenedModulesHook object at 0x03148DD0>, args = ('urlparse', 'urlparse', None), kwargs = {} C:\Program Files\Google\google_appengine\google\appengine\tools \dev_appserver.py in FindAndLoadModule (self=<google.appengine.tools.dev_appserver.HardenedModulesHook object at 0x03148DD0>, submodule='urlparse', submodule_fullname='urlparse', search_path=None) 1243 source_file, 1244 pathname, 1245 description) 1246 1247 module.__loader__ = self description = ('.py', 'U', 1) C:\Program Files\Google\google_appengine\google\appengine\tools \dev_appserver.py in decorate (self=<google.appengine.tools.dev_appserver.HardenedModulesHook object at 0x03148DD0>, *args=('urlparse', <closed file 'C:\Python26\lib \urlparse.py', mode 'U' at 0x02E02E30>, r'C:\Python26\lib \urlparse.py', ('.py', 'U', 1)), **kwargs={}) 814 self._indent_level += 1 815 try: 816 return func(self, *args, **kwargs) 817 finally: 818 self._indent_level -= 1 func = <function LoadModuleRestricted at 0x02C98DF0>, self = <google.appengine.tools.dev_appserver.HardenedModulesHook object at 0x03148DD0>, args = ('urlparse', <closed file 'C:\Python26\lib \urlparse.py', mode 'U' at 0x02E02E30>, r'C:\Python26\lib \urlparse.py', ('.py', 'U', 1)), kwargs = {} C:\Program Files\Google\google_appengine\google\appengine\tools \dev_appserver.py in LoadModuleRestricted (self=<google.appengine.tools.dev_appserver.HardenedModulesHook object at 0x03148DD0>, submodule_fullname='urlparse', source_file=<closed file 'C:\Python26\lib\urlparse.py', mode 'U' at 0x02E02E30>, pathname=r'C:\Python26\lib\urlparse.py', description=('.py', 'U', 1)) 1193 source_file, 1194 pathname, 1195 description) 1196 except: 1197 if submodule_fullname in self._module_dict: description = ('.py', 'U', 1) C:\Python26\lib\urlparse.py in () 82 return None 83 84 from collections import namedtuple 85 86 class SplitResult(namedtuple('SplitResult', 'scheme netloc path query fragment'), ResultMixin): collections undefined, namedtuple undefined C:\Program Files\Google\google_appengine\google\appengine\tools \dev_appserver.py in decorate (self=<google.appengine.tools.dev_appserver.HardenedModulesHook object at 0x03148DD0>, *args=('collections',), **kwargs={}) 814 self._indent_level += 1 815 try: 816 return func(self, *args, **kwargs) 817 finally: 818 self._indent_level -= 1 func = <function load_module at 0x02C990B0>, self = <google.appengine.tools.dev_appserver.HardenedModulesHook object at 0x03148DD0>, args = ('collections',), kwargs = {} C:\Program Files\Google\google_appengine\google\appengine\tools \dev_appserver.py in load_module (self=<google.appengine.tools.dev_appserver.HardenedModulesHook object at 0x03148DD0>, fullname='collections') 1334 search_path = parent_module.__path__ 1335 1336 return self.FindAndLoadModule(submodule, fullname, search_path) 1337 1338 @Trace self = <google.appengine.tools.dev_appserver.HardenedModulesHook object at 0x03148DD0>, self.FindAndLoadModule = <bound method HardenedModulesHook.decorate of <g...server.HardenedModulesHook object at 0x03148DD0>>, submodule = 'collections', fullname = 'collections', search_path = None C:\Program Files\Google\google_appengine\google\appengine\tools \dev_appserver.py in decorate (self=<google.appengine.tools.dev_appserver.HardenedModulesHook object at 0x03148DD0>, *args=('collections', 'collections', None), **kwargs= {}) 814 self._indent_level += 1 815 try: 816 return func(self, *args, **kwargs) 817 finally: 818 self._indent_level -= 1 func = <function FindAndLoadModule at 0x02C98E70>, self = <google.appengine.tools.dev_appserver.HardenedModulesHook object at 0x03148DD0>, args = ('collections', 'collections', None), kwargs = {} C:\Program Files\Google\google_appengine\google\appengine\tools \dev_appserver.py in FindAndLoadModule (self=<google.appengine.tools.dev_appserver.HardenedModulesHook object at 0x03148DD0>, submodule='collections', submodule_fullname='collections', search_path=None) 1243 source_file, 1244 pathname, 1245 description) 1246 1247 module.__loader__ = self description = ('.py', 'U', 1) C:\Program Files\Google\google_appengine\google\appengine\tools \dev_appserver.py in decorate (self=<google.appengine.tools.dev_appserver.HardenedModulesHook object at 0x03148DD0>, *args=('collections', <closed file 'C:\Python26\lib \collections.py', mode 'U' at 0x02E025C0>, r'C:\Python26\lib \collections.py', ('.py', 'U', 1)), **kwargs={}) 814 self._indent_level += 1 815 try: 816 return func(self, *args, **kwargs) 817 finally: 818 self._indent_level -= 1 func = <function LoadModuleRestricted at 0x02C98DF0>, self = <google.appengine.tools.dev_appserver.HardenedModulesHook object at 0x03148DD0>, args = ('collections', <closed file 'C:\Python26\lib \collections.py', mode 'U' at 0x02E025C0>, r'C:\Python26\lib \collections.py', ('.py', 'U', 1)), kwargs = {} C:\Program Files\Google\google_appengine\google\appengine\tools \dev_appserver.py in LoadModuleRestricted (self=<google.appengine.tools.dev_appserver.HardenedModulesHook object at 0x03148DD0>, submodule_fullname='collections', source_file=<closed file 'C:\Python26\lib\collections.py', mode 'U' at 0x02E025C0>, pathname=r'C:\Python26\lib\collections.py', description=('.py', 'U', 1)) 1193 source_file, 1194 pathname, 1195 description) 1196 except: 1197 if submodule_fullname in self._module_dict: description = ('.py', 'U', 1) C:\Python26\lib\collections.py in () 2 # For bootstrapping reasons, the collection ABCs are defined in _abcoll.py. 3 # They should however be considered an integral part of collections.py. 4 from _abcoll import * 5 import _abcoll 6 __all__ += _abcoll.__all__ _abcoll undefined C:\Program Files\Google\google_appengine\google\appengine\tools \dev_appserver.py in decorate (self=<google.appengine.tools.dev_appserver.HardenedModulesHook object at 0x03148DD0>, *args=('_abcoll',), **kwargs={}) 814 self._indent_level += 1 815 try: 816 return func(self, *args, **kwargs) 817 finally: 818 self._indent_level -= 1 func = <function load_module at 0x02C990B0>, self = <google.appengine.tools.dev_appserver.HardenedModulesHook object at 0x03148DD0>, args = ('_abcoll',), kwargs = {} C:\Program Files\Google\google_appengine\google\appengine\tools \dev_appserver.py in load_module (self=<google.appengine.tools.dev_appserver.HardenedModulesHook object at 0x03148DD0>, fullname='_abcoll') 1334 search_path = parent_module.__path__ 1335 1336 return self.FindAndLoadModule(submodule, fullname, search_path) 1337 1338 @Trace self = <google.appengine.tools.dev_appserver.HardenedModulesHook object at 0x03148DD0>, self.FindAndLoadModule = <bound method HardenedModulesHook.decorate of <g...server.HardenedModulesHook object at 0x03148DD0>>, submodule = '_abcoll', fullname = '_abcoll', search_path = None C:\Program Files\Google\google_appengine\google\appengine\tools \dev_appserver.py in decorate (self=<google.appengine.tools.dev_appserver.HardenedModulesHook object at 0x03148DD0>, *args=('_abcoll', '_abcoll', None), **kwargs={}) 814 self._indent_level += 1 815 try: 816 return func(self, *args, **kwargs) 817 finally: 818 self._indent_level -= 1 func = <function FindAndLoadModule at 0x02C98E70>, self = <google.appengine.tools.dev_appserver.HardenedModulesHook object at 0x03148DD0>, args = ('_abcoll', '_abcoll', None), kwargs = {} C:\Program Files\Google\google_appengine\google\appengine\tools \dev_appserver.py in FindAndLoadModule (self=<google.appengine.tools.dev_appserver.HardenedModulesHook object at 0x03148DD0>, submodule='_abcoll', submodule_fullname='_abcoll', search_path=None) 1243 source_file, 1244 pathname, 1245 description) 1246 1247 module.__loader__ = self description = ('.py', 'U', 1) C:\Program Files\Google\google_appengine\google\appengine\tools \dev_appserver.py in decorate (self=<google.appengine.tools.dev_appserver.HardenedModulesHook object at 0x03148DD0>, *args=('_abcoll', <closed file 'C:\Python26\lib \_abcoll.py', mode 'U' at 0x02E02840>, r'C:\Python26\lib\_abcoll.py', ('.py', 'U', 1)), **kwargs={}) 814 self._indent_level += 1 815 try: 816 return func(self, *args, **kwargs) 817 finally: 818 self._indent_level -= 1 func = <function LoadModuleRestricted at 0x02C98DF0>, self = <google.appengine.tools.dev_appserver.HardenedModulesHook object at 0x03148DD0>, args = ('_abcoll', <closed file 'C:\Python26\lib \_abcoll.py', mode 'U' at 0x02E02840>, r'C:\Python26\lib\_abcoll.py', ('.py', 'U', 1)), kwargs = {} C:\Program Files\Google\google_appengine\google\appengine\tools \dev_appserver.py in LoadModuleRestricted (self=<google.appengine.tools.dev_appserver.HardenedModulesHook object at 0x03148DD0>, submodule_fullname='_abcoll', source_file=<closed file 'C:\Python26\lib\_abcoll.py', mode 'U' at 0x02E02840>, pathname=r'C: \Python26\lib\_abcoll.py', description=('.py', 'U', 1)) 1193 source_file, 1194 pathname, 1195 description) 1196 except: 1197 if submodule_fullname in self._module_dict: description = ('.py', 'U', 1) C:\Python26\lib\_abcoll.py in () 519 Sequence.register(tuple) 520 Sequence.register(basestring) 521 Sequence.register(buffer) 522 523 Sequence = None, Sequence.register undefined, builtin buffer = <type 'buffer'> C:\Python26\lib\abc.py in register(cls=<class '_abcoll.Sequence'>, subclass=<function NotImplementedFake at 0x02C987F0>) 96 if not isinstance(cls, type): 97 raise TypeError("Can only register classes") 98 if issubclass(subclass, cls): 99 return # Already a subclass 100 # Subtle: test for cycles *after* testing for "already a subclass"; builtin issubclass = <built-in function issubclass>, subclass = <function NotImplementedFake at 0x02C987F0>, cls = <class '_abcoll.Sequence'> C:\Python26\lib\abc.py in __subclasscheck__(cls=<class '_abcoll.Sequence'>, subclass=<function NotImplementedFake at 0x02C987F0>) 159 # Check if it's a subclass of a registered class (recursive) 160 for rcls in cls._abc_registry: 161 if issubclass(subclass, rcls): 162 cls._abc_cache.add(subclass) 163 return True builtin issubclass = <built-in function issubclass>, subclass = <function NotImplementedFake at 0x02C987F0>, rcls = <type 'tuple'> <type 'exceptions.TypeError'>: issubclass() arg 1 must be a class args = ('issubclass() arg 1 must be a class',) message = 'issubclass() arg 1 must be a class' --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~----------~----~----~----~------~----~------~--~---