[Python-modules-team] Bug#495424: totem-plugins: Youtube plugin does not work, outputs python error

Sjoerd Simons sjoerd at luon.net
Sat Sep 6 14:00:14 UTC 2008


clone 495424 -1
reassign -1 totem-plugins
thanks,

On Sat, Aug 30, 2008 at 03:20:28AM +0200, Josselin Mouette wrote:
> reassign 495424 python-gdata 1.1.1-1
> severity 496926 important
> merge 496926 495424
> thanks
> 
> Le dimanche 17 août 2008 à 12:38 +0300, Mika Hanhijärvi a écrit :
> > Package: totem-plugins
> > Version: 2.22.2-3
> > Severity: important
> > 
> > Totem Youtube plugin does not work. When I try to search any video from 
> > Youtube it fails and Totem outputs this error to terminal window:
> > 
> > ** (totem:5226): DEBUG: Init of Python module
> > ** (totem:5226): DEBUG: Registering Python plugin instance: 
> > YouTube+TotemPythonPlugin
> > ** (totem:5226): DEBUG: Creating object of type 
> > YouTube+TotemPythonPlugin
> > ** (totem:5226): DEBUG: Creating Python plugin instance
> > Exception in thread Thread-1:
> > Traceback (most recent call last):
> >   File "/usr/lib/python2.5/threading.py", line 486, in __bootstrap_inner
> >     self.run()
> >   File "/usr/lib/totem/plugins/youtube/youtube.py", line 19, in run
> >     self.youtube.entry[self.treeview_name] = self.youtube.service.Get 
> > (self.url).entry
> >   File "/var/lib/python-support/python2.5/gdata/service.py", line 512, 
> > in Get
> >     extra_headers=extra_headers)
> >   File "/var/lib/python-support/python2.5/atom/service.py", line 295,
> > in 
> > HttpRequest
> >     connection.putrequest(operation, full_uri)
> >   File "/usr/lib/python2.5/httplib.py", line 810, in putrequest
> >     host_enc = self.host.encode("ascii")
> > AttributeError: 'NoneType' object has no attribute 'encode'
> 
> This looks like a severe regression in python-gdata, since downgrading
> to 1.0.9 does the trick.
> 
> The youtube browser is a killer feature, it would be a shame not to have
> it in lenny...

The argument order for the gdata.service.GDataService.__init__ function has
apparently changed in recent versions. Given that these are keyword arguments,
we can easily make totem compatible with both versions (will check a patch into
pkg-gnome svn in a bit).

This still should probably be fixed in python-gdata as well though

  Sjoerd
-- 
The bigger the theory the better.



More information about the Python-modules-team mailing list