I'm having the same problem on Windows Vista (Python 2.5.4) using the
latest GEA (1.1.9) and following the instructions on
http://code.google.com/intl/nl/appengine/docs/python/gettingstarted/helloworld.html.

Cheers,
Marcel


On 3 apr, 17:23, Tim Hoffman <[email protected]> wrote:
> Hi Chris
>
> Can you try running  the dev_appserver.py by specifying python first
> (I note in all you examples you don't do that)
>
> ie
>
> cd   /home/chris/helloworld
> python ~/google_appengine/dev_appserver.py .
>
> Also open up thefile/home/chris/google_appengine/google/appengine/
> tools/
>
> > dev_appserver.py in an editor and look at line 1319
>
> It should be as follows
>
>         source_file, pathname, description = result
>
> If you do a sum on thefile
>
> sum /home/chris/google_appengine/google/appengine/tools/
> dev_appserver.py
>
> you should get a value of
>
> 04413   103
>
> This is a simple checksum
> If it doesn't match I would say you need to refetch the the zip.
>
> T
>
> On Apr 3, 11:09 pm, bobdob <[email protected]> wrote:
>
>
>
> > Thanks for the update Tim, yeah this is really weird, and causing me
> > much frustration and sleep loss! But I willnotgive up...
>
> > I have tried literally everything I can think of at this point, from
> > moving the "helloworld" directory to different locations
> > ("google_appengine" directory, home directory ("/home/chris/") and
> > Desktop). I have tried just about every syntax possibility in the
> > command line, even ones that don't make any sense, and nothing works.
>
> > I'mnotsurprised you were able to get it working, I seem to be the
> > only one with any difficulty. I'm running Ubuntu 8.10 (just installed
> > updates) and using AppEngine SDK 1.1.9
>
> > The app.yamlfilemay be the issue then. The permissions look ok
> > though, so I don't know what the big deal is. I read the other day
> > that Gedit doesn't have native support for yaml but I created versions
> > of app.yaml (with the exact same content) in both Vim and Emacs, both
> > of which (I believe) support it, and neither of those versions made
> > any difference.
>
> > Pardon my ignorance (I'm brand-new to Linux) but where should I look
> > for my dev directory, or is that another term for the working
> > directory? (or is that just a directory you created?) Should I place
> > the "google_appengine" directory in the dev directory (~/dev/
> > google_appengine/)?
>
> > My home directory is /home/chris/ and that is exactly where I have my
> > "helloworld" directory located (/home/chris/helloworld/).
> > "google_appengine" is also in my home directory (/home/chris/
> > google_appengine) so when I run google_appengine/dev_appserver.py
> >helloworld/ as it says to do in the tutorial, from my working
> > directory (/home/chris/) i get the strange
>
> > ch...@chris-laptop:~$ google_appengine/dev_appserver.pyhelloworld/
> > Traceback (most recent call last):
> >  File"google_appengine/dev_appserver.py", line 60, in <module>
> >     run_file(__file__, globals())
> >  File"google_appengine/dev_appserver.py", line 57, in run_file
> >     execfile(script_path, globals_)
> >  File"/home/chris/google_appengine/google/appengine/tools/
> > dev_appserver_main.py", line 463, in <module>
> >     sys.exit(main(sys.argv))
> >  File"/home/chris/google_appengine/google/appengine/tools/
> > dev_appserver_main.py", line 385, in main
> >     SetGlobals()
> >  File"/home/chris/google_appengine/google/appengine/tools/
> > dev_appserver_main.py", line 83, in SetGlobals
> >     from google.appengine.tools import dev_appserver
> >  File"/home/chris/google_appengine/google/appengine/tools/
> > dev_appserver.py", line 1319
> >     source_file, pathname, descript ex = result
> >                                      ^
> > SyntaxError: invalid syntax
>
> > I also get the exact same error when i run "google appengine/
> > dev_appserver.py ./helloworld/" (without quotes). How is my syntax
> > invalid? That's what's frustrating me. I either get this or I get the
> > "Applicationconfigurationnotfound" error (when I put the
> > "helloworld" directory in the "google_appengine" directory for
> > instance). I have never gotten any other result than those two error
> > messages. I spent an hour or so last night going through Synaptic
> > making sure I had all the proper Python 2.5.2 packages installed (gtk,
> > yaml parsers, etc.) and sure enough, didn't help at all.
>
> > Like I said, I don't want to give up, but I really want to use
> > AppEngine (on Ubuntu) for a project. Is there anything else I can do?
>
> > On Apr 3, 6:12 am, Tim Hoffman <[email protected]> wrote:
>
> > > Ok
>
> > > I am running Ubuntu 8.10 (actually xubuntu)
>
> > > I went through thehelloworldexcercise cutting and pasting you code
> > > and it all worked.
>
> > > I only get that errorERROR:root:Applicationconfigurationfilenot
> > >foundin ./helloworld
> > > when no app.yaml is in the directory.  Invalied
>
> > > You should check the permissions of both app.yaml (I am sure it is
> > > fine)
> > > You won't get this error if thehelloworld.py is missing. You also
> > > won't get this specific error (Applicationconfigurationfilenot
> > >foundin ./helloworld)  is thefileis there and empty.
>
> > > When starting the dev server I personally always cd to my dev
> > > directory and then run the server as follows
>
> > > python ~/google_appengine/dev_appserver.py .
>
> > > This assumes google_appengine is in my home directory.
>
> > > From the error I think maybe you current working directory isnotyou
> > > home directory wherehelloworld.
>
> > > Hope this helps
>
> > > Rgds
>
> > > Tim
>
> > > On Apr 3, 12:07 pm, bobdob <[email protected]> wrote:
>
> > > > This is what myhelloworld.py looks like:
>
> > > > print 'Content-Type: text/plain'
> > > > print "
> > > > print 'Hello, world!'
>
> > > > On Apr 2, 11:43 pm, Tim Hoffman <[email protected]> wrote:
>
> > > > > Ok can you how ushelloworld.py
>
> > > > > T
>
> > > > > On Apr 3, 9:19 am, bobdob <[email protected]> wrote:
>
> > > > > > Here's the app.yamlfile:
>
> > > > > > application:helloworld
> > > > > > version: 1
> > > > > > runtime: python
> > > > > > api_version: 1
>
> > > > > > handlers:
> > > > > > - url: /.*
> > > > > >   script:helloworld.py
>
> > > > > > And the "helloworld" directory contains only the files "app.yaml" 
> > > > > > and
> > > > > > "helloworld.py" (both written according to the AppEngine docs)
>
> > > > > > Thanks
>
> > > > > > On Apr 2, 8:23 pm, Tim Hoffman <[email protected]> wrote:
>
> > > > > > > Can you include the contents of you app.yaml
>
> > > > > > > And list the contents ofhelloworlddirectory
>
> > > > > > > T
>
> > > > > > > On Apr 3, 7:35 am, bobdob <[email protected]> wrote:
>
> > > > > > > > Thanks for the quick reply Tim, I tried your suggestion (I left 
> > > > > > > > the
> > > > > > > > "helloworld" directory in the "google_appengine" directory for 
> > > > > > > > now,
> > > > > > > > just to make sure I could get it up and running before I move 
> > > > > > > > the
> > > > > > > > "helloworld" directory).
>
> > > > > > > > Unfortunately, things are stillnotworking out. I must be doing
> > > > > > > > something wrong because I'm following the tutorial exactly as
> > > > > > > > described in the docs and everyone says it's the easiest thing 
> > > > > > > > (and it
> > > > > > > > looks like they're all right).
>
> > > > > > > > I'm currently typing and getting the following in my terminal:
>
> > > > > > > > ch...@chris-laptop:~$ google_appengine/dev_appserver.py 
> > > > > > > > ./helloworld
> > > > > > > >ERROR:root:Applicationconfigurationfilenotfoundin ./helloworld
>
> > > > > > > > What I've noticed is that my "app.yaml"filesays it's a plain 
> > > > > > > > text
> > > > > > > > document in the "properties" so maybe the appengine SDK isn't
> > > > > > > > recognizing it as the necessaryconfigurationfileand throws that
> > > > > > > > error message? I've tried creating thefilefrom scratch and 
> > > > > > > > saving it
> > > > > > > > from 3 different text editors: gedit, gvim, and emacs and none 
> > > > > > > > seem to
> > > > > > > > produce any different results. Any help would be greatly 
> > > > > > > > appreciated
>
> > > > > > > > Thanks
>
> > > > > > > > On Apr 2, 3:15 am, Tim Hoffman <[email protected]> wrote:
>
> > > > > > > > > For starters you command line as listed below says
>
> > > > > > > > > google_appengine/dev_appserver.py /helloworld
>
> > > > > > > > > But you said you puthelloworldin the google_appengine 
> > > > > > > > > directory
> > > > > > > > > which would suggest a command line of
>
> > > > > > > > > google_appengine/dev_appserver.py ./helloworld
>
> > > > > > > > >Notthe "." beforehelloworld
>
> > > > > > > > > I personally wouldn't put youhelloworldin google_appengine
> > > > > > > > > put it somewhere else and just have the command line point to 
> > > > > > > > > it
> > > > > > > > > much better because when the next version os the sdk comes 
> > > > > > > > > out you
> > > > > > > > > will have to
> > > > > > > > > move things
>
> > > > > > > > > T
>
> > > > > > > > > On Apr 2, 11:25 am, bobdob <[email protected]> wrote:
>
> > > > > > > > > > Hi Everyone
>
> > > > > > > > > > I'm trying to get Google Appengine up and running on Ubuntu 
> > > > > > > > > > 8.10. I've
> > > > > > > > > > downloaded the .zip for the Appengine SDK from the 
> > > > > > > > > > Linux/Other
> > > > > > > > > > Platforms section 
> > > > > > > > > > onhttp://code.google.com/appengine/downloads.html#Download_the_Google_A...
>
> > > > > > > > > > Upon unzipping thefile, I'm told that 3 CRCs didn't match, 
> > > > > > > > > > I deleted
> > > > > > > > > > all the files and tried re-downloading & unzipping 3 times, 
> > > > > > > > > > still got
> > > > > > > > > > the same CRC mismatches again. So I decided to just give it 
> > > > > > > > > > a shot
> > > > > > > > > > anyway.
>
> > > > > > > > > > Then I tried out the "Helloworld" app, creating a directory
> > > > > > > > > > "helloworld" in the "google_appengine" directory and 
> > > > > > > > > > placing my
> > > > > > > > > > "helloworld.py" and "app.yaml" files in the "helloworld" 
> > > > > > > > > > directory. I
> > > > > > > > > > tried running dev_appserver.py by opening my terminal and 
> > > > > > > > > > typing
> > > > > > > > > > google_appengine/dev_appserver.py /helloworld, and got a 
> > > > > > > > > > nice little
> > > > > > > > > > error message as illustrated below:
>
> > > > > > > > > > ch...@chris-laptop:~$ google_appengine/dev_appserver.py 
> > > > > > > > > > /helloworld
> > > > > > > > > >ERROR:root:Applicationconfigurationfilenotfoundin /helloworld
>
> ...
>
> meer lezen »- Tekst uit oorspronkelijk bericht niet weergeven -
>
> - Tekst uit oorspronkelijk bericht weergeven -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to