google-code-export / gdata-python-client

Automatically exported from code.google.com/p/gdata-python-client
1 stars 0 forks source link

GetYouTubeVideoFeed broken in 2.0.10 #372

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
--------------------------------------

may i'm using the wrong youtube feed url (do i?) but since 2.0.10 following
python snipped returns an error:

import gdata.youtube
import gdata.youtube.service
yts = gdata.youtube.service.YouTubeService()
uri = 'http://gdata.youtube.com/feeds/api/users/GrueneAkademie/uploads'
ytf = yts.GetYouTubeVideoFeed(uri)

What is the expected output? What do you see instead?
-----------------------------------------------------
youtube channel video feed

What version of the product are you using?
------------------------------------------
gdata 2.0.10
python 2.6

Original issue reported on code.google.com by thete...@gmail.com on 28 May 2010 at 1:57

GoogleCodeExporter commented 9 years ago
>>> import gdata.youtube
>>> import gdata.youtube.service
>>> yts = gdata.youtube.service.YouTubeService()
>>> uri = 'http://gdata.youtube.com/feeds/api/users/GrueneAkademie/uploads'
>>> ytf = yts.GetYouTubeVideoFeed(uri)
Traceback (most recent call last):
  File "<console>", line 1, in <module>
  File
"/home/thet/dev/grak/thet.grak.buildout/eggs/gdata-2.0.10-py2.6.egg/gdata/youtub
e/service.py",
line 181, in GetYouTubeVideoFeed
    return self.Get(uri, converter=gdata.youtube.YouTubeVideoFeedFromString)
  File
"/home/thet/dev/grak/thet.grak.buildout/eggs/gdata-2.0.10-py2.6.egg/gdata/servic
e.py", line
1097, in Get
    encoding=encoding, converter=converter)
  File
"/home/thet/dev/grak/thet.grak.buildout/eggs/gdata-2.0.10-py2.6.egg/gdata/servic
e.py", line
1074, in Get
    return converter(result_body)
  File
"/home/thet/dev/grak/thet.grak.buildout/eggs/gdata-2.0.10-py2.6.egg/gdata/youtub
e/__init__.py",
line 624, in YouTubeVideoFeedFromString
    return atom.CreateClassFromXMLString(YouTubeVideoFeed, xml_string)
  File
"/home/thet/dev/grak/thet.grak.buildout/eggs/gdata-2.0.10-py2.6.egg/atom/__init_
_.py", line
93, in optional_warn_function
    return f(*args, **kwargs)
  File
"/home/thet/dev/grak/thet.grak.buildout/eggs/gdata-2.0.10-py2.6.egg/atom/__init_
_.py", line
127, in CreateClassFromXMLString
    tree = ElementTree.fromstring(xml_string)
  File "<string>", line 85, in XML
SyntaxError: syntax error: line 1, column 0
>>> 

Original comment by thete...@gmail.com on 28 May 2010 at 1:58

GoogleCodeExporter commented 9 years ago
i forgot to say that with 2.0.9 the code snipped above works. i pinned the 
version in
my buildout to that one meanwhile.

Original comment by thete...@gmail.com on 1 Jun 2010 at 1:02

GoogleCodeExporter commented 9 years ago
Cannot reproduce - code works with 2.0.13

Original comment by manoochehri@google.com on 17 Dec 2010 at 11:36