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.

Python 2.7 encoding error

See original GitHub issue
  • bug report
  • feature request
  • support request

General information

Addon version used

v15.0, github master branch

Description

python encoding error when installing this plugin on OSMC 18.3 on Raspberry Pi 3B

i had to downgrade to 14.6

Steps to Reproduce

  1. Installing OSMC 18.3 on Raspberry Pi 3B

  2. Follow theses step: https://discourse.osmc.tv/t/how-to-all-platforms-can-i-use-netflix-on-osmc-post-4/54741/4

to install the plugin with dependencies

  1. installing the plugin with OSMC with the zip file installer

Expected behavior: Installing the plugin properly

Actual behavior: Getting an error when installing or trying to launch with the message “check the log for more information”

i had to downgrade to the 14.6 to make it work

Context (Environment)

Installation

  • I’m using this Netflix Repo
  • I’m using other Netflix Repo (Please specify which)
  • I’m using a different source (Please tell which)

Operating System

  • Linux (x86/x64)
  • OSX (x86/x64)
  • Windows (x86/x64)
  • Linux (ARM)
  • Android

Additional informatin on the environment

OSMC 18.3 on Raspberry Pi 3B

Debug log

2019-08-22 17:25:05.994 T:1790329568   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.LookupError'>
                                            Error Contents: no codec search functions registered: can't find encoding
                                            Traceback (most recent call last):
                                              File "/home/osmc/.kodi/addons/plugin.video.netflix/service.py", line 18, in <module>
                                                g.init_globals(sys.argv)
                                              File "/home/osmc/.kodi/addons/plugin.video.netflix/resources/lib/globals.py", line 217, in init_globals
                                                self.PATH = unquote(self.URL[2][1:]).decode('utf-8')
                                            LookupError: no codec search functions registered: can't find encoding
                                            -->End of Python script error report<--

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:27 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
zjoasancommented, Aug 25, 2019

Tried on another OSMC system that was still stretch based, working there too.

Thanks for a quick fix.

1reaction
zjoasancommented, Aug 25, 2019

Working like a charm on OSMC 18.3, with the latest master repo.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Python 2.7. Unicode Errors Simply Explained - gists · GitHub
UnicodeEncodeError Explained ... str() function encodes a string. We passed a unicode string, and it tried to encode it using a default encoding,...
Read more >
Solving Unicode Problems in Python 2.7 - Azavea
The problem with type< 'str'>, and the main reason why Unicode in Python 2.7 is confusing, is that the encoding of a given...
Read more >
Python 2.7: Trouble Encoding to UTF-8 - Stack Overflow
I assume that you use a Python 2 version, and that your input text contains non ASCII characters. The problem arises at str(x)...
Read more >
Overcoming frustration: Correctly using unicode in python2
One mistake that people encountering this issue for the first time make is confusing the unicode type and the encodings of unicode stored...
Read more >
Codec registry and base classes — Python 2.7.2 documentation
Implements the backslashreplace error handling (for encoding only): the unencodable character is replaced by a backslashed escape sequence. To simplify working ...
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