I'm new to the Google App Engine, so I just followed the verification process for an application that just prints "hello world."
(as per Google App Engine documentation)
The project folder name is "GoogleApp"
This is my Python file:
File name: sayHello.py
def main():
print "hello"
pass
if __name__ == '__main__':
main()
This yaml file
File Name: app.yaml
application: GoogleApp
version: 1
runtime: python27
api_version: 1
threadsafe: true
handlers:
- url: /.*
script: sayHello.py
When I just start a project in the Google App Engine Launcher, this is a log error that I get
2012-04-19 10:52:23 Running command: "['C:\\Python27\\pythonw.exe', 'C:\\Program Files\\Google\\google_appengine\\dev_appserver.py', '
Traceback (most recent call last):
File "C:\Program Files\Google\google_appengine\dev_appserver.py", line 125, in <module>
run_file(__file__, globals())
File "C:\Program Files\Google\google_appengine\dev_appserver.py", line 121, in run_file
execfile(script_path, globals_)
File "C:\Program Files\Google\google_appengine\google\appengine\tools\dev_appserver_main.py", line 157, in <module>
from google.appengine.tools import appcfg
File "C:\Program Files\Google\google_appengine\google\appengine\tools\appcfg.py", line 41, in <module>
import mimetypes
File "C:\Python27\lib\mimetypes.py", line 29, in <module>
import urllib
File "C:\Python27\lib\urllib.py", line 26, in <module>
import socket
File "C:\Python27\lib\socket.py", line 47, in <module>
import _socket
ImportError: Module use of python25.dll conflicts with this version of Python.
2012-04-19 10:52:25 (Process exited with code 1)
Actually, I am using Python 2.7. The above log says python25.dll is conflicting with the python version.
I don’t know what exactly this means, but I could understand that
- It should only support python 2.5, or
- This I had to use python 2.5 code.
, Google 2.7, , .
, .