Can't run helloworld of Google App Engine (python 2.7)

I looked and searched for the bug and found the post. -> See comment 29
But, it seems that it's still not fixed in google-appengine 1.6.4 for python 2.7.
The exact error is: (Trying to run the helloworld given in docs)
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'
Full terminal output:
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: <module 'helloworld' from '/home/shadyabhi/codes/gae/helloworld/helloworld.pyc'> has no attribute app
INFO 2012-04-06 23:26:01,110 dev_appserver.py:2884] "GET / HTTP/1.1" 500 -
ERROR 2012-04-06 23:26:01,479 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: <module 'helloworld' from '/home/shadyabhi/codes/gae/helloworld/helloworld.pyc'> has no attribute app
INFO 2012-04-06 23:26:01,486 dev_appserver.py:2884] "GET /favicon.ico HTTP/1.1" 500 -
Any kind of help would be highly appreciated.
Last edited by shadyabhi (2012-04-07 15:46:54)

If you're using python2.7 libraries there's an error with the tutorial
This line is incorrect:
application = webapp2.WSGIApplication([('/', MainPage)], debug=True)
The correct line should be:
app = webapp2.WSGIApplication([('/', MainPage)], debug=True)
If it is asking for an "app" attribute, your code helloworld must have this attribute.
See http://stackoverflow.com/questions/1005 … python-2-7

