Hey Tim, thanks again for the input, I finally think I might be on to
something now, so I'll try to explain it.

Even with the "python" included in the command line, I'm getting the
exact same "syntax error" message. But when I look at the
dev_appserver.py file in /home/chris/google_appengine/google/appengine/
tools/ as you suggested, I see that line 1319 does not, in fact, read
"source_file, pathname, description = result" (without quotes) but
rather "source_file, pathname, descript ex = result" (without quotes).
This, if you look at the error message I'm getting, is where the ^
above the "SyntaxError: invalid syntax" message points to.
Furthermore, when I run a checksum, I get 57573  103 as opposed to the
04413   103 you had listed. So with this in mind, I deleted the
"google_appengine" directory and all the files in it, and went back to
the AppEngine website for another copy. Downloaded, unzipped, try
again... same result. I'd also like to note that upon unzipping the
files I get an error message that 3 different CRCs do not match. The
error message is as follows:

bad CRC 1d9a28dc  (should be 287e4591)
bad CRC 57ef4ff5     (should be 90e26032)
bad CRC 029f43d6   (should be c5f1420a)

So it looks like something may be going on with the files.

>From here, I tried to experiment a bit. I ran a chmod on /home/chris/
google_appengine/google/appengine/tools/dev_appserver.py to allow
write privileges, then opened it in Emacs and manually edited line
1319 to read "source_file, pathname, description = result" (without
quotes). I tried running the command line again (google_appengine/
dev_appserver.py helloworld/) and this time, I got the same syntax
error message but now the last line reads:

ch...@chris-laptop:~$ google_appengine/dev_appserver.py helloworld/
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 1320
    if descript ex == (None, None, None)
                     ^
SyntaxError: invalid syntax


Futhermore, I ran a checksum on the updated file (after changing line
1319) and I got 63344  103

So, I repeated the last step (edited line 1320 to say "if description
== (None, None, None)" (without quotes)) and still got a syntax error,
now with the last line reading

  File "/home/chris/google_appengine/google/appengine/tools/
dev_appserver.py", line 1328
    suffix, mode, file_type = descript ex
                                                      ^
SyntaxError: invalid syntax

Now the checksum reads 11294  103


So it looks like for whatever reason all the "descript ex" lines in
that file (/home/chris/google_appengine/google/appengine/tools/
dev_appserver.py) are causing errors. Not sure why this is, but I'll
keep playing with it, changing them to "description" and see if that
helps. Also, if there's any alternative location to download the zip,
I'd love to know (so I could presumably get the same archive you and
others who've run it successfully have got)

Apologies for the long post...





On Apr 3, 11:23 am, 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 the file /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 the file
>
> 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 will not give 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'm not surprised 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.yaml file may 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.py helloworld/
> > 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
> > "Application configuration not found" 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 the helloworld excercise cutting and pasting you code
> > > and it all worked.
>
> > > I only get that error ERROR:root:Application configuration file not
> > > found in ./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 the helloworld.py is missing. You also
> > > won't get this specific error (Application configuration file not
> > > found in ./helloworld )  is the file is 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 is not you
> > > home directory where helloworld.
>
> > > Hope this helps
>
> > > Rgds
>
> > > Tim
>
> > > On Apr 3, 12:07 pm, bobdob <[email protected]> wrote:
>
> > > > This is what my helloworld.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 us helloworld.py
>
> > > > > T
>
> > > > > On Apr 3, 9:19 am, bobdob <[email protected]> wrote:
>
> > > > > > Here's the app.yaml file:
>
> > > > > > 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 of helloworld directory
>
> > > > > > > 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 still not working 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:Application configuration file not found in 
> > > > > > > > ./helloworld
>
> > > > > > > > What I've noticed is that my "app.yaml" file says it's a plain 
> > > > > > > > text
> > > > > > > > document in the "properties" so maybe the appengine SDK isn't
> > > > > > > > recognizing it as the necessary configuration file and throws 
> > > > > > > > that
> > > > > > > > error message? I've tried creating the file from 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 put helloworld in the google_appengine 
> > > > > > > > > directory
> > > > > > > > > which would suggest a command line of
>
> > > > > > > > > google_appengine/dev_appserver.py ./helloworld
>
> > > > > > > > > Not the "." before helloworld
>
> > > > > > > > > I personally wouldn't put you helloworld in 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 the file, 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:Application configuration file not found in 
> > > > > > > > > > /helloworld
>
> ...
>
> read more »- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
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