question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unicode error. Unable to do any operation with Netflix addon.

See original GitHub issue

Hi I’m using: Official Libreelec 9.0.2 Kodi 18.2 Architecture: RPi2.arm Netflix addon: 0.16.2 Repository: Castagnait Repository 1.0.0 Regional settings: French

Whatever operation I try with the Netflix addon, I got a “Netflix Error, please check the logs”. This include, of course, starting Netflix from the extension page, starting any show from the favorites page, any action from the Settings page of the Netflix addon like, for example, Purge cache, Reinit ESN, Purge Media Library…

I activated kodi log files and set Netflix addon log to verbose. Here is what I have:

2020-01-16 11:07:08.676 T:1937203216 DEBUG: HandleKey: return (0xf00d) pressed, action is Select 2020-01-16 11:07:08.677 T:1937203216 DEBUG: Activating window ID: 10025 2020-01-16 11:07:09.004 T:1937203216 DEBUG: ------ Window Deinit (Home.xml) ------ 2020-01-16 11:07:09.004 T:1937203216 DEBUG: FreeVisualisation() done 2020-01-16 11:07:09.027 T:1937203216 DEBUG: ------ Window Init (MyVideoNav.xml) ------ 2020-01-16 11:07:09.043 T:1937203216 ERROR: Control 55 in window 10025 has been asked to focus, but it can't 2020-01-16 11:07:09.097 T:1937203216 DEBUG: CGUIMediaWindow::GetDirectory (plugin://plugin.video.netflix/) 2020-01-16 11:07:09.097 T:1937203216 DEBUG: ParentPath = [plugin://plugin.video.netflix/] 2020-01-16 11:07:09.101 T:1790935920 DEBUG: Thread waiting start, auto delete: false 2020-01-16 11:07:09.120 T:1555448688 DEBUG: CAddonDatabase::SetLastUsed[plugin.video.netflix] took 23 ms 2020-01-16 11:07:09.122 T:1790935920 DEBUG: StartScript - calling plugin Netflix('plugin://plugin.video.netflix/','2','','resume:false') 2020-01-16 11:07:09.122 T:1400931184 DEBUG: Thread LanguageInvoker start, auto delete: false 2020-01-16 11:07:09.123 T:1400931184 INFO: initializing python engine. 2020-01-16 11:07:09.123 T:1400931184 DEBUG: CPythonInvoker(19, /storage/.kodi/addons/plugin.video.netflix/addon.py): start processing 2020-01-16 11:07:09.164 T:1400931184 DEBUG: -->Python Interpreter Initialized<-- 2020-01-16 11:07:09.164 T:1400931184 DEBUG: CPythonInvoker(19, /storage/.kodi/addons/plugin.video.netflix/addon.py): the source file to load is "/storage/.kodi/addons/plugin.video.netflix/addon.py" 2020-01-16 11:07:09.166 T:1400931184 DEBUG: CPythonInvoker(19, /storage/.kodi/addons/plugin.video.netflix/addon.py): setting the Python path to /storage/.kodi/addons/plugin.video.netflix:/storage/.kodi/addons/script.module.addon.signals/lib:/storage/.kodi/addons/script.module.certifi/lib:/storage/.kodi/addons/script.module.chardet/lib:/storage/.kodi/addons/script.module.future/libs:/storage/.kodi/addons/script.module.idna/lib:/storage/.kodi/addons/script.module.inputstreamhelper/lib:/storage/.kodi/addons/script.module.requests/lib:/storage/.kodi/addons/script.module.urllib3/lib:/usr/share/kodi/addons/script.module.pycryptodome/lib:/usr/lib/python27.zip:/usr/lib/python2.7:/usr/lib/python2.7/plat-linux2:/usr/lib/python2.7/lib-tk:/usr/lib/python2.7/lib-old:/usr/lib/python2.7/lib-dynload:/usr/lib/python2.7/site-packages:/usr/lib/python2.7/site-packages/gtk-2.0 2020-01-16 11:07:09.166 T:1400931184 DEBUG: CPythonInvoker(19, /storage/.kodi/addons/plugin.video.netflix/addon.py): entering source directory /storage/.kodi/addons/plugin.video.netflix 2020-01-16 11:07:09.166 T:1400931184 DEBUG: CPythonInvoker(19, /storage/.kodi/addons/plugin.video.netflix/addon.py): instantiating addon using automatically obtained id of "plugin.video.netflix" dependent on version 2.26.0 of the xbmc.python api 2020-01-16 11:07:09.201 T:1937203216 DEBUG: ------ Window Init (DialogBusy.xml) ------ 2020-01-16 11:07:09.387 T:1400931184 DEBUG: CAddonSettings[plugin.video.netflix]: loading setting definitions 2020-01-16 11:07:09.387 T:1400931184 DEBUG: CAddonSettings[plugin.video.netflix]: trying to load setting definitions from old format... 2020-01-16 11:07:09.394 T:1400931184 DEBUG: CAddonSettings[plugin.video.netflix]: loading setting values 2020-01-16 11:07:09.411 T:1400931184 INFO: [plugin.video.netflix (2)] Debug logging level is Verbose 2020-01-16 11:07:09.412 T:1400931184 DEBUG: [plugin.video.netflix (2)] Trying connection to the database nf_local.sqlite3 2020-01-16 11:07:09.413 T:1400931184 DEBUG: [plugin.video.netflix (2)] Database connection nf_local.sqlite3 was successful (SQLite ver. 3.26.0) 2020-01-16 11:07:09.557 T:1400931184 DEBUG: [plugin.video.netflix (2)] Trying connection to the MySQL database netflix_addon 2020-01-16 11:07:09.601 T:1400931184 DEBUG: [plugin.video.netflix (2)] MySQL database connection was successful (MySQL server ver. 5.6.30-1~bpo8+1) 2020-01-16 11:07:09.607 T:1400931184 DEBUG: [plugin.video.netflix (2)] Executing JSON-RPC: {"params": {"properties": ["thumbnail", "lockmode"]}, "jsonrpc": "2.0", "method": "Profiles.GetCurrentProfile", "id": 1} 2020-01-16 11:07:09.608 T:1400931184 INFO: [plugin.video.netflix (2)] Debug logging level is Verbose 2020-01-16 11:07:09.608 T:1400931184 INFO: [plugin.video.netflix (2)] Started (Version 0.16.2) 2020-01-16 11:07:09.609 T:1400931184 INFO: [plugin.video.netflix (2)] URL is ParseResult(scheme='plugin', netloc='plugin.video.netflix', path='/', params='', query='', fragment='') 2020-01-16 11:07:09.609 T:1400931184 DEBUG: [plugin.video.netflix (2)] Executing JSON-RPC: {"params": {"properties": ["thumbnail", "lockmode"]}, "jsonrpc": "2.0", "method": "Profiles.GetCurrentProfile", "id": 1} 2020-01-16 11:07:09.642 T:1400931184 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'\xe9' in position 25: ordinal not in range(128) Traceback (most recent call last): File "/storage/.kodi/addons/plugin.video.netflix/addon.py", line 15, in <module> run(sys.argv) File "/storage/.kodi/addons/plugin.video.netflix/resources/lib/run_addon.py", line 154, in run if window_cls.getProperty(prop_nf_service_status) != 'running': UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 25: ordinal not in range(128) -->End of Python script error report<-- 2020-01-16 11:07:09.642 T:1400931184 DEBUG: onExecutionDone(19, /storage/.kodi/addons/plugin.video.netflix/addon.py) 2020-01-16 11:07:09.755 T:1937203216 DEBUG: ------ Window Init (DialogNotification.xml) ------ 2020-01-16 11:07:09.894 T:1400931184 INFO: Python interpreter stopped 2020-01-16 11:07:09.894 T:1400931184 DEBUG: Thread LanguageInvoker 1400931184 terminating 2020-01-16 11:07:09.912 T:1790935920 ERROR: GetDirectory - Error getting plugin://plugin.video.netflix/ 2020-01-16 11:07:09.912 T:1790935920 DEBUG: Thread waiting 1790935920 terminating 2020-01-16 11:07:09.912 T:1937203216 DEBUG: ------ Window Deinit (DialogBusy.xml) ------ 2020-01-16 11:07:09.914 T:1937203216 ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.netflix/) failed 2020-01-16 11:07:09.914 T:1937203216 DEBUG: CGUIMediaWindow::GetDirectory () 2020-01-16 11:07:09.915 T:1937203216 DEBUG: ParentPath = [plugin://plugin.video.netflix/] 2020-01-16 11:07:09.924 T:1790935920 DEBUG: Thread waiting start, auto delete: false 2020-01-16 11:07:09.928 T:1790935920 DEBUG: Thread waiting 1790935920 terminating 2020-01-16 11:07:09.956 T:1790935920 DEBUG: Thread BackgroundLoader start, auto delete: false 2020-01-16 11:07:09.974 T:1790935920 DEBUG: Thread BackgroundLoader 1790935920 terminating 2020-01-16 11:07:15.371 T:1937203216 DEBUG: ------ Window Deinit (DialogNotification.xml) ------ 2020-01-16 11:07:15.453 T:1639867248 NOTICE: script.tv.show.next.aired: ### starting data update 2020-01-16 11:07:15.453 T:1639867248 NOTICE: script.tv.show.next.aired: ### grabbing a new country mapping list 2020-01-16 11:07:16.785 T:1639867248 DEBUG: script.tv.show.next.aired: ### search language = "en" 2020-01-16 11:07:16.786 T:1639867248 DEBUG: script.tv.show.next.aired: ### Update period: week (4169 mins) 2020-01-16 11:07:17.037 T:1639867248 ERROR: script.tv.show.next.aired: ### ERROR retreiving updates from thetvdb.com: File is not a zip file 2020-01-16 11:07:17.120 T:1639867248 NOTICE: script.tv.show.next.aired: ### data update finished This log file is also available here: https://pastebin.com/68BSkhJw

