Bugs item #1589913, was opened at 2006-11-03 05:40
Message generated for change (Comment added) made by sf-robot
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=446895&aid=1589913&group_id=46652

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: other
Group: None
>Status: Closed
Resolution: None
Priority: 5
Private: No
Submitted By: mikel28 (mikel28)
Assigned to: Nobody/Anonymous (nobody)
Summary: cache rebuild, having problems building the cache..

Initial Comment:
When i run freevo cache --rebuild, this is what comes 
up after a few minutes processing stuff..

[code]or caching image /media/free/Music/Masters Of 
Hardcore 1.2.3.4.5.6.7.8.9/Masters Of Hardcore - 
6/moh 6 front.jpg
    38/40   /media/free/Music/Ma [...] 9.20/Masters 
Of Hardcore Vol16/moh16.jpg
error caching image /media/free/Music/Masters Of 
Hardcore 16.17.18.19.20/Masters Of Hardcore 
Vol16/moh16.jpg
    39/40   /media/free/Music/Ma [...] - 8/Masters Of 
Hardcore VIII - Front.jpg
error caching image /media/free/Music/Masters Of 
Hardcore 1.2.3.4.5.6.7.8.9/Masters Of Hardcore - 
8/Masters Of Hardcore VIII - Front.jpg
    40/40   /media/free/Music/Ma [...] - 
14/MastersofHardcore-Chapter14back.jpg
error caching image /media/free/Music/Masters Of 
Hardcore 10.11.12.13.14.15/Masters Of Hardcore - 
14/MastersofHardcore-Chapter14back.jpg

Python SQLite not installed!
creating audio 
metadata............................... done
creating playlist 
metadata............................
Traceback (most recent call last):
  
File "/usr/lib/python2.4/site-packages/freevo/helpers/cache.py", 
line 468, in ?
    create_metadata()
  
File "/usr/lib/python2.4/site-packages/freevo/helpers/cache.py", 
line 253, in create_metadata
    items = playlist.mimetype.get(None, 
util.misc.unique(pl))
  
File "/usr/lib/python2.4/site-packages/freevo/playlist.py", 
line 532, in get
    display_type=display_type, build=True))
  
File "/usr/lib/python2.4/site-packages/freevo/playlist.py", 
line 100, in __init__
    self.build()
  
File "/usr/lib/python2.4/site-packages/freevo/playlist.py", 
line 247, in build
    self.read_m3u(playlist)
  
File "/usr/lib/python2.4/site-packages/freevo/playlist.py", 
line 129, in read_m3u
    if os.path.exists(os.path.join(curdir,line)):
  File "/usr/lib/python2.4/posixpath.py", line 171, 
in exists
    st = os.stat(path)
TypeError: stat() argument 1 must be (encoded string 
without NULL bytes), not str
[EMAIL PROTECTED]:~/.freevo$ dpkg -l|grep sqlite
ii  libsqlite0                                 
2.8.17-0ubuntu1                      SQLite shared 
library
ii  libsqlite0-dev                             
2.8.17-0ubuntu1                      SQLite 
development files
ii  libsqlite3-0                               
3.3.5-0.2                            SQLite 3 shared 
library
ii  sqlite                                     
2.8.17-0ubuntu1                      command line 
interface for SQLite
[EMAIL PROTECTED]:~/.freevo$ [/code]

i guess that a parser is broken (but i dont know 
anything about python), i told this to the guys on 
#freevo, then dischi asked me kindly to post it on 
the tracker here

i hope that you guys can work it out with this info, 
else you can try to reach me on freenode under nick 
main2, of mikel28

thanks.

----------------------------------------------------------------------

>Comment By: SourceForge Robot (sf-robot)
Date: 2006-11-18 19:20

Message:
Logged In: YES 
user_id=1312539
Originator: NO

This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 14 days (the time period specified by
the administrator of this Tracker).

----------------------------------------------------------------------

Comment By: Duncan Webb (duncanwebb)
Date: 2006-11-03 13:41

Message:
Logged In: YES 
user_id=104395

Patch seems to work so it is now in svn rel-1-6 at r8535

----------------------------------------------------------------------

Comment By: mikel28 (mikel28)
Date: 2006-11-03 12:49

Message:
Logged In: YES 
user_id=1636953

i found your patch, thanks duncan

----------------------------------------------------------------------

Comment By: mikel28 (mikel28)
Date: 2006-11-03 12:45

Message:
Logged In: YES 
user_id=1636953

FIX:

 (curdir, playlistname) = os.path.split(plsname)
        for line in playlist_lines:
            if '\0' in line:
                print 'WARNING m3u file contains NULL byte character(s)
