You are not logged in.

#1 2012-12-31 21:46:23

From: Hattiesburg
Registered: 2011-03-20
Posts: 497

Google app engine doesn't work using python2

I downloaded the app engine from the site and tried to use it with python2 but it would not work. So I found the app engine package from AUR and installed that. I put the python command into the terminal pointing to the directory I have all of my website files and I get this error:

$ /home/ricky/Dropbox/Linux/Programming/HTML/
WARNING  2012-12-31 21:32:53,605] The rdbms API is not available because the MySQLdb library could not be loaded.
INFO     2012-12-31 21:32:54,291] Checking for updates to the SDK.
INFO     2012-12-31 21:32:55,147] The SDK is up to date.
WARNING  2012-12-31 21:32:55,147] The datastore file stub is deprecated, and
will stop being the default in a future release.
Append the --use_sqlite flag to use the new SQLite stub.

You can port your existing data using the --port_sqlite_data flag or
purge your previous test data with --clear_datastore.

WARNING  2012-12-31 21:32:55,149] Could not read datastore data from /tmp/dev_appserver.datastore
WARNING  2012-12-31 21:32:55,153] Could not read search indexes from /tmp/dev_appserver.searchindexes
WARNING  2012-12-31 21:32:55,196] Could not initialize images API; you are likely missing the Python "PIL" module. ImportError: No module named _imaging
Traceback (most recent call last):
  File "/usr/bin/", line 171, in <module>
    run_file(__file__, globals())
  File "/usr/bin/", line 167, in run_file
    execfile(script_path, globals_)
  File "/opt/google-appengine-python/google/appengine/tools/", line 747, in <module>
  File "/opt/google-appengine-python/google/appengine/tools/", line 710, in main
  File "/opt/google-appengine-python/google/appengine/tools/", line 3952, in CreateServer
    server = HTTPServerWithScheduler((serve_address, port), handler_class)
  File "/opt/google-appengine-python/google/appengine/tools/", line 3979, in __init__
  File "/usr/lib/python2.7/", line 408, in __init__
  File "/usr/lib/python2.7/", line 108, in server_bind
  File "/usr/lib/python2.7/", line 419, in server_bind
  File "/usr/lib/python2.7/", line 224, in meth
    return getattr(self._sock,name)(*args)
socket.gaierror: [Errno -2] Name or service not known

I have a file in that directory along with the .yaml file:


import webapp2

class MainPage(webapp2.RequestHandler):
    def get(self):
        self.response.headers['Content-Type'] = 'text/plain'
        self.response.write('Hello, webapp2 World!')
app = webapp2.WSGIApplication([('/', MainPage)], debug=True)


application: thoughtsofageographer
version: 1
runtime: python27
api_version: 1
threadsafe: yes

- url: /.*

- name: webapp2
  version: "2.5.2"

I have python(3) installed and the newest python2 package installed. I am not sure if this is a problem with the google app package itself or python or if one of these files are coded wrong.


#2 2013-01-04 00:34:14

From: Hattiesburg
Registered: 2011-03-20
Posts: 497

Re: Google app engine doesn't work using python2

Has anyone else experienced this problem with the google app engine?


Board footer

Powered by FluxBB