Random ...
June 2018
          1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
Tags ...

python+zope++:: python gdata 2.0.10 trouble
Posted at 27.May,2010 22:51  Comments 0 / Trackbacks 0 / Like this post!
Technorati tag(s):

Decided to continue my grok journey by continuing on what i did previously with grok 1.0b4.

The grok site makes use of youtube api services via gdata.

Since this was built quite some time ago, it was using gdata-2.0.0.

Decided to upgrade grok to v1.1 and gdata to 2.0.10. That's when the fun started.

Once grok and gdata was upgraded, we kept getting errors. Kept getting elementtree tracebacks. A sprinkling of print statements in service.py (from gdata) help determine that in fact the google home page was returned, not the targeted youtube feed.

That's why elementtree threw fits with SyntaxError line col 0 since it's not a xml document.

Downgraded gdata to the v2.0.0 and stuff worked again. Dang. Upgraded to v2.0.9, and stuff still works.

And I spent a few hours on this since I upgraded both grok and gdata.

Lesson learned.

Here's my simple test script for a working gdata:

  import gdata.youtube
  import gdata.youtube.service
  yt_service = gdata.youtube.service.YouTubeService()
  print  yt_service.GetYouTubeVideoFeed('http://gdata.youtube.com/feeds/api/users/kedai/uploads')

Bookmark and Share

Is this entry helpful? Comments/Donate/Click some google ads.  
Trackback is http://myzope.kedai.com.my/blogs/kedai/250/tbping 

Post a comment