I tried a lot of things but completely dry now. This include totally removed the addon, the repository, removed the directories… I also switched to english, set the skin to the default one, no luck. Any help would be greatly appreciated. I could of course reinstall my Libreelec but I’d like to figure out what’s happening, in case this comes again or someone else is having the same issue. Thanx

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:12 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
CastagnaITcommented, May 3, 2020

if you have problem with inputstreamhelper report to inputstreamhelper addon not here

1reaction
pckeller29commented, Jan 21, 2020

Perfect, it works! Thank you very much.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Netflix Add-on [input-stream] - Kodi Community Forum
This problem occurs when you have non-ascii characters in your profile names in Netflix!! So, if you have greek or kyrillic or arabic...
Read more >
Unicode: the standard for character representation explained
Unicode is the worldwide standard for character representation. We explain how it works and which characters and letters are supported by ...
Read more >
FAQS - LWKS
My system drive failed and has been replaced and reinstalled, but now when I enter my Username and Password to sign in I...
Read more >
System Error Codes 1 to 15841 & What Each One Means
System error codes will appear in software programs and in various areas within the ... Error Code 351, The shutdown operation failed.
Read more >
HTTP error 500: Where does the problem lie and how to fix it?
HTTP errors indicate whether the request has been successfully processed and, if the processing failed, the reason. Error messages are not always ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found