If it helps, I noticed that the error trace I get with 1.1.9 mentions
zipimporter trying to do something with /usr/lib/python2.5/site-
packages/setuptools-0.6c9-py2.5.egg, and I noticed that during the
pth_relpath_fixup there was the following error:

WARNING: /usr/lib/python2.5/site-packages/setuptools-0.6c9-py2.5.egg
is installed as a zip file
         Libraries must be installed with easy_install --always-unzip

So, as root, I installed the unpacked version of setuptools-0.6c9-
py2.5.egg to /usr/lib/python2.5/site-packages/, by doing

# cd /usr/lib/python2.5/site-packages
# mv setuptools-0.6c9-py2.5.egg setuptools-0.6c9-py2.5.egg-old
# cp -r ~bshanks/prog/testsite/lib/python2.5/site-packages/
setuptools-0.6c9-py2.5.egg .

Of course, mucking with things as root shouldn't be required, but
anyhow:

Now when I try to run it, I get a different error, about the "site"
module not being found (appended below).

thanks,
  bayle

---------------

<type 'exceptions.ImportError'> Python 2.5.2: /usr/bin/python
Tue Feb 17 00:20:34 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 0x1008a28>)
 2401                               infile,
 2402                               outfile,
 2403                               base_env_dict=env_dict)
 2404         finally:
 2405           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 0xf51810>, relative_url='/', path=None, headers=<mimetools.Message
instance at 0x1008ab8>, infile=<cStringIO.StringI object at
0x100f1b0>, outfile=<cStringIO.StringO object at 0xf4dc70>,
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'})
  346                             infile,
  347                             outfile,
  348                             base_env_dict=base_env_dict)
  349
  350       return
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 0xf51890>, relative_url='/', path='paste-deploy.py',
headers=<mimetools.Message instance at 0x1008ab8>,
infile=<cStringIO.StringI object at 0x100f1b0>,
outfile=<cStringIO.StringO object at 0xf4dc70>, 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'})
 1836                      infile,
 1837                      outfile,
 1838                      self._module_dict)
 1839       handler.AddDebuggingConsole(relative_url, env, outfile)
 1840     finally:
self = <google.appengine.tools.dev_appserver.CGIDispatcher object at
0xf51890>, 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_ENCODING':
'gzip,deflate', 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', ...},
infile=<cStringIO.StringI object at 0x100f1b0>,
outfile=<cStringIO.StringO object at 0xf4dc70>, 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 0xea9e60>)
 1754     logging.debug('Executing CGI with env:\n%s', pprint.pformat
(env))
 1755     try:
 1756       reset_modules = exec_script(handler_path, cgi_path, hook)
 1757     except SystemExit, e:
 1758       logging.debug('CGI exited with status: %s', e)
reset_modules = True, exec_script = <function ExecuteOrImportScript at
0xea9e60>, handler_path = 'paste-deploy.py', cgi_path = '/home/bshanks/
prog/testsite/paste-deploy.py', hook =
<google.appengine.tools.dev_appserver.HardenedModulesHook object at
0xeab6d0>
 /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 0xeab6d0>)
 1650   try:
 1651     if module_code:
 1652       exec module_code in script_module.__dict__
 1653     else:
 1654       script_module.main()
module_code = <code object <module> at 0x1012120, 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
0xeab6d0>, '__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

<type 'exceptions.ImportError'>: No module named site
      args = ('No module named site',)
      message = 'No module named site'


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to