Similar Messages

  • Google app engine python SDK not working

    I installed the google-appengine-python package in the AUR and followed the app engine hello world example.https://developers.google.com/appengine … helloworld
    Then I start the server with the command
    dev_appserver.py .
    , here is the output:
    WARNING 2013-04-01 09:39:42,671 api_server.py:328] Could not initialize images API; you are likely missing the Python "PIL" module.
    INFO 2013-04-01 09:39:42,674 api_server.py:152] Starting API server at: http://localhost:47061
    INFO 2013-04-01 09:39:42,694 dispatcher.py:98] Starting server "default" running at: http://localhost:8080
    INFO 2013-04-01 09:39:42,701 admin_server.py:117] Starting admin server at: http://localhost:8000
    It seemed everything worked fine but when I tried to access the urls, the connection was rejected with the code  Error 102 (net::ERR_CONNECTION_REFUSED): The server refused the connection.  It seemed the server didn't start at all.
    I also tried to download the official zip package from google and it didn't work either.....
    So, anyone can help me? Thanks in advance.

    Hello all,
    The thing that wished to be done in this thread is also the one of the questions that I wonder much about its answer.
    As asked above, I would like to learn if it is possible to build a connection between "Google App Engine" and SAP. If it seems possible to do that, what would be the potential way for building that connection? Which steps do we have to follow? Could anyone advice something for that?
    Thanks and regards,
    Mustafa

  • JavaFX to access Google Apps Engine database

    Hi,
    I have developed JavaFX browser application which needs to access Google Apps Engine database. Please help me to find way to access it.

    Hi,
    In javafx you can use java. So for example use can use Java Google App Engine. Look this http://www.wowebook.com/java/beginning-java-google-app-engine.html.
    One more interesting link http://www.java-javafx.com/2010/05/graphical-counter-on-gaej-google-app.html
    Edited by: prodesFx on Feb 22, 2011 11:06 AM

  • Integration with Google App Engine on iPhone

    Has anyone made an iPhone app that integrates with Google App Engine? Are there any restrictions on doing this?
    I have working python code for the client side, including authentication and sharing data, I'm thinking of migrating that code to Objective-C. Wanted to make sure it's OK and see what other people think.

    That's a good point, I was thinking my app would probably not be super popular, but I have no idea. A rough estimate of my app's behavior against the quotas gives me theoretically 65000 active users per day (limiting factor is HTTPRequest quota).
    In any case I am hardcoding a domain name that I own into the app. The server side code is also pretty simple, so if the quotas became a problem I can migrate to EC2 without too much code rewriting. Hopefully.

  • Sending request from sap to google app engine

    Hi All,
    How to send request from sap to google app engine?.
    Regards
    Ramesh

    Hi Mark,
    Could not get which push button you have mentioned.I'm using the HTTP2_POST FM to send the request to google app engine.There is java code running on google app engine which has servlet request method getting request body from HTTP2_POST and in return java sends response to SAP using servlet response.The reponse comes in xml type text.When the request is sent to the google app engine there is no log update on the engine site when the request is sent;there is error on sap side at the time of response as there is no suitable data coming.
    Regards
    Ramesh

  • How can I change the default Google search engine in Firefox 8 from google.fr to google.co.uk? Yes, I live in France with a French ISP, but English is my mother tongue and I want UK based responses.

    How can I change the default Google search engine in Firefox 8 from google.fr to google.co.uk? Yes, I live in France with a French ISP, but English is my mother tongue and I want UK based responses.
    I'm using XP Pro.

    You can find search engines on the Mycroft Project website.
    * http://mycroft.mozdev.org/
    * http://mycroft.mozdev.org/google-search-plugins.html

  • Google App Engine (GAE) Hosted FDF Form Submittal Server

    Hello, Everyone. Any ideas on how to deploy a php FDF server on Google App Engine? See alexlunnon/fdf-server · GitHub

    Hello,
    I probe in the web.xml file to set the value "client" in the statement that indicated below. When using "server" error occurred on your show.
    <!-- ***** Designate server-side state saving. ***** -->
    <context-param>
    <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
    <param-value>client</param-value>
    </context-param>
    .

  • BlazeDS + Google App Engine

    Hi Guyz,
    BlazeDS is not working with Google App Engine. Although their is a quick fix provided by Martin Zoldano (http://martinzoldano.blogspot.com/2009/04/appengine-adobe-blazeds-fix.html ).
    Is their any plan for an official release with a fix for Google App Engine compatability?
    Thanks.

    Hi. There is no plan for this that I am aware of. I logged a feature request to add support for GAE which will get the issue on someone's radar.
    http://bugs.adobe.com/jira/browse/BLZ-444
    The fix does look pretty small so may be possible to get this added at some point but we'd probably also want to do some additional testing with GAE.
    -Alex

  • Running Connected Query with Run Control Parameters using App Engine

    Hello,
    I created a connected query that has 1 parent query and 1 child query, and use this as DataSource for the report that I am going to generate. I created an app engine that willl be called to generate this report. However, I encounter the error "Error occurred while processing the request. (228,101) PT_CONQRS.CONQRSMGR.OnExecute Name:GetXMLData PCPC:59072 Statement:1309". What could be causing this issue? One cause I am thinking is that the Connected Query not returning any data since I am not able to pass / map the values to the CQ's prompt fields. How is this done in CQ? I've done it in PS Query by using the function SetPSQueryPromptRecord+. I'm trying to search for this function's equivalent in CQ. I was able to search for a workaround (http://mfinchps.blogspot.com/2011/05/how-to-launch-connected-query-xml.html), but I still prefer to have a CQ data source.
    Below is the code that should handle mapping of CQ prompt fields:
    &oConQrsInst = create PT_CONQRS:CONQRSMGR(&OperId, &ReportName);
    &result = &oConQrsInst.Open(&oConQrsInst.Const.InitExisting);
    &CQPromptsArray = &oConQrsInst.QueriesPromptsArray;
    &rcdQryRunParms = CreateRecord(@&PromptRec);
    &sqlSelectQryParms = CreateSQL("%Selectall(:1) WHERE OPRID = :2 AND RUN_CNTL_ID = :3");
    &sqlSelectQryParms.Execute(&rcdQryRunParms, &OperId, &RunControlId);
    /*Loop through the Connected Query "Queries" and fill in each query's prompts as needed*/
    For &arrCtr = 1 To &CQPromptsArray.Len
    &rcdQryPrompts = &CQPromptsArray.Get(&arrCtr).QueryPromptRecord;
    For &i = 1 To &rcdQryPrompts.FieldCount
    While &sqlSelectQryParms.Fetch(&rcdQryRunParms)
    If &rcdQryPrompts.GetField(&i).Name = &rcdQryRunParms.GetField(Field.BNDNAME).Value Then
    &rcdQryPrompts.GetField(&i).Value = &rcdQryRunParms.GetField(Field.BNDVALUE).Value;
    Break;
    End-If;
    End-While;
    End-For;
    &sqlSelectQryParms.Close();
    End-For;
    rem &oRptDefn.SetPSQueryPromptRecord(&rcdQryPrompts);  -> need to have equivalent of this+
    &oConQrsInst.Close();
    Thanks!
    Janet

    i think you have run the code to generate the XML file from your connected query...
    check the following things
    1. Check the Report definition is defined or not for the file that you want generate.
    2. if its defined check the RTF template is present or not.
    3.Check your code in Appengine whether you have mentioned the Report Definition and template name,

  • Can't setup an exist google app account in Thunderbird

    I use macbook, with os 10.9.5.
    My email account is provide by google app,
    I can login on web Gmail, and Mac's mail box.
    But I just can't login with same account and password when I setup Thunderbird.
    (BTW, my another gmail account can setup successfully on Thunderbird.)

    Hi Ratboy,
    Did you go into keychain access manager and just delete that particular keychain entry all together? Might as well at this point to make sure there isn't some odd saved information that's getting called upon and failing the authentication.
    In mail, is the account configured as IMAP or POP? If it's IMAP, I'd go ahead and delete the account and recreate it. If it's POP, I'd go into ~/Library/Mail (copy the folder's content to your Desktop) then delete the account and recreate it.

  • Can I read gmail and Google Apps mail?

    hi
    I am yet to upgrade to iOS 4.2 on my iPhone. I have a Gmail and a Google Apps mail account.
    Can I configure iPhone to receive both these emails? If so, when I reply to mails I need it to have respective return email addresses, signatures
    regards
    Mahesh

    I forgot to write that if I read an email on my phone it actually eventually shows as read on my computer, which makes this even more puzzling...!

  • Can i run find my iphone app on my windows laptop

    Can I run the find my phone app from my windows PC laptop?

    Yes as long as you have iCloud activated on your phone already, and the 'find my iPhone' option (under iCloud) enabled.  If so, just sign into www.icloud.com.  Find my iPhone is an option on there.

  • Can I run a Java based app on an IPAD2 like JMRI Decoder-Pro?

    I have an IPAD2 64GB Wi-Fi+3G. Can I run a JAVA based application known as JMRI Decoder-Pro? It is a Model Railroad suite of control applications that are JAVA based which provide online Train and alyout control via IPHONEs, Droids, Macs etc.

    Hi,
    I don't have an iPad.
    You have posted in the iChat Forum Community.
    iChat does not run on an iPad.
    (ergo: I know nothing).
    Try posting here  (top level of iPad's area)
    8:53 PM      Thursday; June 16, 2011
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb( 10.6.7)
     Mac OS X (10.6.7),
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • Can you run SCO UNIX platform apps on 10.4?

    Just wodering if it is possible to run SCO UNIX platform apps on a Mac?
    I have 2 applications designed to run on SCO UNIX and I would be interested to see how they work.
    I don't know anything about the us of UNIX BTW
    G4   Mac OS X (10.4.4)  

    Hi Atlantean,
       It's certainly not possible to run a precompiled binary and SCO isn't exactly known for their open source community spirit. They'd probably sue you. I'm a little surprised that you'd mention them in polite company.
    Gary
    ~~~~
       "Spare no expense to save money on this one."
             -- Samuel Goldwyn

  • Can't type in standard google search engine

    I'm a UK expat living in China.  I've set my homepage to be google.co.uk, but I am unable to type in the search engine search box.  As soon as I type even 2 letters, it automatically fills in the address bar and searches based on that.  The only way I'm able to do a search is by typing my question in the address bar, but that takes me to google.com.hk which gives completely different hits to the UK google.  Any ideas how to solve this? Thanks.

    Perhaps it has been 'fixed' by your Chinese ISP, but:
    If you want to fix your Google search to a specific Google location, or a specific search engine, I recommend that you download and install the free plug-in Glims:
    http://www.machangout.com/
    which not only does that but much more equally useful stuff! Such as enabling Safari to run full-screen, and more.)
    (It adds items to Safari Preferences).
    Not only does it already list a number of search engines and regions, but you can also add any other search engine not already listed in Glims by using the method described here:
    http://www.machangout.com/tutorials/addsearchengine
    Just enter the name you give the search engine in the name field, and the URL for it in the Query URL field.

Maybe you are looking for

  • Cannot send mail from Iphone using Verizon e-mail

    I just switched from Comcast to Verizon as my internet provider, and although I can receive my Verizon e-mail on my Iphone, I can not send e-mail. I get an error "can not send mail" "The sender address was invalid". I have checked all the settings, a

  • Boot Camp 2.1 will not install in Windows 7 beta 1

    I have installed the 32-bit Windows 7 beta 1 on my MacBook using Boot Camp 2.0. I cannot for the life of me get the 2.1 update installed. After downloading in Windows, I run the setup and it asks me if it's okay to allow that file to make changes to

  • J2ME client server

    Hi i have a client J2ME application written verifyed and running. I am a little new to the whole programming thing but I was wondering if anybody knew if it was possible to use JSP or a servlet to distribute an application like a quiz on my server, p

  • Delete generated document number of Transaction ABAVN

    Hi, My problem is that user run the BDC for ABAVN - Asset Retirement, inplace of F-92 BDC with correct file (means with F-92 flat file). After that system shows 1 generated number is 0100003616. How can i reverse/ delete this genertaed number. Becaus

  • New window opening for only one standard ESS service

    hi everyone,      I am facing a problem with only one standard service Org chart. All other services like who's who , change own data are opening in same portal window. but when i click OrgChart its opening in other window. what could be the problem