Release Artist Slideshow addon (with skin and addon integration)
(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\\*.*')

Reply


Messages In This Thread
New Test Version Available - by pkscout - 2012-03-08, 16:26
[No subject] - by mardup - 2012-03-10, 12:26
[No subject] - by pkscout - 2012-03-11, 01:35
RE: - by mardup - 2012-03-12, 17:50
RE: - by pkscout - 2012-03-13, 03:22
New Beta Version for Testing - by pkscout - 2012-07-13, 17:54
New Beta Version for Testing - by pkscout - 2012-07-14, 22:50
Pull Request for v1.4 Submitted - by pkscout - 2012-07-20, 23:01
New Beta Version for Testing - by pkscout - 2012-08-10, 03:18
RE: [RELEASE] Artist Slideshow 1.3.0 addon (with skin and addon integration) - by Crowly - 2012-08-20, 18:24
New Frodo BETA Support Files - by pkscout - 2012-11-21, 06:20
New 2.0.0 Beta Coming Soon - by pkscout - 2016-05-12, 02:54
Writing tips - by Parkerbup - 2017-02-03, 14:56
Add-on Artist Slideshow - by jo26 - 2014-08-08, 22:58
Logout Mark Read Team Forum Stats Members Help
Artist Slideshow addon (with skin and addon integration)5