[gpodder-devel] Error when writing iTunesDB.ext

  • From: joehill at teksavvy.com (JoeHill)
  • Date: Fri, 28 Mar 2008 13:29:23 -0400

Thomas Perl wrote: 

> Hello, Joe!
> 
> On Fri, 2008-03-28 at 01:52 -0400, JoeHill wrote:
> > JoeHill wrote: 
> >   
> > > Just did an svn up to Revision: 643, but I'm still getting an unmatched
> > > checksum error from gtkpod.
> > > 
> > > This is what it shows in the gpodder console:
> > > 
> > > [42270.381] (iPodDevice) Error when writing iTunesDB.ext
> > > Traceback (most recent call last):
> > >   File "/home/joehill/svn/gpodder/src/gpodder/sync.py", line 211, in close
> > >     db = gpod.ipod.Database(self.mountpoint)
> > >   File "/usr/lib/python2.4/site-packages/gpod/ipod.py", line 85, in
> > > __init__ self._load_gtkpod_extended_info()
> > >   File "/usr/lib/python2.4/site-packages/gpod/ipod.py", line 101, in
> > > _load_gtkpod_extended_info gtkpod.parse(itdbext_file, self,
> > > self._itdb_file) File "/usr/lib/python2.4/site-packages/gpod/gtkpod.py",
> > > line 108, in parse tracks_by_sha[sha1_hash(track.ipod_filename())] = track
> > >   File "/usr/lib/python2.4/site-packages/gpod/gtkpod.py", line 25, in
> > > sha1_hash size = os.path.getsize(filename)
> > >   File "/usr/lib/python2.4/posixpath.py", line 139, in getsize
> > >     return os.stat(filename).st_size
> > > TypeError: coercing to Unicode: need string or buffer, NoneType found
> > > 
> > > Googling that last bit got me this:
> > > 
> > > "This may be an indication that in your database you have a record with a
> > > None value, e. g.
> > > 
> > >         [('Developmental Neurobiology', 'ANAT2008'),
> > >          ('Neuroanatomy', 'ANAT2009'),
> > >          ('Man in black', None)])
> > > 
> > > and most likely the right fix is to correct the database entry and make
> > > sure that no new such records can be entered into it."
> > > 
> > > However, I have no idea how I would go about following this advice...  
> > 
> > sorry, should have given a link to what I found:
> > 
> > http://mail.python.org/pipermail/python-list/2006-July/395253.html  
> 
> 
> Thanks for investigating on this problem. Could you please post this
> information and the bug to http://bugs.gpodder.org/ where we can deal
> with it in a better way then here on the development discussion mailing
> list?

You bet :-) Bug 81 entered.

-- 
JoeHill
++++++++++++++++++++
Bender: Fry, of all the friends I've had, you're the first.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: 
<https://lists.berlios.de/pipermail/gpodder-devel/attachments/20080328/1d6c928f/attachment.pgp>

Other related posts: