May 12, 2011 at 11:47 PM
Edited Jul 18, 2011 at 9:33 PM
Hi. this is not a bug. The output you are seeing contains only WARNING and INFO messages, but no errors.
I implemented the "helloworld" application from
File -> New -> Project -> Python Application
Rename Program.py -> helloworld.py and cut and paste Google's sample code
Right click on project helloworld -> Add -> New Item -> Text File
Cut/paste Goole's sample app.yaml code
Right click on project helloworld -> Properties
- Debug -> Search Paths -> C:\google_appengine\;C:\Temp\helloworld\
- Debug -> Command Line Arguments -> c:/temp/helloworld
- General -> Startup File: c:/google_appengine/dev_appserver.py
- General -> Working Directory: c:\temp\helloworld
- General -> Interpreter: Python 2.5
Put breakpoint on line 2 of helloworld.py
Debug -> Start Debugging
Open Browser, navigate to http://localhost:8080
You will break on an unhandled ZipImportError. The first time you hit the exception in the debugger, click "Break". Open up Debug->Exceptions, click "Add". Select "Python Exception". Paste in the exact name of the exception you want to ignore, namely
google.appengine.dist.py_zipimport.ZipImportError and click "OK". Make sure this exception is unchecked in the Exceptions dialog box (it defaults to checked), and click "OK". In the debugger, do Debug->Continue (or press F5). The project
should begin executing and skip breaking at all the other places the ZipImportError is thrown.
--> Breakpoint is hit in helloworld.py
--> Press the "Go" arrow and execution continues
Result in Browser: "Hello, World!"
Result in console window:
WARNING 2011-05-12 22:39:52,773 urlfetch_stub.py:106] No ssl package found. urlfetch will not be able to validate SSL certificates.
INFO 2011-05-12 22:39:53,117 appengine_rpc.py:158] Server: appengine.google.com
WARNING 2011-05-12 22:39:53,148 datastore_file_stub.py:655] Could not read datastore data from c:\users\johncos\appdata\local\temp\dev_appserver.datastore
INFO 2011-05-12 22:39:53,148 rdbms_sqlite.py:58] Connecting to SQLite database '' with file 'c:\\users\\johncos\\appdata\\local\\temp\\dev_appserver.rdbms'
WARNING 2011-05-12 22:39:53,148 dev_appserver.py:4394] Could not initialize images API; you are likely missing the Python "PIL" module. ImportError: No module named _imaging
INFO 2011-05-12 22:39:53,210 dev_appserver_main.py:543] Running application helloworld on port 8080: http://localhost:8080
INFO 2011-05-12 22:40:13,512 dev_appserver.py:3951] "GET / HTTP/1.1" 200 -
- I don't have an ssl package installed, and I don't have PIL installed, which explains warnings 1 and 3.
- I haven't made an app that attempts to write to the appserver datastore, which is why there is no datastore under c:\users\johncos\appdata\local\temp