2012-08-20, 18:24
(2012-08-19, 16:21)pkscuot Wrote: I used some of my google-fu and found something that might fix this and the problem with extended characters in a username. I don't have a good way to test it on my system, but it at least didn't break anything. For folks with these problems, please download and try this branch:I created a new user on my system with user name Øystein, then testet both v 1.41 and 1.4.2.2, it didn't change anything. As far as i can see from the log, the char set is not using a extended ascii table, only the first 128 chars. Where ex. Ø = 216.
v1.4.2.2 log:
Code:
18:11:37 T:2828 NOTICE: -->Python Interpreter Initialized<--
18:11:37 T:2828 ERROR: Error Type: <type 'exceptions.UnicodeEncodeError'>
18:11:37 T:2828 ERROR: Error Contents: 'ascii' codec can't encode character u'\xd8' in position 44: ordinal not in range(128)
18:11:37 T:2828 ERROR: Traceback (most recent call last):
File "C:\Users\ٹstein\AppData\Roaming\XBMC\addons\pkscout-script.artistslideshow-820e522\default.py", line 742, in <module>
slideshow = Main()
File "C:\Users\ٹstein\AppData\Roaming\XBMC\addons\pkscout-script.artistslideshow-820e522\default.py", line 134, in __init__
self._use_correct_artwork()
File "C:\Users\ٹstein\AppData\Roaming\XBMC\addons\pkscout-script.artistslideshow-820e522\default.py", line 185, in _use_correct_artwork
self._start_download()
File "C:\Users\ٹstein\AppData\Roaming\XBMC\addons\pkscout-script.artistslideshow-820e522\default.py", line 312, in _start_download
log('cachedir = %s' % self.CacheDir)
File "C:\Users\ٹstein\AppData\Roaming\XBMC\addons\pkscout-script.artistslideshow-820e522\default.py", line 78, in log
xbmc.log(msg=message, level=xbmc.LOGDEBUG)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xd8' in position 44: ordinal not in range(128)
Log from v1.4.2 version, tested before i installed v1.4.2.2
Code:
18:04:14 T:2988 NOTICE: -->Python Interpreter Initialized<--
18:04:14 T:2988 ERROR: C:\Users\ٹstein\AppData\Roaming\XBMC\addons\script.artistslideshow\default.py:118: SyntaxWarning: name '__last_time__' is used prior to global declaration
global __last_time__
18:04:21 T:2972 NOTICE: -->Python Interpreter Initialized<--
18:04:21 T:2972 ERROR: C:\Users\ٹstein\AppData\Roaming\XBMC\addons\script.artistslideshow\default.py:118: SyntaxWarning: name '__last_time__' is used prior to global declaration
global __last_time__
18:04:21 T:2972 ERROR: Error Type: <type 'exceptions.WindowsError'>
18:04:21 T:2972 ERROR: Error Contents: (3, 'The system cannot find the path specified', 'C:\\Users\\\xc3\x98ystein\\AppData\\Roaming\\XBMC\\userdata\\addon_data\\script.artistslideshow\\ArtistSlideshow\\eddc6007\\*.*')
18:04:22 T:2972 ERROR: Traceback (most recent call last):
File "C:\Users\ٹstein\AppData\Roaming\XBMC\addons\script.artistslideshow\default.py", line 749, in <module>
slideshow = Main()
File "C:\Users\ٹstein\AppData\Roaming\XBMC\addons\script.artistslideshow\default.py", line 141, in __init__
self._use_correct_artwork()
File "C:\Users\ٹstein\AppData\Roaming\XBMC\addons\script.artistslideshow\default.py", line 192, in _use_correct_artwork
self._start_download()
File "C:\Users\ٹstein\AppData\Roaming\XBMC\addons\script.artistslideshow\default.py", line 321, in _start_download
files = os.listdir(self.CacheDir)
WindowsError: (3, 'The system cannot find the path specified', 'C:\\Users\\\xc3\x98ystein\\AppData\\Roaming\\XBMC\\userdata\\addon_data\\script.artistslideshow\\ArtistSlideshow\\eddc6007\\*.*')