[gpodder-devel] iPod Video "Cannot Open Device"

  • From: thp at gpodder.org (Thomas Perl)
  • Date: Fri, 08 May 2009 06:41:29 -0700

You wrote:
> I have made a bit of progress. I have checked out the source and i think 
> it may be a problem with the python bindings. Just to recap - gtkpod and 
>   Banshee both work OK with this iPod, so the basic libgpod4 library 
> seems to be working correctly.
> 
> If I put some debug code in sync.py:
> 
>      def open(self):
>          Device.open(self)
>          print "ipod mount point: ", self.mountpoint
>          if not gpod_available or not os.path.isdir(self.mountpoint):
>              print "Error opening gpod or with mount path."
>              return False
> 
>          self.notify('status', _('Opening iPod database'))
>          self.itdb = gpod.itdb_parse(self.mountpoint, None)
>          if self.itdb is None:
>              print "self.itb is none."
>              return False
> 
> 
>          self.itdb.mountpoint = self.mountpoint
>          self.podcasts_playlist = gpod.itdb_playlist_podcasts(self.itdb)
> 
>          if self.podcasts_playlist:
>              self.notify('status', _('iPod opened'))
>              print "iPod opened."
>              # build the initial tracks_list
>              self.tracks_list = self.get_all_tracks()
> 
>              return True
>          else:
>              print "Unable to get playlist."
>              return False
> 
> The itunes database is opened OK but it fails to get the playlist in:
> self.podcasts_playlist = gpod.itdb_playlist_podcasts(self.itdb) i.e. 
> self.podcasts_playlist returns false.

Do you use an old version of the libgpod bindings? Please file a bug
report
and/or add all the relevant information to the corresponding existing
bug
at http://bugs.gpodder.org, where we can have an easier and structured
way
of approaching and fixing these bugs.

Thanks,
Thomas



Other related posts: