Did the solution in my previous posts in this thread (http:// groups.google.com/group/pylons-discuss/msg/736a388d21c206ec and http://groups.google.com/group/pylons-discuss/msg/ed62a408ebe40ae3 ; basically, to get rid of the "'module' object has no attribute 'find_module'" error, as root, I installed the unpacked version of setuptools-0.6c9- py2.5.egg to /usr/lib/python2.5/site-packages/. Then to get rid of the error concerning "site", in paste-deploy.py, I moved the command "import site" below the place where sys.path is altered.
On Mar 8, 4:05 am, Mykola <[email protected]> wrote: > Got absolutely the same error, any ideas how this can be fixed? > > On Feb 16, 3:04 pm, Bayle <[email protected]> wrote: > > > hi, i'm trying to install pylons on google app engine 1.1.9. > > > I followed the directions > > onhttp://wiki.pylonshq.com/display/pylonscookbook/Creating+a+Pylons+app... > > > However, when I attempt to accesshttp://localhost:8080/, I get the > > error trace appended below. > > > In case there is any uncertainty in what I did, I make a shell script, > > source code appended below after the error trace. The shell script was > > invoked like this: > > > newpylonsgae testsite /usr/local/google_appengine/ > > > thanks, > > bayle > > > --------------------------------- > > > <type 'exceptions.AttributeError'> Python 2.5.2: /usr/bin/python > > Mon Feb 16 12:59:23 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. > > /usr/local/google_appengine/google/appengine/tools/dev_appserver.py > > in _HandleRequest > > (self=<google.appengine.tools.dev_appserver.DevAppServerRequestHandler > > instance at 0x11eb5f0>) > > 2709 infile, > > 2710 outfile, > > 2711 base_env_dict=env_dict) > > 2712 finally: > > 2713 self.module_manager.UpdateModuleFileModificationTimes > > () > > base_env_dict undefined, env_dict = {'APPLICATION_ID': 'testsite', > > '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'} > > /usr/local/google_appengine/google/appengine/tools/dev_appserver.py > > in Dispatch > > (self=<google.appengine.tools.dev_appserver.MatcherDispatcher object > > at 0x1090b90>, relative_url='/', path=None, headers=<mimetools.Message > > instance at 0x11eb680>, infile=<cStringIO.StringI object at > > 0x11ee1e0>, outfile=<cStringIO.StringO object at 0x114e378>, > > base_env_dict={'APPLICATION_ID': 'testsite', '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'}) > > 378 infile, > > 379 outfile, > > 380 > > base_env_dict=base_env_dict) > > 381 > > 382 if forward: > > base_env_dict = {'APPLICATION_ID': 'testsite', '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'} > > /usr/local/google_appengine/google/appengine/tools/dev_appserver.py > > in Dispatch(self=<google.appengine.tools.dev_appserver.CGIDispatcher > > object at 0x1149850>, relative_url='/', path='paste-deploy.py', > > headers=<mimetools.Message instance at 0x11eb680>, > > infile=<cStringIO.StringI object at 0x11ee1e0>, > > outfile=<cStringIO.StringO object at 0x114e378>, base_env_dict= > > {'APPLICATION_ID': 'testsite', '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'}) > > 1996 infile, > > 1997 outfile, > > 1998 self._module_dict) > > 1999 handler.AddDebuggingConsole(relative_url, env, outfile) > > 2000 finally: > > self = <google.appengine.tools.dev_appserver.CGIDispatcher object at > > 0x1149850>, self._module_dict = {'__main__': <module 'paste-deploy' > > from '/home/bshanks/prog/testsite/paste-deploy.py'>, 'codecs': <module > > 'codecs' from '/usr/lib/python2.5/codecs.pyc'>, 'encodings': <module > > 'encodings' from '/usr/lib/python2.5/encodings/__init__.pyc'>, > > 'encodings.aliases': <module 'encodings.aliases' from '/usr/lib/ > > python2.5/encodings/aliases.pyc'>, 'encodings.ascii': <module > > 'encodings.ascii' from '/usr/lib/python2.5/encodings/ascii.pyc'>, > > 'encodings.codecs': None, 'encodings.encodings': None, > > 'encodings.types': None, 'encodings.utf_8': <module 'encodings.utf_8' > > from '/usr/lib/python2.5/encodings/utf_8.pyc'>, 'google': <module > > 'google' from '/usr/local/google_appengine/google/__init__.pyc'>, ...} > > /usr/local/google_appengine/google/appengine/tools/dev_appserver.py > > in ExecuteCGI(root_path='/home/bshanks/prog/testsite', > > handler_path='paste-deploy.py', cgi_path='/home/bshanks/prog/testsite/ > > paste-deploy.py', env={'APPLICATION_ID': 'testsite', '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_CACHE_CONTROL': 'max-age=0', ...}, > > infile=<cStringIO.StringI object at 0x11ee1e0>, > > outfile=<cStringIO.StringO object at 0x114e378>, module_dict= > > {'__main__': <module 'paste-deploy' from '/home/bshanks/prog/testsite/ > > paste-deploy.py'>, 'codecs': <module 'codecs' from '/usr/lib/python2.5/ > > codecs.pyc'>, 'encodings': <module 'encodings' from '/usr/lib/ > > python2.5/encodings/__init__.pyc'>, 'encodings.aliases': <module > > 'encodings.aliases' from '/usr/lib/python2.5/encodings/aliases.pyc'>, > > 'encodings.ascii': <module 'encodings.ascii' from '/usr/lib/python2.5/ > > encodings/ascii.pyc'>, 'encodings.codecs': None, > > 'encodings.encodings': None, 'encodings.types': None, > > 'encodings.utf_8': <module 'encodings.utf_8' from '/usr/lib/python2.5/ > > encodings/utf_8.pyc'>, 'google': <module 'google' from '/usr/local/ > > google_appengine/google/__init__.pyc'>, ...}, exec_script=<function > > ExecuteOrImportScript at 0x108ec80>) > > 1914 logging.debug('Executing CGI with env:\n%s', pprint.pformat > > (env)) > > 1915 try: > > 1916 reset_modules = exec_script(handler_path, cgi_path, hook) > > 1917 except SystemExit, e: > > 1918 logging.debug('CGI exited with status: %s', e) > > reset_modules = True, exec_script = <function ExecuteOrImportScript at > > 0x108ec80>, handler_path = 'paste-deploy.py', cgi_path = '/home/ > > bshanks/prog/testsite/paste-deploy.py', hook = > > <google.appengine.tools.dev_appserver.HardenedModulesHook object at > > 0x1090cd0> > > /usr/local/google_appengine/google/appengine/tools/dev_appserver.py > > in ExecuteOrImportScript(handler_path='paste-deploy.py', cgi_path='/ > > home/bshanks/prog/testsite/paste-deploy.py', > > import_hook=<google.appengine.tools.dev_appserver.HardenedModulesHook > > object at 0x1090cd0>) > > 1810 try: > > 1811 if module_code: > > 1812 exec module_code in script_module.__dict__ > > 1813 else: > > 1814 script_module.main() > > module_code = <code object <module> at 0x11f10a8, file "/home/bshanks/ > > prog/testsite/paste-deploy.py", line 3>, script_module = <module > > 'paste-deploy' from '/home/bshanks/prog/testsite/paste-deploy.py'>, > > script_module.__dict__ = {'CONF_FILE': 'development.ini', > > '__builtins__': {'ArithmeticError': <type > > 'exceptions.ArithmeticError'>, 'AssertionError': <type > > 'exceptions.AssertionError'>, 'AttributeError': <type > > 'exceptions.AttributeError'>, 'BaseException': <type > > 'exceptions.BaseException'>, 'DeprecationWarning': <type > > 'exceptions.DeprecationWarning'>, 'EOFError': <type > > 'exceptions.EOFError'>, 'Ellipsis': Ellipsis, 'EnvironmentError': > > <type 'exceptions.EnvironmentError'>, 'Exception': <type > > 'exceptions.Exception'>, 'False': False, ...}, '__doc__': None, > > '__file__': '/home/bshanks/prog/testsite/paste-deploy.py', > > '__loader__': > > <google.appengine.tools.dev_appserver.HardenedModulesHook object at > > 0x1090cd0>, '__name__': 'paste-deploy', 'os': <module 'os' from '/usr/ > > lib/python2.5/os.pyc'>, 'sys': <module 'sys' (built-in)>} > > /home/bshanks/prog/testsite/paste-deploy.py in () > > 14 "$PYTHONPATH is set. This may cause import problems; it > > is best to unset PYTHONPATH before starting the appserver") > > 15 > > 16 import site > > 17 site = reload(site) > > 18 import wsgiref.handlers > > site undefined > > /usr/local/google_appengine/google/appengine/tools/dev_appserver.py > > in decorate > > (self=<google.appengine.tools.dev_appserver.HardenedModulesHook object > > at 0x1090cd0>, *args=('site',), **kwargs={}) > > 980 self._indent_level += 1 > > 981 try: > > 982 return func(self, *args, **kwargs) > > 983 finally: > > 984 self._indent_level -= 1 > > func = <function load_module at 0x108e758>, self = > > <google.appengine.tools.dev_appserver.HardenedModulesHook object at > > 0x1090cd0>, args = ('site',), kwargs = {} > > /usr/local/google_appengine/google/appengine/tools/dev_appserver.py > > in load_module > > (self=<google.appengine.tools.dev_appserver.HardenedModulesHook object > > at 0x1090cd0>, fullname='site') > > 1570 search_path = parent_module.__path__ > > 1571 > > 1572 return self.FindAndLoadModule(submodule, fullname, > > search_path) > > 1573 > > 1574 @Trace > > self = <google.appengine.tools.dev_appserver.HardenedModulesHook > > object at 0x1090cd0>, self.FindAndLoadModule = <bound method > > HardenedModulesHook.decorate of <g...pserver.HardenedModulesHook > > object at 0x1090cd0>>, submodule = 'site', fullname = 'site', > > search_path = None > > /usr/local/google_appengine/google/appengine/tools/dev_appserver.py > > in decorate > > (self=<google.appengine.tools.dev_appserver.HardenedModulesHook object > > ... > > read more » --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pylons-discuss" 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/pylons-discuss?hl=en -~----------~----~----~----~------~----~------~--~---
