Evan Hisey ha scritto:
Duncan-
 I found this in the logs on a my 1.9 box after it hung returning from
the screen saver. I am reporting as freevo requested :)

2009-07-10 23:04:38,009 WARNING  Please report this bug to the Freevo
mailing list
error: bad character range
    raise error, v # invalid expression
  File "/usr/lib/python2.5/re.py", line 241, in _compile
    return _compile(pattern, flags)
  File "/usr/lib/python2.5/re.py", line 188, in compile
    _cache[pat] = re.compile(res)
  File "/usr/lib/python2.5/fnmatch.py", line 47, in filter
    return fnmatch.filter(names,pattern)
  File "/usr/lib/python2.5/glob.py", line 57, in glob1
    for name in glob_in_dir(dirname, basename):
  File "/usr/lib/python2.5/glob.py", line 41, in iglob
    for dirname in dirs:
  File "/usr/lib/python2.5/glob.py", line 40, in iglob
    return list(iglob(pathname))
  File "/usr/lib/python2.5/glob.py", line 15, in glob
    return glob.glob(os.path.join(path, file_glob))
  File "/usr/lib/python2.5/site-packages/kaa/metadata/disc/dvd.py",
line 165, in iglob

IMHO this is not a problem in automounter, but rather a path containing characters that are (mis)interpreted as an invalid regular expression

if you can trigger this bug again, please

apply to the file
 "/usr/lib/python2.5/site-packages/kaa/metadata/disc/dvd.py"
the attached patch and then trigger the bug and look in the logs for the CULPRIT line and sent it

a.
Index: src/disc/dvd.py
===================================================================
--- src/disc/dvd.py	(revisione 4046)
+++ src/disc/dvd.py	(copia locale)
@@ -162,7 +162,11 @@
             # Case insensitive glob to find video_ts dir/file.  Python 2.5 has
             # glob.iglob but this doesn't exist in 2.4.
             file_glob = ''.join([ '[%s%s]' % (c, c.upper()) for c in ifile ])
-            return glob.glob(os.path.join(path, file_glob))
+            try:
+                return glob.glob(os.path.join(path, file_glob))
+            except:
+                print 'CULPRIT IS', repr(path), repr(file_glob)
+                raise
 
         if True not in [ os.path.isdir(x) for x in iglob(dirname, 'video_ts') ] + \
                        [ os.path.isfile(x) for x in iglob(dirname, 'video_ts.vob') ]:
------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
Freevo-devel mailing list
Freevo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-devel

Reply via email to