From: Thomas P. <th...@pe...> - 2007-07-04 12:05:40
|
Hello, gtkpod Developers! Here's a bug report related to some API change in libgpod's Python bindings. It seems to be related to some type changed of the "time_released" field of tracks: track.time_released = int(time.mktime(ipod_date) + 2082844800) gives TypeError: in method '_Itdb_Track_time_released_set', argument 2 of type 'time_t' Is there a way to fix my code to work with both the old and new libgpod Python APIs or how do I set the time_released field for libgpod 0.5.0? Please CC your answer to th...@pe... AND goe...@gm.... Thanks! Thomas Perl -------- Forwarded Message -------- > From: Götz Waschk <goe...@gm...> > Reply-To: Development for gPodder <gpo...@li...> > To: Development for gPodder <gpo...@li...> > Subject: Re: [gpodder-devel] gPodder + libgpod CVS = borked > Date: Fri, 29 Jun 2007 21:35:26 +0200 > > > There is still no libgpod 0.5.0 package in Debian unstable, but I'll > > look into it when libgpod 0.5.0 gets more widespread distribution :) > You could install it manually or switch to a more modern distribution > or install one in a virtual machine if possible. > > In case your bug tracker will work again, this is the error: > > Exception in thread Thread-5: > Traceback (most recent call last): > File "/usr/lib/python2.5/threading.py", line 460, in __bootstrap > self.run() > File "/usr/lib/python2.5/threading.py", line 440, in run > self.__target(*self.__args, **self.__kwargs) > File "/usr/lib/python2.5/site-packages/gpodder/gpodder.py", line > 396, in sync_to_ipod_proc > sync.sync_channel( channel, sync_played_episodes = not > gPodderLib().only_sync_not_played) > File "/usr/lib/python2.5/site-packages/gpodder/libipodsync.py", line > 169, in sync_channel > self.add_episode_from_channel( channel, episode) > File "/usr/lib/python2.5/site-packages/gpodder/libipodsync.py", line > 446, in add_episode_from_channel > track.time_released = int(time.mktime(ipod_date) + 2082844800) > File "/home/mandrake/rpm/tmp//libgpod-root/usr/lib/python2.5/site-packages/gpod/gpod.py", > line 995, in <lambda> > File "/home/mandrake/rpm/tmp//libgpod-root/usr/lib/python2.5/site-packages/gpod/gpod.py", > line 38, in _swig_setattr > File "/home/mandrake/rpm/tmp//libgpod-root/usr/lib/python2.5/site-packages/gpod/gpod.py", > line 31, in _swig_setattr_nondynamic > TypeError: in method '_Itdb_Track_time_released_set', argument 2 of > type 'time_t' |