Jump to content

Unicode bug in kodi addon, windows 10?


joggs

Recommended Posts

Hi,

I'm getting a python error in the kodi plugin. Looks like it cannot handle my special character ö, in the script path?

 

 


16:22:57 T:7708  NOTICE: EMBY Service -> ======== START EMBY ========

16:22:57 T:7708  NOTICE: EMBY Service -> Platform: Windows

16:22:57 T:7708  NOTICE: EMBY Service -> KODI Version: 15.2 Git:20151019-02e7013

16:22:57 T:7708  NOTICE: EMBY Service -> EMBY Version: 1.1.39

16:22:57 T:7708   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--

                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!

                                            Error Type: <type 'exceptions.UnicodeEncodeError'>

                                            Error Contents: 'ascii' codec can't encode character u'\xf6' in position 23: ordinal not in range(128)

                                            Traceback (most recent call last):

                                              File "C:\Users\Jn\AppData\Roaming\Kodi\addons\plugin.video.emby\service.py", line 270, in <module>

                                                Service().ServiceEntryPoint()

                                              File "C:\Users\Jn\AppData\Roaming\Kodi\addons\plugin.video.emby\service.py", line 208, in ServiceEntryPoint

                                                elif user.getPublicUsers() == False:

                                              File "C:\Users\Jn\AppData\Roaming\Kodi\addons\plugin.video.emby\resources\lib\UserClient.py", line 195, in getPublicUsers

                                                result = self.doUtils.downloadUrl(url, authenticate=False)

                                              File "C:\Users\Jn\AppData\Roaming\Kodi\addons\plugin.video.emby\resources\lib\DownloadUtils.py", line 255, in downloadUrl

                                                header = self.getHeader(authenticate=False)

                                              File "C:\Users\Jn\AppData\Roaming\Kodi\addons\plugin.video.emby\resources\lib\DownloadUtils.py", line 168, in getHeader

                                                deviceId = clientInfo.getMachineId()

                                              File "C:\Users\Jn\AppData\Roaming\Kodi\addons\plugin.video.emby\resources\lib\ClientInformation.py", line 86, in getMachineId

                                                lock.release()

                                              File "C:\Users\Jn\AppData\Roaming\Kodi\addons\plugin.video.emby\resources\lib\Lock.py", line 36, in release

                                                xbmc.log("File_Lock_On " + self.filename + " released")

                                            UnicodeEncodeError: 'ascii' codec can't encode character u'\xf6' in position 23: ordinal not in range(128)

                                            -->End of Python script error report<--

16:22:57 T:7708 WARNING: CPythonInvoker(1, C:\Users\Jörgen\AppData\Roaming\Kodi\addons\plugin.video.emby\service.py): the python script "C:\Users\Jörgen\AppData\Roaming\Kodi\addons\plugin.video.emby\service.py" has left several classes in memory that we couldn't clean up. The classes include: class XBMCAddon::xbmcgui::Window,class XBMCAddon::xbmcgui::Window,class XBMCAddon::xbmcgui::Window,class XBMCAddon::xbmcgui::Window,class PythonBindings::XBMCAddon_xbmc_Monitor_Director,class PythonBindings::XBMCAddon_xbmc_Monitor_Director,class PythonBindings::XBMCAddon_xbmc_Monitor_Director,class XBMCAddon::xbmcaddon::Addon,class XBMCAddon::xbmcaddon::Addon,class XBMCAddon::xbmcaddon::Addon,class XBMCAddon::xbmcaddon::Addon,class XBMCAddon::xbmcaddon::Addon,class XBMCAddon::xbmcaddon::Addon,class XBMCAddon::xbmcaddon::Addon,class XBMCAddon::xbmc::Player

Edited by joggs
Link to comment
Share on other sites

Same kind of bug when emby starts creating the the xml files in the userdata/library/video... the script does not use the real path and instead generates a completely new userpath with a 'userdirectory' like below instead of the user directory name jörgen

 

16:31:06 T:8884  NOTICE: -->Python Interpreter Initialized<--
16:31:06 T:8884  NOTICE: plugin.video.emby started
16:31:06 T:8884  NOTICE: Parameter string: ?mode=manualsync
16:31:06 T:8884  NOTICE: [Error 183] Cannot create a file when that file already exists: 'C:\\Users\\J\xc3\xb6rgen\\AppData\\Roaming\\Kodi\\userdata\\library\\video'
16:31:06 T:8884  NOTICE: Sync DB -> syncDatabase Exiting
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...