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
>
> > > > > > > > > Now, I'm not sure what's causing this, whether I have a bum
> > > > > > > > > copy of
> > > > > > > > > the SDK (unlikely, I think, since the files came directly
> > > > > > > > > from the
> > > > > > > > > Google Appengine Downloads), or whether I'm not putting my
> > > > > > > > > files or
> > > > > > > > > directories in the right places, or whether there are other
> > > > > > > > > dependencies I need to run dev_appserver.py (Ubuntu comes
> > > > > > > > > with Python
> > > > > > > > > 2.5.2 pre-installed, I have not installed 2.6 or 3.0 as I am
> > > > > > > > > aware
> > > > > > > > > they are not compatible with AppEngine).
>
> > > > > > > > > I'm kind of stuck right now, I've searched online for a few
> > > > > > > > > hours with
> > > > > > > > > no luck and I think I should be able to get this up and
> > > > > > > > > running pretty
> > > > > > > > > easily. If anyone has any suggestions or has experienced
> > > > > > > > > something
> > > > > > > > > like this, please let me know as soon as you can
>
> > > > > > > > > Thanks- 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
-~----------~----~----~----~------~----~------~--~---