Helloworld creates new folder and main.py

53 views
Skip to first unread message

Wayne Cordrey

unread,
May 21, 2015, 1:26:12 PM5/21/15
to google-a...@googlegroups.com
I created c:/helloworld and created files helloworld.py and app.yaml using Sublime (copy paste).  I launched in GAE Launcher, and instead of running helloworld, GAE is creating a new helloworld folder inside helloworld directory.  In that folder it created app.yaml, favicon.ico, index.yaml, main.py and main.pyc.  
It runs the main.py file, and if I change the text in main.py it updates in the browser.  Changes to helloworld.py that I created don't show up.  

My log is: 
2015-05-21 10:17:02 Running command: "['C:\\Python27\\pythonw.exe', 'C:\\Program Files (x86)\\Google\\google_appengine\\dev_appserver.py', '--skip_sdk_update_check=yes', '--port=8080', '--admin_port=8000', 'C:\\helloworld\\helloworld']"
INFO     2015-05-21 10:17:05,115 devappserver2.py:745] Skipping SDK update check.
INFO     2015-05-21 10:17:05,288 api_server.py:190] Starting API server at: http://localhost:16408
INFO     2015-05-21 10:17:05,288 dispatcher.py:192] Starting module "default" running at: http://localhost:8080
INFO     2015-05-21 10:17:05,288 admin_server.py:118] Starting admin server at: http://localhost:8000
INFO     2015-05-21 10:17:32,005 module.py:788] default: "GET / HTTP/1.1" 200 5

I can't figure this out.  I think its supposed to run the helloworld.py that I created, and not create a new folder and file.  Did I somehow click some setting or not configure something?  


Vinny P

unread,
May 22, 2015, 12:13:25 AM5/22/15
to google-a...@googlegroups.com
On Thu, May 21, 2015 at 12:26 PM, Wayne Cordrey <wayne...@gmail.com> wrote:
I launched in GAE Launcher, and instead of running helloworld, GAE is creating a new helloworld folder inside helloworld directory.  In that folder it created app.yaml, favicon.ico, index.yaml, main.py and main.pyc.  
It runs the main.py file, and if I change the text in main.py it updates in the browser. 

My log is: 2015-05-21 10:17:02 Running command: "['C:\\Python27\\pythonw.exe', 'C:\\Program Files (x86)\\Google\\google_appengine\\dev_appserver.py', '--skip_sdk_update_check=yes', '--port=8080', '--admin_port=8000', 'C:\\helloworld\\helloworld']"
I can't figure this out.  I think its supposed to run the helloworld.py that I created, and not create a new folder and file.  Did I somehow click some setting or not configure something?  



The log you pasted in shows that the launcher is running the C:/helloworld/helloworld application (in other words, the application in the "new" nested directory) so you're correct, it's not running your application.

When you go to File -> Add Existing Application in the launcher, can you screenshot your view there and the Launcher view when you finish adding the application?

 
 
-----------------
-Vinny P
Technology & Media Consultant
Chicago, IL

App Engine Code Samples: http://www.learntogoogleit.com

Wayne Cordrey

unread,
May 22, 2015, 4:07:52 PM5/22/15
to google-a...@googlegroups.com
Well, I feel really dumb, but a friend gently pointed out that I was creating a NEW application by pressing the '+' button at the bottom of the screen instead of using File>>Add Existing to launch my existing application.  This was of course doing what it's supposed to- creating a NEW application.  When I used File>>AddExisting it worked fine.   But it would be worth pointing out to those who use the Hello World tutorial that they should use File>>AddExisting when then use the Launcher.   
Thanks for your quick reply!    
Reply all
Reply to author
Forward
0 new messages