[google-appengine] Re: failed to connect to localhost

2008-11-21 Thread Marzia Niccolai
Hi Brian,

This is really strange, it seems like everything should work.  Maybe if you
try installing PIL to get the import to work (it should fail gracefully, I'm
not sure why it isn't...).

PIL installation instructions are here:
http://code.google.com/appengine/docs/images/installingPIL.html#windows

Also, what version of the SDK are you using?  Have you tried upgrading to
1.1.7?

Thanks,
Marzia

On Fri, Nov 21, 2008 at 5:37 AM, Brian <[EMAIL PROTECTED]> wrote:

>
> Ok, this is driving me crazy. I've been trying to get "hello world" to
> work in GAE for a couple of days now. Enough is enough. I can get
> helloworld.py to run at the command prompt, but I cannot get it to run
> at localhost. Is there some other setting I need to adjust to get
> localhost working?
>
> I have tried in both Firefox and IE7.
> I've installed Python 2.5. I'm on Windows XP.
> I have the following Enviromental Variables:
> PATHC:\Program Files\Google\google_appengine\   [for my account]
> PATHC:\Python25   [for system variables]
>
> Here is my command prompt and results:
> C:\Program Files\Google\google_appengine>dev_appserver.py demos/hello
> INFO 2008-11-21 13:24:17,312 appcfg.py] Server:
> appengine.google.com
> INFO 2008-11-21 13:24:17,328 appcfg.py] Checking for updates to
> the SDK.
> WARNING  2008-11-21 13:24:17,453 datastore_file_stub.py] Could not
> read datastore data from c:\docume~1\bdelega\locals~1\temp
> \dev_appserver.datastore
> WARNING  2008-11-21 13:24:17,453 datastore_file_stub.py] Could not
> read datastore data from c:\docume~1\bdelega\locals~1\temp
> \dev_appserver.datastore.history
> WARNING  2008-11-21 13:24:17,453 dev_appserver.py] Could not
> initialize images API; you are likely missing the Python "PIL" module.
> ImportError: No module named images
> ERROR2008-11-21 13:24:17,453 dev_appserver_main.py]  'exceptions.ImportError'>: No module named images
>
> Hello world is in C:\Program Files\Google\google_appengine\demos
> \hello. This folder contains hellworld.py and app.yaml.
>
> Helloworld.py contents:
>print 'Content-Type: text/plain'
>print ''
>print 'Hello, world!'
>
> App.yaml contents:
> application: helloworld
> version: 1
> runtime: python
> api_version: 1
>
> handlers:
> - url: /.*
>  script: helloworld.py
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: failed to connect to localhost

2008-11-24 Thread A . TNG

On Fri, Nov 21, 2008 at 9:37 PM, Brian <[EMAIL PROTECTED]> wrote:
>
> Helloworld.py contents:
>print 'Content-Type: text/plain'
>print ''
>print 'Hello, world!'
>

Hi Brian,

Are you sure your helloworl.py is correct? Check the appengine
installation folder (C:\Program Files\Google\google_appengine). There
is a folder naming "new_project_template".

Just open your command line window and change folder to "C:\Program
Files\Google\google_appengine\new_project_template". Then execute
"dev_appserver.py .". At last, access http://localhost:8080/ with
firefox/IE or whatever. You will get your helloworld.

-- 
Best Regards,
TANG Jiyu (Blog: http://jiyu.wordpress.com.cn)

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: failed to connect to localhost

2008-12-20 Thread Brian Delegan
I can get helloworld to work from the command prompt... just not localhost.
app.yaml was copied from the example and used notepad to author. It seems
like it runs ok but localhost does not work. If I change to incorrect syntax
in app.yaml, I do get an error message when I try to run from cmd.

I did try to copy the files to new_project_template but that did not do the
trick. I also tried running the app in new_project_template. No luck.

Forgot to mention before posting, but I did install PIL.

I tried over a span of a week or so with several full reboots.

Anyway, I stopped trying for a couple of weeks and then came back to it.
Magically, it works now.

On Mon, Nov 24, 2008 at 8:30 AM, A. TNG  wrote:

>
> On Fri, Nov 21, 2008 at 9:37 PM, Brian  wrote:
> >
> > Helloworld.py contents:
> >print 'Content-Type: text/plain'
> >print ''
> >print 'Hello, world!'
> >
>
> Hi Brian,
>
> Are you sure your helloworl.py is correct? Check the appengine
> installation folder (C:\Program Files\Google\google_appengine). There
> is a folder naming "new_project_template".
>
> Just open your command line window and change folder to "C:\Program
> Files\Google\google_appengine\new_project_template". Then execute
> "dev_appserver.py .". At last, access http://localhost:8080/ with
> firefox/IE or whatever. You will get your helloworld.
>
> --
> Best Regards,
> TANG Jiyu (Blog: http://jiyu.wordpress.com.cn)
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---