from the cmd window:
F:\Do Not backup\Python\lib\cgitb.py:245: DeprecationWarning: BaseException.mess
age has been deprecated as of Python 2.6
value = pydoc.text.repr(getattr(evalue, name))
D:\Documents and Settings\BMOSS\My Documents\Sonos Project\henkelis-sonospy-f1dc
a6c\sonospy>
From the error log:
<type 'exceptions.UnicodeDecodeError'>
Python 2.6.4: F:\Do Not backup\Python\python.exe
Thu Jun 09 19:15:51 2011
A problem occurred in a Python script. Here is the sequence of
function calls leading up to the error, in the order they occurred.
D:\Documents and Settings\BMOSS\My Documents\Sonos Project\henkelis-sonospy-f1dca6c\sonospy\gettags in ()
1046
1047 if name == "main":
1048 status = main()
1049 sys.exit(status)
1050
status undefined
main = <function main at 0x00C7D270>
D:\Documents and Settings\BMOSS\My Documents\Sonos Project\henkelis-sonospy-f1dca6c\sonospy\gettags in main(argv=None)
1041 for path in args:
1042 if path.endswith(os.sep): path = path[:-1]
1043 process_dir(path, options, database)
1044 efile.close()
1045 return 0
global process_dir = <function process_dir at 0x00C7D070>
path = r'\NAS-PRIMOS01\flac'
options = <Values at 0xc7e468: {'verbose': False, 'databas...quiet': False, 'exclude': None, 'extract': None}>
database = r'D:\Documents and Settings\BMOSS\My Documents\Sonos Project\henkelis-sonospy-f1dca6c\sonospy\music.db'
D:\Documents and Settings\BMOSS\My Documents\Sonos Project\henkelis-sonospy-f1dca6c\sonospy\gettags in process_dir(scanpath=r'\NAS-PRIMOS01\flac', options=<Values at 0xc7e468: {'verbose': False, 'databas...quiet': False, 'exclude': None, 'extract': None}>, database=r'D:\Documents and Settings\BMOSS\My Documents\Sonos Project\henkelis-sonospy-f1dca6c\sonospy\music.db')
256 if options.verbose:
257 print errorstring
258 efile.write('%s\n' % errorstring)
259 continue
260
global efile = <open file 'errors/scanerrors.txt', mode 'wb' at 0x00C74160>
efile.write = <bound method StreamReaderWriter.write of <open ...errors/scanerrors.txt', mode 'wb' at 0x00C74160>>
errorstring = r'Error processing file: \NAS-PRIMOS01\flac\Vario...oHeaderError: End of metadata did not start audio'
F:\Do Not backup\Python\lib\codecs.py in write(self=<open file 'errors/scanerrors.txt', mode 'wb' at 0x00C74160>, data='Error processing file: \NAS-PRIMOS01\flac\Vario...HeaderError: End of metadata did not start audio\n')
684 def write(self, data):
685
686 return self.writer.write(data)
687
688 def writelines(self, list):
self = <open file 'errors/scanerrors.txt', mode 'wb' at 0x00C74160>
self.writer = <open file 'errors/scanerrors.txt', mode 'wb' at 0x00C74160>
self.writer.write = <bound method StreamWriter.write of <open file 'errors/scanerrors.txt', mode 'wb' at 0x00C74160>>
data = 'Error processing file: \NAS-PRIMOS01\flac\Vario...HeaderError: End of metadata did not start audio\n'
F:\Do Not backup\Python\lib\codecs.py in write(self=<open file 'errors/scanerrors.txt', mode 'wb' at 0x00C74160>, object='Error processing file: \NAS-PRIMOS01\flac\Vario...HeaderError: End of metadata did not start audio\n')
349 """ Writes the object's contents encoded to self.stream.
350 """
351 data, consumed = self.encode(object, self.errors)
352 self.stream.write(data)
353
data undefined
consumed undefined
self = <open file 'errors/scanerrors.txt', mode 'wb' at 0x00C74160>
self.encode =
object = 'Error processing file: \NAS-PRIMOS01\flac\Vario...HeaderError: End of metadata did not start audio\n'
self.errors = 'strict'
<type 'exceptions.UnicodeDecodeError'>: 'ascii' codec can't decode byte 0xe9 in position 164: ordinal not in range(128)
class = <type 'exceptions.UnicodeDecodeError'>
delattr = <method-wrapper 'delattr' of exceptions.UnicodeDecodeError object at 0x00C41928>
dict = {}
doc = 'Unicode decoding error.'
format = <built-in method format of exceptions.UnicodeDecodeError object at 0x00C41928>
getattribute = <method-wrapper 'getattribute' of exceptions.UnicodeDecodeError object at 0x00C41928>
getitem = <method-wrapper 'getitem' of exceptions.UnicodeDecodeError object at 0x00C41928>
getslice = <method-wrapper 'getslice' of exceptions.UnicodeDecodeError object at 0x00C41928>
hash = <method-wrapper 'hash' of exceptions.UnicodeDecodeError object at 0x00C41928>
init = <method-wrapper 'init' of exceptions.UnicodeDecodeError object at 0x00C41928>
new = <built-in method new of type object at 0x1E1D7868>
reduce = <built-in method reduce of exceptions.UnicodeDecodeError object at 0x00C41928>
reduce_ex = <built-in method __reduce_ex of exceptions.UnicodeDecodeError object at 0x00C41928>
repr = <method-wrapper 'repr' of exceptions.UnicodeDecodeError object at 0x00C41928>
setattr = <method-wrapper 'setattr' of exceptions.UnicodeDecodeError object at 0x00C41928>
setstate = <built-in method setstate of exceptions.UnicodeDecodeError object at 0x00C41928>
sizeof = <built-in method sizeof of exceptions.UnicodeDecodeError object at 0x00C41928>
str = <method-wrapper 'str' of exceptions.UnicodeDecodeError object at 0x00C41928>
subclasshook = <built-in method subclasshook of type object at 0x1E1D7868>
unicode = <built-in method unicode__ of exceptions.UnicodeDecodeError object at 0x00C41928>
args = ('ascii', 'Error processing file: \NAS-PRIMOS01\flac\Vario...HeaderError: End of metadata did not start audio\n', 164, 165, 'ordinal not in range(128)')
encoding = 'ascii'
end = 165
message = ''
object = 'Error processing file: \NAS-PRIMOS01\flac\Vario...HeaderError: End of metadata did not start audio\n'
reason = 'ordinal not in range(128)'
start = 164
The above is a description of an error in a Python program. Here is
the original traceback:
Traceback (most recent call last):
File "./gettags", line 1048, in
status = main()
File "./gettags", line 1043, in main
process_dir(path, options, database)
File "./gettags", line 258, in process_dir
efile.write('%s\n' % errorstring)
File "F:\Do Not backup\Python\lib\codecs.py", line 686, in write
return self.writer.write(data)
File "F:\Do Not backup\Python\lib\codecs.py", line 351, in write
data, consumed = self.encode(object, self.errors)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe9 in position 164: ordinal not in range(128)
from the cmd window: F:\Do Not backup\Python\lib\cgitb.py:245: DeprecationWarning: BaseException.mess age has been deprecated as of Python 2.6 value = pydoc.text.repr(getattr(evalue, name)) D:\Documents and Settings\BMOSS\My Documents\Sonos Project\henkelis-sonospy-f1dc a6c\sonospy>
From the error log: <type 'exceptions.UnicodeDecodeError'> Python 2.6.4: F:\Do Not backup\Python\python.exe Thu Jun 09 19:15:51 2011
A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.
D:\Documents and Settings\BMOSS\My Documents\Sonos Project\henkelis-sonospy-f1dca6c\sonospy\gettags in()
1046
1047 if name == "main":
1048 status = main()
1049 sys.exit(status)
1050
status undefined
main = <function main at 0x00C7D270>
D:\Documents and Settings\BMOSS\My Documents\Sonos Project\henkelis-sonospy-f1dca6c\sonospy\gettags in main(argv=None) 1041 for path in args: 1042 if path.endswith(os.sep): path = path[:-1] 1043 process_dir(path, options, database) 1044 efile.close() 1045 return 0 global process_dir = <function process_dir at 0x00C7D070> path = r'\NAS-PRIMOS01\flac' options = <Values at 0xc7e468: {'verbose': False, 'databas...quiet': False, 'exclude': None, 'extract': None}> database = r'D:\Documents and Settings\BMOSS\My Documents\Sonos Project\henkelis-sonospy-f1dca6c\sonospy\music.db'
D:\Documents and Settings\BMOSS\My Documents\Sonos Project\henkelis-sonospy-f1dca6c\sonospy\gettags in process_dir(scanpath=r'\NAS-PRIMOS01\flac', options=<Values at 0xc7e468: {'verbose': False, 'databas...quiet': False, 'exclude': None, 'extract': None}>, database=r'D:\Documents and Settings\BMOSS\My Documents\Sonos Project\henkelis-sonospy-f1dca6c\sonospy\music.db') 256 if options.verbose: 257 print errorstring 258 efile.write('%s\n' % errorstring) 259 continue 260 global efile = <open file 'errors/scanerrors.txt', mode 'wb' at 0x00C74160> efile.write = <bound method StreamReaderWriter.write of <open ...errors/scanerrors.txt', mode 'wb' at 0x00C74160>> errorstring = r'Error processing file: \NAS-PRIMOS01\flac\Vario...oHeaderError: End of metadata did not start audio'
F:\Do Not backup\Python\lib\codecs.py in write(self=<open file 'errors/scanerrors.txt', mode 'wb' at 0x00C74160>, data='Error processing file: \NAS-PRIMOS01\flac\Vario...HeaderError: End of metadata did not start audio\n') 684 def write(self, data): 685 686 return self.writer.write(data) 687 688 def writelines(self, list): self = <open file 'errors/scanerrors.txt', mode 'wb' at 0x00C74160> self.writer = <open file 'errors/scanerrors.txt', mode 'wb' at 0x00C74160> self.writer.write = <bound method StreamWriter.write of <open file 'errors/scanerrors.txt', mode 'wb' at 0x00C74160>> data = 'Error processing file: \NAS-PRIMOS01\flac\Vario...HeaderError: End of metadata did not start audio\n'
F:\Do Not backup\Python\lib\codecs.py in write(self=<open file 'errors/scanerrors.txt', mode 'wb' at 0x00C74160>, object='Error processing file: \NAS-PRIMOS01\flac\Vario...HeaderError: End of metadata did not start audio\n') 349 """ Writes the object's contents encoded to self.stream. 350 """ 351 data, consumed = self.encode(object, self.errors) 352 self.stream.write(data) 353 data undefined consumed undefined self = <open file 'errors/scanerrors.txt', mode 'wb' at 0x00C74160> self.encode =
object = 'Error processing file: \NAS-PRIMOS01\flac\Vario...HeaderError: End of metadata did not start audio\n'
self.errors = 'strict'
<type 'exceptions.UnicodeDecodeError'>: 'ascii' codec can't decode byte 0xe9 in position 164: ordinal not in range(128)
class = <type 'exceptions.UnicodeDecodeError'>
delattr = <method-wrapper 'delattr' of exceptions.UnicodeDecodeError object at 0x00C41928>
dict = {}
doc = 'Unicode decoding error.'
format = <built-in method format of exceptions.UnicodeDecodeError object at 0x00C41928>
getattribute = <method-wrapper 'getattribute' of exceptions.UnicodeDecodeError object at 0x00C41928>
getitem = <method-wrapper 'getitem' of exceptions.UnicodeDecodeError object at 0x00C41928>
getslice = <method-wrapper 'getslice' of exceptions.UnicodeDecodeError object at 0x00C41928>
hash = <method-wrapper 'hash' of exceptions.UnicodeDecodeError object at 0x00C41928>
init = <method-wrapper 'init' of exceptions.UnicodeDecodeError object at 0x00C41928>
new = <built-in method new of type object at 0x1E1D7868>
reduce = <built-in method reduce of exceptions.UnicodeDecodeError object at 0x00C41928>
reduce_ex = <built-in method __reduce_ex of exceptions.UnicodeDecodeError object at 0x00C41928>
repr = <method-wrapper 'repr' of exceptions.UnicodeDecodeError object at 0x00C41928>
setattr = <method-wrapper 'setattr' of exceptions.UnicodeDecodeError object at 0x00C41928>
setstate = <built-in method setstate of exceptions.UnicodeDecodeError object at 0x00C41928>
sizeof = <built-in method sizeof of exceptions.UnicodeDecodeError object at 0x00C41928>
str = <method-wrapper 'str' of exceptions.UnicodeDecodeError object at 0x00C41928>
subclasshook = <built-in method subclasshook of type object at 0x1E1D7868>
unicode = <built-in method unicode__ of exceptions.UnicodeDecodeError object at 0x00C41928>
args = ('ascii', 'Error processing file: \NAS-PRIMOS01\flac\Vario...HeaderError: End of metadata did not start audio\n', 164, 165, 'ordinal not in range(128)')
encoding = 'ascii'
end = 165
message = ''
object = 'Error processing file: \NAS-PRIMOS01\flac\Vario...HeaderError: End of metadata did not start audio\n'
reason = 'ordinal not in range(128)'
start = 164
The above is a description of an error in a Python program. Here is the original traceback:
Traceback (most recent call last): File "./gettags", line 1048, in
status = main()
File "./gettags", line 1043, in main
process_dir(path, options, database)
File "./gettags", line 258, in process_dir
efile.write('%s\n' % errorstring)
File "F:\Do Not backup\Python\lib\codecs.py", line 686, in write
return self.writer.write(data)
File "F:\Do Not backup\Python\lib\codecs.py", line 351, in write
data, consumed = self.encode(object, self.errors)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe9 in position 164: ordinal not in range(128)