hello, I am facing an issue, I can not update my media database. The script airtime-import just copy the mp3 files on /srv/airtime/orgonize but nothing else happens
Here are last line of the file : /var/log/airtime/media-monitor/media-monitor.log ######################## 2012-07-13 16:48:14,480 ERROR - [MainThread] [media_monitor.py : <module>()] : LINE 144 - traceback: Traceback (most recent call last): File "/usr/lib/airtime/media-monitor/media_monitor.py", line 128, in <module> wdd = notifier.watch_directory(storage_directory) File "/usr/lib/airtime/media-monitor/airtimefilemonitor/airtimenotifier.py", line 194, in watch_directory return self.wm.add_watch(directory, self.mask, rec=True, auto_add=True) File "/usr/lib/airtime/airtime_virtualenv/lib/python2.6/site-packages/pyinotify.py", line 1887, in add_watch for rpath in self.__walk_rec(apath, rec): File "/usr/lib/airtime/airtime_virtualenv/lib/python2.6/site-packages/pyinotify.py", line 2075, in __walk_rec for root, dirs, files in os.walk(top): File "/usr/lib/airtime/airtime_virtualenv/lib/python2.6/os.py", line 294, in walk for x in walk(path, topdown, onerror, followlinks): File "/usr/lib/airtime/airtime_virtualenv/lib/python2.6/os.py", line 284, in walk if isdir(join(top, name)): File "/usr/lib/airtime/airtime_virtualenv/lib/python2.6/posixpath.py", line 70, in join path += '/' + b File "/usr/lib/airtime/airtime_virtualenv/lib/python2.6/encodings/utf_8.py", line 16, in decode return codecs.utf_8_decode(input, errors, True) UnicodeDecodeError: 'utf8' codec can't decode byte 0xeb in position 6: invalid continuation byte ############################
One of our users (Albert FR) discovered it seems to happen with files that have a strange Unicode characters. I haven't seen this issue on Pytohn 2.7, so I would recommend upgrading to that version or simply finding the file with the invalid character in its file name.
I don't think purging the database is the problem for you. I think you have a file encoded in latin-1/ISO-8859-1 on your system, and Python is trying to decode it as UTF-8 which causes problems.