From: Leo g. <leo...@gm...> - 2008-04-08 17:22:17
|
sorry.. there was a last line in the error I forgot to cut and paste...: TypeError: coercing to Unicode: need string or buffer, NoneType found Leo,, On Tue, Apr 8, 2008 at 2:21 PM, Leo germani <leo...@gm...> wrote: > hi.. > > Im developing an application using libgpod... and I have tested it before. > But, suddently, its not working anymore.. > > Even the example script add-songs.py isnt work. The error occurss when I > try to create a database instance with the command: > > db = gpod.Database(options.mountpoint) > > of course replacing options.mountpoint with the actual mount point. > > Here is the error generated by add_song.py > > > leo@bideo:~/2008/burnStation/libgpod-0.6.0/bindings/python/examples$ > python add_song.py -m /media/ORRA One.mp3 > Traceback (most recent call last): > File "add_song.py", line 74, in <module> > db = gpod.Database(options.mountpoint) > File "/usr/lib/python2.5/site-packages/gpod/ipod.py", line 76, in > __init__ > self._load_gtkpod_extended_info() > File "/usr/lib/python2.5/site-packages/gpod/ipod.py", line 92, in > _load_gtkpod_extended_info > gtkpod.parse(itdbext_file, self, self._itdb_file) > File "/usr/lib/python2.5/site-packages/gpod/gtkpod.py", line 108, in > parse > tracks_by_sha[sha1_hash(track.ipod_filename())] = track > File "/usr/lib/python2.5/site-packages/gpod/gtkpod.py", line 25, in > sha1_hash > size = os.path.getsize(filename) > File "/usr/lib/python2.5/posixpath.py", line 139, in getsize > return os.stat(filename).st_size > > > Im pretty sure I have used it before and it worked... > > any help is welcome.. > > cheers > > Leo,, > -- > leogermani.pirex.com.br > leogermani.estudiolivre.org -- leogermani.pirex.com.br leogermani.estudiolivre.org |