Hi Marzia
Anything I can do to help.
"which python" gave me "/Library/Frameworks/Python.framework/Versions/
Current/bin/python"
The logs after this query showed the following
==============
DEBUG 2008-10-09 05:59:28,180 dev_appserver.py] Matched "/0.1/get/?
listId=ul_teams&pageId=/Users/gpriday/Downloads/JsWidget/index.html"
to CGI dispatcher with path main.py
DEBUG 2008-10-09 05:59:28,183 dev_appserver.py] Executing CGI with
env:
{'APPLICATION_ID': 'leaplists',
'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-gb,en;q=0.5',
'HTTP_CONNECTION': 'keep-alive',
'HTTP_COOKIE': 'fontSize=100; ja_purity_tpl=ja_purity;
150037918a1d5893eaceab0f3b43bedb=927381bbe5824c6ba43725c0358d6bf3;
0fc63881adf2c51d8b61c376a0e68b59=b88f5c7121662c8ad36a5a07853b01ac',
'HTTP_HOST': 'localhost:8080',
'HTTP_KEEP_ALIVE': '300',
'HTTP_USER_AGENT': 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5;
en-GB; rv:1.9.0.3) Gecko/2008092414 Firefox/3.0.3',
'PATH_INFO': '/0.1/get/',
'PATH_TRANSLATED': '/Users/gpriday/Documents/workspace/leaplists/
main.py',
'QUERY_STRING': 'listId=ul_teams&pageId=/Users/gpriday/Downloads/
JsWidget/index.html',
'REMOTE_ADDR': '127.0.0.1',
'REQUEST_METHOD': 'GET',
'SCRIPT_NAME': '',
'SERVER_NAME': 'localhost',
'SERVER_PORT': '8080',
'SERVER_PROTOCOL': 'HTTP/1.0',
'SERVER_SOFTWARE': 'Development/1.0',
'TZ': 'UTC',
'USER_EMAIL': ''}
DEBUG 2008-10-09 05:59:28,225 dev_appserver.py] Access to module
file denied: /Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/cgi.py
ERROR 2008-10-09 05:59:28,229 dev_appserver.py] Exception
encountered handling request
Traceback (most recent call last):
File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/
GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
google/appengine/tools/dev_appserver.py", line 2413, in _HandleRequest
base_env_dict=env_dict)
File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/
GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
google/appengine/tools/dev_appserver.py", line 348, in Dispatch
base_env_dict=base_env_dict)
File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/
GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
google/appengine/tools/dev_appserver.py", line 1848, in Dispatch
self._module_dict)
File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/
GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
google/appengine/tools/dev_appserver.py", line 1766, in ExecuteCGI
reset_modules = exec_script(handler_path, cgi_path, hook)
File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/
GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
google/appengine/tools/dev_appserver.py", line 1662, in
ExecuteOrImportScript
exec module_code in script_module.__dict__
File "/Users/gpriday/Documents/workspace/leaplists/main.py", line 3,
in <module>
from google.appengine.ext import webapp
File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/
GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
google/appengine/tools/dev_appserver.py", line 832, in decorate
return func(self, *args, **kwargs)
File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/
GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
google/appengine/tools/dev_appserver.py", line 1423, in load_module
return self.FindAndLoadModule(submodule, fullname, search_path)
File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/
GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
google/appengine/tools/dev_appserver.py", line 832, in decorate
return func(self, *args, **kwargs)
File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/
GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
google/appengine/tools/dev_appserver.py", line 1331, in
FindAndLoadModule
description)
File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/
GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
google/appengine/tools/dev_appserver.py", line 832, in decorate
return func(self, *args, **kwargs)
File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/
GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
google/appengine/tools/dev_appserver.py", line 1281, in
LoadModuleRestricted
description)
File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/
GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
google/appengine/ext/webapp/__init__.py", line 61, in <module>
import cgi
ImportError: No module named cgi
INFO 2008-10-09 05:59:28,243 dev_appserver.py] "GET /0.1/get/?
listId=ul_teams&pageId=/Users/gpriday/Downloads/JsWidget/index.html
HTTP/1.1" 500 -
==============
Greg
On Oct 8, 10:49 pm, "Marzia Niccolai" <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Thanks. Did you also have the output of the dev_appserver logs console when
> this happens? And what is the output of 'which python'?
>
> Your help is really appreciated.
>
> -Marzia
>
> On Wed, Oct 8, 2008 at 1:14 PM, Greg <[EMAIL PROTECTED]> wrote:
>
> > Running dev_appserver.py from the command line gives me the same "No
> > module named cgi" error.
>
> > The result of "defaults read ~/Library/Preferences/
> > com.google.GoogleAppEngineLauncher" :
>
> > =========
> > {
> > EditDirectory = 1;
> > Editor = "";
> > GMClientAuthWindowSignInName = "[EMAIL PROTECTED]";
> > NSNavLastCurrentDirectory = "~/Documents/workspace";
> > NSNavLastRootDirectory = "~";
> > NSNavPanelExpandedSizeForOpenMode = "{518, 400}";
> > NSNavSidebarWidth = 120;
> > "NSTableView Columns NSNavOutlineColumnSettings.v1" = (
> > <040b7374 7265616d 74797065 6481e803 84014084 8484084e
> > 53537472 696e6701 8484084e 534f626a 65637400 8584012b 1c4e534e
> > 61764469 73706c61 794e616d 6546696c 6550726f 70657274 7986>,
> > 225,
> > <040b7374 7265616d 74797065 6481e803 84014084 8484084e
> > 53537472 696e6701 8484084e 534f626a 65637400 8584012b 184e534e
> > 61764d6f 64446174 6546696c 6550726f 70657274 7986>,
> > 145
> > );
> > "NSTableView Hidden Columns NSNavOutlineColumnSettings.v1" = (
> > );
> > "NSTableView Sort Ordering NSNavOutlineColumnSettings.v1" = (
> > <040b7374 7265616d 74797065 6481e803 84014084 8484084e
> > 53537472 696e6701 8484084e 534f626a 65637400 8584012b 184e534e
> > 61764d6f 64446174 6546696c 6550726f 70657274 7986>,
> > 0
> > );
> > "NSToolbar Configuration DocTB" = {
> > "TB Display Mode" = 1;
> > "TB Icon Size Mode" = 1;
> > "TB Is Shown" = 1;
> > "TB Item Identifiers" = (
> > Run,
> > Stop,
> > Browse,
> > Logs,
> > "SDK Console",
> > NSToolbarSeparatorItem,
> > Edit,
> > NSToolbarFlexibleSpaceItem,
> > Deploy,
> > Dashboard
> > );
> > "TB Size Mode" = 1;
> > "TB Visibility Priority Values" = {
> > };
> > };
> > }
> > =========
>
> > "os.path.exists(os.path.join(os.path.dirname(os.__file__), 'cgi.py'))"
> > gives me a value of True.
>
> > greg
>
> > On Oct 8, 9:06 pm, "Marzia Niccolai" <[EMAIL PROTECTED]> wrote:
> > > Yet more troubleshooting requests :)
>
> > > This may be more specific than just 1.1.5 + 10.5.5 as we have cases where
> > > this installation is working.
>
> > > If you could send the results of running this command on the command
> > line:
> > > defaults read ~/Library/Preferences/com.google.GoogleAppEngineLauncher
>
> > > Also, the entire output in the Console window, such as:
> > > *** Running dev_appserver with the following flags:
> > > --admin_console_server= --port=8080 --datastore_path=/Users/name/qqqqq
> > > --debug
> > > Python command: /usr/bin/python
>
> > > And finally when you run python from the shell, what is the output of:
> > > import os
> > > os.path.exists(os.path.join(os.path.dirname(os.__file__), 'cgi.py'))
>
> > > Thanks,
> > > Marzia
>
> > > On Wed, Oct 8, 2008 at 11:30 AM, Marzia Niccolai <[EMAIL PROTECTED]>
> > wrote:
> > > > Hi,
>
> > > > Another question for those experiencing the issue - what is the output
> > when
> > > > you type 'python' in to your command line in the Mac shell?
>
> > > > Thanks,
> > > > Marzia
>
> > > > On Wed, Oct 8, 2008 at 11:19 AM, Marzia Niccolai <[EMAIL PROTECTED]>
> > wrote:
>
> > > >> Hi,
>
> > > >> I couldn't find this filed so I went ahead:
> > > >>http://code.google.com/p/googleappengine/issues/detail?id=778
>
> > > >> The scope so far seems to be limited to 10.5.5, and we'll keep you
> > updated
> > > >> on the progress. I wonder if you can still run the SDK by making the
> > > >> symlinks and running from the command line?
>
> > > >> Thanks for the troubleshooting help.
>
> > > >> -Marzia
>
> > > >> On Wed, Oct 8, 2008 at 10:39 AM, Greg <[EMAIL PROTECTED]> wrote:
>
> > > >>> I'm having the same error (on OS 10.5.5 and Launcher 1.1.5). I tried
> > > >>> explicit setting my Python path. It didn't fix the problem
>
> > > >>> Greg
>
> > > >>> On Oct 8, 5:59 pm, "Marzia Niccolai" <[EMAIL PROTECTED]> wrote:
> > > >>> > Hi,
>
> > > >>> > Thanks. Right now it seems that this is an issue specific to
> > 10.5.5 +
> > > >>> the
> > > >>> > App Engine Launcher. Since I don't have access to a 10.5.5
> > > >>> installation of
> > > >>> > Mac OS, I'd like to ask you to try one more step.
>
> > > >>> > Would it be possible for you to explicitly set the Python Path in
> > the
> > > >>> > Launcher to your python installation? Or if someone else has
> > 10.5.5 +
> > > >>> the
> > > >>> > 1.1.5 SDK if you could do this and see if it solves the issue that
> > > >>> would be
> > > >>> > appreciated.
>
> > > >>> > Thanks,
> > > >>> > Marzia
>
> > > >>> > On Wed, Oct 8, 2008 at 8:24 AM, Gijsbert <
> > [EMAIL PROTECTED]>
> > > >>> wrote:
>
> > > >>> > > Didn't read the question correctly.
> > > >>> > > Python Path in the launcher is empty. But logging sys.path still
> > > >>> > > reported the correct paths (a whole bunch of app engine paths,
> > then
> > > >>> > > the normal python2.5 paths).
>
> > > >>> > > On Oct 6, 12:59 pm, "Marzia Niccolai" <[EMAIL PROTECTED]> wrote:
> > > >>> > > > Hi,
>
> > > >>> > > > What is the Python Path that you have in your launcher?
>
> > > >>> > > > Thanks,
> > > >>> > > > Marzia
>
> > > >>> > > > On Sun, Oct 5, 2008 at 2:17 PM, Gijsbert <
> > > >>> [EMAIL PROTECTED]>
> > > >>> > > wrote:
>
> > > >>> > > > > Hi,
>
> > > >>> > > > > Since upgrading to GAE 1.1.5 my app stopped working,
> > > >>> dev_appserver.py
> > > >>> > > > > can't import cgi, urllib, traceback, etc:
>
> > > >>> > > > > <type 'exceptions.ImportError'>: No module named cgi
> > > >>> > > > > args = ('No module named cgi',)
> > > >>> > > > > message = 'No module named cgi
>
> > > >>> > > > > Importing these from python2.5 shell works fine.
>
> > > >>> > > > > It might be a MacOS (10.5.5) issue, I just ran the same app
> > on my
> > > >>> > > > > linux box and it works there (well, I could not import
> > > >>> > > > > wsgiref.handlers any more, but changing to run_wsgi_app()
> > made
> > > >>> that
> > > >>> > > > > import unnecessary).
>
> > > >>> > > > > A fix would be awesome, since my linux box is old and cranky.
>
> > > >>> > > > > Best regards,
> > > >>> > > > > Gijsbert
--~--~---------~--~----~------------~-------~--~----~
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=en
-~----------~----~----~----~------~----~------~--~---