Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
import yql causing Error 500 on appspot but works locally
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Pete  
View profile   Translate to Translated (View Original)
 More options Oct 16 2010, 10:11 pm
From: Pete <pto...@gmail.com>
Date: Sat, 16 Oct 2010 19:11:34 -0700 (PDT)
Local: Sat, Oct 16 2010 10:11 pm
Subject: import yql causing Error 500 on appspot but works locally

I'm working on my first gae application. I'm also new to Python.

The app uses Python-YQL to get some info from another website. The main
module of Python-YQL is yql which seems to also import a module called
httplib2 and another called oauth2. I copied all three folders to my
application folder.

Got the app working nicely locally but the deployed version shows 500
server error when I run it.

I narrowed the problem down to the "import yql" line. I put a
try/except around the import statement. Locally it succeeds. Deployed,
the exception clause fires. I don't know how to get more detail about
the exception other than that it fired.

Any help would be appreciated!

Incidentally, I'm kind of surprised that nobody in the forum is talking
about using yql with gae.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tobias  
View profile  
 More options Oct 17 2010, 6:06 am
From: Tobias <tobias.rodae...@googlemail.com>
Date: Sun, 17 Oct 2010 03:06:39 -0700 (PDT)
Local: Sun, Oct 17 2010 6:06 am
Subject: Re: import yql causing Error 500 on appspot but works locally
Hi Pete,

I assume you are using Python2.6 locally. Python-YQL requires Python
2.6+. The productive GAE runtime environment uses Python 2.5.

But hacking to the rescue!

I've put together a tiny patch for yql-0.6 and now it runs on
http://bitweigth.appspot.com

Here comes the patch http://gist.github.com/630707

Happy coding with Google App Engine!

- Tobias

On Oct 17, 4:11 am, Pete <pto...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tobias  
View profile  
 More options Oct 17 2010, 6:14 am
From: Tobias <tobias.rodae...@googlemail.com>
Date: Sun, 17 Oct 2010 03:14:34 -0700 (PDT)
Local: Sun, Oct 17 2010 6:14 am
Subject: Re: import yql causing Error 500 on appspot but works locally
Sorry, the correct URL to the simple demo is http://bitweight.appspot.com

- Tobias

On Oct 17, 12:06 pm, Tobias <tobias.rodae...@googlemail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Pete  
View profile   Translate to Translated (View Original)
 More options Oct 17 2010, 11:57 pm
From: Pete <pto...@gmail.com>
Date: Sun, 17 Oct 2010 20:57:49 -0700 (PDT)
Local: Sun, Oct 17 2010 11:57 pm
Subject: Re: import yql causing Error 500 on appspot but works locally

Fantastic, Thanks! I'll give it a try.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »