plasmon 2 Posted December 17, 2017 Posted December 17, 2017 Hi, I'm using Kodi 17.6, I have multiple users on it. Lately two of my users have an emby plugin error when login in. The error is only with Kodi, the users are fine on emby web, app... 18:41:05.969 T:13124 NOTICE: EMBY.connectionmanager -> Begin ConnectionManager constructor 18:41:05.971 T:13124 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'\xc9' in position 56: ordinal not in range(128) Traceback (most recent call last): File "C:\Users\Plasmon\AppData\Roaming\Kodi\addons\plugin.video.emby\service.py", line 37, in <module> service = Service() File "C:\Users\Plasmon\AppData\Roaming\Kodi\addons\plugin.video.emby\resources\lib\service_entry.py", line 84, in __init__ librarysync.LibrarySync().offline_mode_views() File "C:\Users\Plasmon\AppData\Roaming\Kodi\addons\plugin.video.emby\resources\lib\librarysync.py", line 60, in __init__ self.user = userclient.UserClient() File "C:\Users\Plasmon\AppData\Roaming\Kodi\addons\plugin.video.emby\resources\lib\userclient.py", line 42, in __init__ self.connectmanager = connectmanager.ConnectManager() File "C:\Users\Plasmon\AppData\Roaming\Kodi\addons\plugin.video.emby\resources\lib\connectmanager.py", line 54, in __init__ self._connect.setFilePath(path) File "C:\Users\Plasmon\AppData\Roaming\Kodi\addons\plugin.video.emby\resources\lib\connect\connectionmanager.py", line 78, in setFilePath self.credentialProvider.setPath(path) File "C:\Users\Plasmon\AppData\Roaming\Kodi\addons\plugin.video.emby\resources\lib\connect\credentials.py", line 30, in setPath self.path = path.decode('utf-8') File "C:\Program Files (x86)\Kodi\system\python\Lib\encodings\utf_8.py", line 16, in decode return codecs.utf_8_decode(input, errors, True) UnicodeEncodeError: 'ascii' codec can't encode character u'\xc9' in position 56: ordinal not in range(128) -->End of Python script error report<-- 18:41:05.978 T:13124 WARNING: CPythonInvoker(5, C:\Users\Plasmon\AppData\Roaming\Kodi\addons\plugin.video.emby\service.py): the python script "C:\Users\Plasmon\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::xbmc::Monitor,class XBMCAddon::xbmcaddon::Addon,class XBMCAddon::xbmcaddon::Addon Seems to be related to an unsupported character. I've notice one thing in common with the two problematic users, in Kodi both usernames contains a "é". (not the case in emby) PS C:\Users\Plasmon\AppData\Roaming\Kodi\userdata\profiles> ls Directory: C:\Users\Plasmon\AppData\Roaming\Kodi\userdata\profiles Mode LastWriteTime Length Name ---- ------------- ------ ---- d----- 2017-11-14 08:15 Mireille <-- Working fine d----- 2017-03-13 18:32 Simon <-- Working fine d----- 2017-12-14 22:31 Véro <-- emby plugin not working / error d----- 2017-03-13 18:33 Élise <-- emby plugin not working / error PS C:\Users\Plasmon\AppData\Roaming\Kodi\userdata\profiles> I imagine the emby plugin try to access the kodi user path and is failing because of this french character. It was working before, I suppose it can be easily fix. Regards Simon
Angelblue05 4132 Posted December 17, 2017 Posted December 17, 2017 Ok thanks for letting me know, I was trying to fix an issue that was reported. I will try something else. Sent from my iPhone using Tapatalk
Angelblue05 4132 Posted December 17, 2017 Posted December 17, 2017 Can you do me a quick favor and try this build here. Are you getting the error using this build? You can revert back to 2.3.60 when available. Someone else reported the exact issue with the way it was before. I'm trying to fix it without breaking your setup too. plugin.video.emby-2.3.61a.zip
plasmon 2 Posted December 18, 2017 Author Posted December 18, 2017 (edited) I didn't shaw your super fast reply yesturday, sorry. I just log into kodi with the user and everything was back to normal. I first thought a new version was release / the plugin auto update did it's trick. Then I checked and it was at version 2.3.60 and both users are now ok. I presume the plugin was still on on 2.3.59 Still I tried the version you sent (2.3.61a.zip): 19:23:08.108 T:8024 NOTICE: EMBY.service_entry -> EMBY Version: 2.3.61a 19:23:08.109 T:8024 NOTICE: EMBY.service_entry -> Using plugin paths: False 19:23:08.110 T:8024 NOTICE: EMBY.service_entry -> Log Level: 1 19:23:08.110 T:8024 NOTICE: EMBY.views -> Clearing nodes properties. 19:23:08.110 T:8024 NOTICE: EMBY.service_entry -> Loading existing views... 19:23:08.112 T:8024 NOTICE: EMBY.connectionmanager -> Begin ConnectionManager constructor 19:23:08.112 T:8024 NOTICE: EMBY.connectionmanager -> Begin connect 19:23:08.112 T:8024 NOTICE: EMBY.connectionmanager -> Begin getAvailableServers 19:23:08.112 T:8024 NOTICE: EMBY.credentials -> [Errno 2] No such file or directory: 'C:\\Users\\Plasmon\\AppData\\Roaming\\Kodi\\userdata\\profiles\\V\xc3\xa9ro\\addon_data\\plugin.video.emby\\data.txt' 19:23:08.112 T:8024 NOTICE: EMBY.credentials -> credentials initialized with: {} 19:23:08.113 T:8024 NOTICE: EMBY.connectionmanager -> Begin getConnectServers 19:23:09.113 T:8024 NOTICE: EMBY.connectionmanager -> Found Servers: [{u'Name': u'EMBYSERVER', u'Id': u'08d867b9377942c0830c1e98ea85a782', u'Address': u'http://192.168.0.105:8096'}] 19:23:09.123 T:8024 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<-- - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS! Error Type: <type 'exceptions.IOError'> Error Contents: (2, 'No such file or directory', 'C:\\Users\\Plasmon\\AppData\\Roaming\\Kodi\\userdata\\profiles\\V\xc3\xa9ro\\addon_data\\plugin.video.emby\\data.txt') Traceback (most recent call last): File "C:\Users\Plasmon\AppData\Roaming\Kodi\addons\plugin.video.emby\service.py", line 37, in <module> service = Service() File "C:\Users\Plasmon\AppData\Roaming\Kodi\addons\plugin.video.emby\resources\lib\service_entry.py", line 84, in __init__ librarysync.LibrarySync().offline_mode_views() File "C:\Users\Plasmon\AppData\Roaming\Kodi\addons\plugin.video.emby\resources\lib\librarysync.py", line 60, in __init__ self.user = userclient.UserClient() File "C:\Users\Plasmon\AppData\Roaming\Kodi\addons\plugin.video.emby\resources\lib\userclient.py", line 42, in __init__ self.connectmanager = connectmanager.ConnectManager() File "C:\Users\Plasmon\AppData\Roaming\Kodi\addons\plugin.video.emby\resources\lib\connectmanager.py", line 60, in __init__ self.state = self._connect.connect() File "C:\Users\Plasmon\AppData\Roaming\Kodi\addons\plugin.video.emby\resources\lib\connect\connectionmanager.py", line 765, in connect servers = self.getAvailableServers() File "C:\Users\Plasmon\AppData\Roaming\Kodi\addons\plugin.video.emby\resources\lib\connect\connectionmanager.py", line 426, in getAvailableServers self.credentialProvider.getCredentials(credentials) File "C:\Users\Plasmon\AppData\Roaming\Kodi\addons\plugin.video.emby\resources\lib\connect\credentials.py", line 75, in getCredentials self._set(data) File "C:\Users\Plasmon\AppData\Roaming\Kodi\addons\plugin.video.emby\resources\lib\connect\credentials.py", line 59, in _set with open(os.path.join(self.path, 'data.txt'), 'w') as outfile: IOError: (2, 'No such file or directory', 'C:\\Users\\Plasmon\\AppData\\Roaming\\Kodi\\userdata\\profiles\\V\xc3\xa9ro\\addon_data\\plugin.video.emby\\data.txt') -->End of Python script error report<-- 19:23:09.157 T:8024 WARNING: CPythonInvoker(4, C:\Users\Plasmon\AppData\Roaming\Kodi\addons\plugin.video.emby\service.py): the python script "C:\Users\Plasmon\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::xbmcaddon::Addon,class XBMCAddon::xbmcaddon::Addon,class XBMCAddon::xbmc::Monitor the error is now more clear, we know it`s the folder path. 19:23:08.112 T:8024 NOTICE: EMBY.credentials -> [Errno 2] No such file or directory: 'C:\\Users\\Plasmon\\AppData\\Roaming\\Kodi\\userdata\\profiles\\V\xc3\xa9ro\\addon_data\\plugin.video.emby\\data.txt' ...\\V\xc3\xa9ro\\... --> Should be \\Véro\\ so I woudn't use this on the stable release. I've re-tested all 3 versions: - Not working on 2.3.59 and 2.3.61a - Working on 2.3.60. Regards Edited December 18, 2017 by plasmon
Angelblue05 4132 Posted December 18, 2017 Posted December 18, 2017 Ok, thank you. 2.3.61 is on the way, which should put you back to normal.
Recommended Posts