Google App Engine Hello World Error
here for a quick overview of the site Help Center Detailed answers to value for application does not match expression any questions you might have Meta Discuss the workings and process exited with code 1 google app engine policies of this site About Us Learn more about Stack Overflow the company Business Learn more process exited with code 1 teamcity about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Cannot run a simple helloworld in gae (python 2.7) up vote 6 down vote favorite 3 I am trying to run the official helloworld program in google-appengine 1.6.4 for python 2.7. It's so frustrating to be not able to run a simple helloworld. I would appreciate any kind of help here. Error I encounter:- shadyabhi@MBP-archlinux ~/codes/gae $ dev_appserver.py helloworld/ INFO 2012-04-06 23:25:55,030 appengine_rpc.py:160] Server: appengine.google.com INFO 2012-04-06 23:25:55,034 appcfg.py:582] Checking for updates to the SDK. INFO 2012-04-06 23:25:56,709 appcfg.py:616] This SDK release is newer than the advertised release. WARNING 2012-04-06 23:25:56,710 datastore_file_stub.py:513] Could not read datastore data from /tmp/dev_appserver.datastore INFO 2012-04-06 23:25:56,773 dev_appserver_multiprocess.py:647] Running application dev~helloworld on port 8080: http://localhost:8080 INFO 2012-04-06 23:25:56,774 dev_appserver_multiprocess.py:649] Admin console is available at: http://localhost:8080/_ah/admin WARNING 2012-04-06 23:26:00,928 py_zipimport.py:139] Can't open zipfile /usr/lib/python2.7/site-packages/setuptools-0.6c11.egg-info: IOError: [Errno 13] file not accessible: '/usr/lib/python2.7/site-packages/setuptools-0.6c11.egg-info' ERROR 2012-04-06 23:26:01,101 wsgi.py:189] Traceback (most recent call last): File "/opt/google-appengine-python/google/appengine/runtime/wsgi.py", line 187, in Handle handler = _config_handle.add_wsgi_middleware(self._LoadHandler()) File "/opt/google-appengine-python/google/appengine/runtime/wsgi.py", line 239, in _LoadHandler raise ImportError('%s has no attribute %s' % (handler, name)) ImportError:
Support Partners Console Error ReportingProduct OverviewDocumentationQuickstartHow-to GuidesAll How-to GuidesSetupGoogle App EngineStandard EnvironmentFlexible EnvironmentGoogle Compute EngineAmazon EC2Formatting Error MessagesViewing ErrorsError DetailsNotificationsDeleting ErrorsAPIs & ReferenceOverviewREST APIOverviewCollectionsprojectsOverviewdeleteEventsprojects.eventsOverviewlistreportprojects.groupStatsOverviewlistprojects.groupsOverviewgetupdateOther TypesErrorContextErrorEventQueryTimeRangeServiceContextServiceContextFilterResourcesHow Errors are GroupedTroubleshooting Error ReportingProduct OverviewDocumentationQuickstartHow-to GuidesAll How-to GuidesSetupGoogle App EngineStandard EnvironmentFlexible EnvironmentGoogle Compute EngineAmazon EC2Formatting Error MessagesViewing ErrorsError DetailsNotificationsDeleting ErrorsAPIs & ReferenceOverviewREST APIOverviewCollectionsprojectsOverviewdeleteEventsprojects.eventsOverviewlistreportprojects.groupStatsOverviewlistprojects.groupsOverviewgetupdateOther TypesErrorContextErrorEventQueryTimeRangeServiceContextServiceContextFilterResourcesHow Errors are GroupedTroubleshooting http://stackoverflow.com/questions/10056861/cannot-run-a-simple-helloworld-in-gae-python-2-7 Stackdriver Error Reporting Documentation Documentation Quickstart for App Engine This page shows you how to deploy a Python App Engine application and view any error details in Stackdriver Error Reporting. Before you begin Sign in to your Google account.If you don't already https://cloud.google.com/error-reporting/docs/quickstart have one, sign up for a new account. In the Cloud Platform Console, go to the Projects page and select or create a new project. Go to the Projects page Enable billing for your project. Enable billing Install and initialize the Cloud SDK. Install Git on your workstation. Install the Python SDK for App Engine.
Deploy an App Engine app The source code for the application is in the GitHub project appengine-helloworld-python. Clone the project to your workstation: git clone https://github.com/GoogleCloudPlatform/appengine-helloworld-python.git Git returns the following message: git clone https://github.com/GoogleCloudPlatform/appengine-helloworld-python.git Cloning into 'appengine-helloworld-python'... remote: Counting objects: 49, done. remote: Total 49 (delta 0), reused 0 (delta 0), pack-reused 49 Unpacking objects: 100% (49/49), done. Checking connectivity... done. Navigate into the project directory: cd appengine-hellowoApp EngineApache AntApache MavenjQueryJava MongoDBQuartz SchedulerLog4jContact Us Google app engine Python hello world example using EclipseBy mkyong | April 3, 2012 | Updated : August 29, 2012 | Viewed : 34,238 times +106 pv/wIn this tutorial, we will show you how to use https://www.mkyong.com/google-app-engine/google-app-engine-python-hello-world-example-using-eclipse/ Eclipse to create a Google App Engine (GAE) Python web project (hello world http://archive.oreilly.com/pub/a/web-services/excerpts/9780596800697/run-google-app-linux.html example), run it locally, and deploy it to Google App Engine account.Tools used :Python 2.7Eclipse 3.7 + PyDev pluginGoogle App Engine SDK for Python 1.6.4P.S Assume Python 2.7 and Eclipse 3.7 are installed.1. Install PyDev plugin for EclipseUse following URL to install PyDev as Eclipse plugin. http://pydev.org/updates Figure 1 - In Eclipse , google app menu, "Help -> Install New Software.." and put above URL. Select "PyDev for Eclipse" option, follow steps, and restart Eclipse once completed. 2. Verify PyDevAfter Eclipse is restarted, make sure PyDev's interpreter is pointed to your "python.exe".Figure 2 - Eclipse -> Windows -> Preferences, make sure "Interpreter - Python" is configured properly. 3. Google App Engine SDK PythonDownload and install Google App Engine SDK for Python.4. Python google app engine Hello World in EclipseFollowing steps to show you how to create a GAE project via Pydev plugin.Figure 4.1 - Eclipse menu, File -> New -> Other… , PyDev folder, choose "PyDev Google App Engine Project". Figure 4.2 - Type project name, if the interpreter is not configure yet (in step 2), you can do it now. And select this option - "Create ‘src' folder and add it to PYTHONPATH". Figure 4.3 - Click "Browse" button and point it to the Google App Engine installed directory (in step 3). Figure 4.4 - Name your application id in GAE, type anything, you can change it later. And choose "Hello Webapp World" template to generate the sample files. Figure 4.5 - Done, 4 files are generated, Both ".pydevproject" and ".project" are Eclipse project files, ignore it. Review the generated Python's files :File : helloworld.py - Just output a hello world. from google.appengine.ext import webapp from google.appengine.ext.webapp.util import run_wsgi_app class MainPage(webapp.RequestHandler): def get(self): self.response.headers['Content-Type'] = 'text/plain' self.response.out.write('Hello, webapp World!') application = webapp.WSGIApplication([('/', MainPage)], debug=True) def main(): run_wsgi_app(application) if __name__ == "__main__": main() File : app.yaml - GAE need this file to run and deploy your Python project, it's quite self-explanatory, for det
The names above are the chapter authors (not the epigraph authors); please place them under the title. This appendix describes the installation of the Google App Engine Software Development Kit (SDK) on Linux, plus how to run a simple "Hello, world" application. This excerpt is from Using Google App Engine. With this book, you can build exciting, scalable web applications quickly and confidently, using Google App Engine -- even if you have little or no experience in programming or web development. Using Google App Engine provides an overview of the tools necessary to use Google App Engine, including Python, HTML, Cascading Style Sheets (CSS), and HTTP. You'll also learn what's required to deploy your applications to Google servers. The App Engine SDK allows you to run Google App Engine Applications on your local computer. It simulates the runtime environment of the Google App Engine infrastructure.Checking for PythonGoogle App Engine needs the Python interpreter to work on your system. Python comes usually preinstalled on most Linux distributions. To check whether Python is installed, open a Terminal window and type python to execute the Python interpreter:python Python 2.5.2 (r252:60911, Feb 22 2008, 07:57:53) ...The first line will show you the version of Python running on your system. Type exit() to return to the command line.If Python is not installed or you have a version other than 2.5.x, you will need to download this version (2.5) of Python from http://python.org. Check to see whether there is a package containing Python 2.5 for your Linux distribution.Download and InstallDownload the Google App Engine SDK from http://code.google.com/appengine/downloads.html; download the appropriate install package, as shown in FigureD.1, "Downloading Google Application Engine".FigureD.1.Downloading Google Application EngineIn this case, you must download the Linux package onto your computer's desktop, as shown in FigureD.2, "The App Engine package".FigureD.2.The App Engine packageDecompress the downloaded file. In FigureD.3, "Unzipping the file using File Roller", we are using File Roller to unzip the file.FigureD.3.Unzipping the file using File RollerFigureD.4, "Unzipping the file using Terminal" shows how you can also use the built-in unzip command-line tool in the Terminal application. Here we are uncompressing google_appengine_1.1.9.zip (the SDK) to our desktop folder.FigureD.4.Unzipping the file using TerminalOnce you have com