lines skipped' + line
                break
            if line.endswith('\r\n'):
                line = line.replace('\\', '/') # Fix MSDOS slashes
            if os.path.exists(os.path.join(curdir,line)):
                self.playlist.append(os.path.join(curdir,line))


## ^^ Above should be sufficient i think, if one line is not usable,
doesnt make the rest of the 
m3u unusable. Ow.. and the above might need some newlines... ;)

----------------------------------------------------------------------

Comment By: Duncan Webb (duncanwebb)
Date: 2006-11-03 11:11

Message:
Logged In: YES 
user_id=104395

I meant:
patch -Np1 -i/path/to/playlist-fix.py

----------------------------------------------------------------------

Comment By: Duncan Webb (duncanwebb)
Date: 2006-11-03 11:09

Message:
Logged In: YES 
user_id=104395

Please try the attached patch and report the results.

cd /usr/lib/python2.4/site-packages/freevo
patch -Np0 -i/path/to/patch

should do it.

If the fix fails please mail my the playlist files.


----------------------------------------------------------------------

Comment By: Duncan Webb (duncanwebb)
Date: 2006-11-03 09:50

Message:
Logged In: YES 
user_id=104395

I've just run this on my system with a usb drive, FAT32 W95
partition, without any errors.

what does fdisk say about the partition type?

Is there a playlist file on the drive? 

If so is the playlist correct, no hard coded paths?

----------------------------------------------------------------------

Comment By: mikel28 (mikel28)
Date: 2006-11-03 09:26

Message:
Logged In: YES 
user_id=1636953

i've installed the right python sql version now, but (as expected) i
havent got rid of the error, so i moved the 
folders outside of the scope..

still the same problem

   341/342  /media/free/Music/Z~   Various Music singles ---          
100%
   342/342  /media/free/Music                                         
100%

checking thumbnails................................... 2 file(s)
     1/2    /home/mike/.freevo/v [...] Z~   Various Music singles
---/cover.jpg
error caching image /home/mike/.freevo/vfs/media/free/Music/Z~   Various
Music singles ---/cover.jpg
     2/2    /home/mike/.freevo/v [...] e North Sea Jazz Festival
1995/cover.jpg
error caching image /home/mike/.freevo/vfs/media/free/Music/Jamiroquai -
Albums Set/Jamiroquai - Live at the North 
Sea Jazz Festival 1995/cover.jpg

creating audio metadata............................... done
creating playlist metadata............................
Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/freevo/helpers/cache.py", line
468, in ?
    create_metadata()
  File "/usr/lib/python2.4/site-packages/freevo/helpers/cache.py", line
253, in create_metadata
    items = playlist.mimetype.get(None, util.misc.unique(pl))
  File "/usr/lib/python2.4/site-packages/freevo/playlist.py", line 532, in
get
    display_type=display_type, build=True))
  File "/usr/lib/python2.4/site-packages/freevo/playlist.py", line 100, in
__init__
    self.build()
  File "/usr/lib/python2.4/site-packages/freevo/playlist.py", line 247, in
build
    self.read_m3u(playlist)
  File "/usr/lib/python2.4/site-packages/freevo/playlist.py", line 129, in
read_m3u
    if os.path.exists(os.path.join(curdir,line)):
  File "/usr/lib/python2.4/posixpath.py", line 171, in exists
    st = os.stat(path)
TypeError: stat() argument 1 must be (encoded string without NULL bytes),
not str
[EMAIL PROTECTED]:~/pysqlite$  

----------------------------------------------------------------------

Comment By: mikel28 (mikel28)
Date: 2006-11-03 08:13

Message:
Logged In: YES 
user_id=1636953

EXTRA INFO:

/media/free < is a mountpoint to my external drive, the partition type is
fat32.

----------------------------------------------------------------------

Comment By: Duncan Webb (duncanwebb)
Date: 2006-11-03 06:04

Message:
Logged In: YES 
user_id=104395

You need different versions 
pysqlite-1.0.1 http://initd.org/tracker/pysqlite - Required
by freevo cache
sqlite-2.8.16 http://www.sqlite.org/ - Required by
pysqlite-1.0.1

AFAIK higher version don't work.



----------------------------------------------------------------------

Comment By: mikel28 (mikel28)
Date: 2006-11-03 05:42

Message:
Logged In: YES 
user_id=1636953

EXTRA INFO:

/media/free < is a mountpoint to my external drive, the partition type is
fat32.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=446895&aid=1589913&group_id=46652

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Freevo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-devel

Reply via email to