[HOW-TO ALL PLATFORMS]Can I use Netflix on OSMC?(post 4)

Hi Joakim: After the Nov’20 update and with Netflix not playing, I checked the log and found the windevine error. Then, I followed your August '19 post and the problem was fixed. Thanks for the help.

/ Earl :slight_smile:

Hello, @joakim_s - I’m trying to get Netflix working under Matrix, and not succeeding. It installs okay, but when I try to run it, it errors with “No module named ‘Crypto’”. Any ideas?

Hi
Try the following:
GitHub - CastagnaIT/plugin.video.netflix: InputStream based Netflix plugin for Kodi

Trying that is what gives me the error.

I got past that error by replacing this:

sudo apt-get install python-crypto
sudo apt-get install build-essential python-pip
sudo pip install -U setuptools
sudo pip install wheel
sudo pip install pycryptodomex

with:
sudo apt-get install python3-crypto
sudo apt-get install build-essential python3-pip (edit: I think it was python3-pip not python-pip)
sudo python3 -m pip install -U setuptools
sudo python3 -m pip install wheel
sudo python3 -m pip install pycryptodomex

it seems otherwise it installs for python 2.7
However afterwards im running into different issues so I am not sure if this is correct.

1 Like

That’s right, since my install script installs for python 2, I knew i had to update it for Matrix. But since I’ve recived the blessing of a little girl (2nd of march) I haven’t kept up with the prerelease of Matrix internally. Will try to make a v.19 version of the automation script, this weekend.

2 Likes

Yes, if I execute that lot, reboot, and then install and launch the Netflix add-on, it works. Thanks!

(Still can’t get Amazon VOD working, though. I think that might be a bug with the add-on.)

Np glad I could help.

Thanks for sharing. Tried this on my fresh Rpi4 install and Netflix 1.15.0+matrix.1 add-on installation fails (and InputStream Helper 0.5.2+matrix.1 succeeds) with the following interface and log messages.

Interface: Failed to install a dependency

Log:
2021-04-17 15:12:39.798 T:461 INFO : CActiveAESink::OpenSink - initialize sink
2021-04-17 15:12:39.799 T:461 INFO : CAESinkALSA::Initialize - Attempting to open device “sysdefault:CARD=vc4hdmi1”
2021-04-17 15:12:39.806 T:461 INFO : CAESinkALSA - Unable to open device “sysdefault:CARD=vc4hdmi1” for playback
2021-04-17 15:12:39.807 T:461 ERROR : CAESinkALSA::Initialize - failed to initialize device “sysdefault:CARD=vc4hdmi1”
2021-04-17 15:12:39.807 T:461 INFO : CAESinkALSA::Initialize - Attempting to open device “@”
2021-04-17 15:12:39.818 T:461 INFO : CAESinkALSA::Initialize - Opened device “sysdefault”
2021-04-17 15:12:39.820 T:461 INFO : CAESinkALSA::InitializeHW - Your hardware does not support AE_FMT_FLOAT, trying other formats
2021-04-17 15:12:39.820 T:461 INFO : CAESinkALSA::InitializeHW - Using data format AE_FMT_S24NE3
2021-04-17 15:12:45.059 T:640 ERROR : CAddonInstallJob[plugin.video.netflix]: failed to find dependency script.module.addon.signals

Yes it seems it can’t automatically download dependencies from the official repo. So you can manually install the dependencies. Get them here: Files...

you’re gonna need a few dependencies. Look at the log to see which ones.

Good luck :slight_smile:

Thanks. I’ll try this.

If that helps anyone else, Netflix addon installation completed after following @kukaburra first set of instructions:

sudo apt-get install python3-crypto
sudo apt-get install build-essential python3-pip
sudo python3 -m pip install -U setuptools
sudo python3 -m pip install wheel
sudo python3 -m pip install pycryptodomex

And installing manually the following addons in that order
script.module.addon.signals-0.0.6+matrix.1.zip
script.module.certifi-2019.11.28+matrix.1.zip
script.module.chardet-3.0.4+matrix.3.zip
script.module.idna-2.8.1+matrix.1.zip
script.module.urllib3-1.25.8+matrix.1.zip
script.module.requests-2.22.0+matrix.1.zip
script.module.myconnpy-8.0.18+matrix.1.zip

2 Likes

Does the app actually work for you now? Can you play videos?

Thank you @LaurentD for that “work”. I still haven’t had the needed time, hoping the Mrs and the kids go to bed early tonight. So I can flash the Vero4k to matrix.

The only problem is remembering all the system tweaks and scripts I’ve made over the last year. The time to flash isn’t even a third of the work. Anyway I hopefully get a chance to do all this after midnight.

Well, it’s just past 5 am, first draft of the updated prep-script is on github.com now.

Observe, first draft. If someone can check if it’s working in both v.18 and v.19, on clean install and upgrade. I would be very grateful.

In the script there is a check for Kodi version installed, based on that it will install and use the right pip version. Since there seems to be some ossue with auto installation of addon dependencies, i took it upon myself to install the needed addons for Netflix addon, via the script.

Good luck and let me know if i can improve something, or fork the git and PR me

Hi,

Thanks Joakim_s for the shellscript.

I did tried this, but at the time of the netflix add-on from local extension repo, I got an error about the update/install of one required extension, maybe the python input stream helper, which is already installed (two former attempts already on the rbp4 test image with former version of the script).

I have the correct zip for matrix, but got that required extension install failed that blocks Netflix plugin to install. All the rests of the instructions and extensions install ok though.

Greg

Don’t know yet. I have to put my hands back on Netflix credentials. Will keep you posted.

Well since i wrote this in a “dazed moment”, i found some issues and I’m working on correcting them. Initially I was checking version without a decimal, but the version check from code, leaves a decimal, which lead to the version check not working. Fixed.

Next thing I noticed today is that installation of script.module.myconnpy needs user interaction, something about python mysql components installed.

I wonder how many other of the dependencies needs interaction, well I guess an update from our supreme ruler, and this dependency issue will be gone =) But until then I’ll try to fix it as good as I can.

Edit: My reinstall on a v.19 upgrade now works, barred from having to manually reinstall mypycon, since it needs user interaction in kodi. Downloaded libwidvine and voila i got streams streaming.

Edit 2: Put a “click OK” dialog box, informing about Kodi-interaction needed, before trying to install myconnpy addon.

1 Like

So, Netflix credentials allow successful login, and I can browse available content. However, I am getting this sticky ’ This title is not available to watch instantly’ error. I have tried a few things, notably re-installing WineCDM, to no avail. Below is the log. Not sure what to do next. Perhaps start over from the beginning and a fresh OSMC Rpi4 image? Any advice welcome.

2021-04-18 18:14:24.363 T:761 ERROR : ----------------------------------------
2021-04-18 18:14:24.363 T:761 ERROR :

2021-04-18 18:14:24.363 T:761 ERROR : Exception happened during processing of request from
2021-04-18 18:14:24.363 T:761 ERROR :
2021-04-18 18:14:24.363 T:761 ERROR : (‘127.0.0.1’, 47352)
2021-04-18 18:14:24.363 T:761 ERROR :

2021-04-18 18:14:24.364 T:761 ERROR : Traceback (most recent call last):

2021-04-18 18:14:24.364 T:761 ERROR :
2021-04-18 18:14:24.364 T:761 ERROR : File “/usr/lib/python3.7/socketserver.py”, line 650, in process_request_thread
self.finish_request(request, client_address)

2021-04-18 18:14:24.364 T:761 ERROR :
2021-04-18 18:14:24.364 T:761 ERROR : File “/usr/lib/python3.7/socketserver.py”, line 360, in finish_request
self.RequestHandlerClass(request, client_address, self)

2021-04-18 18:14:24.364 T:761 ERROR :
2021-04-18 18:14:24.364 T:761 ERROR : File “/usr/lib/python3.7/socketserver.py”, line 720, in init
self.handle()

2021-04-18 18:14:24.364 T:761 ERROR :
2021-04-18 18:14:24.364 T:761 ERROR : File “/usr/lib/python3.7/http/server.py”, line 426, in handle
self.handle_one_request()

2021-04-18 18:14:24.364 T:761 ERROR :
2021-04-18 18:14:24.364 T:761 ERROR : File “/usr/lib/python3.7/http/server.py”, line 414, in handle_one_request
method()

2021-04-18 18:14:24.364 T:761 ERROR :
2021-04-18 18:14:24.364 T:761 ERROR : File “/home/osmc/.kodi/addons/plugin.video.netflix/resources/lib/services/http_server.py”, line 47, in do_POST
handle_msl_request(self, func_name, data)

2021-04-18 18:14:24.365 T:761 ERROR :
2021-04-18 18:14:24.365 T:761 ERROR : File “/home/osmc/.kodi/addons/plugin.video.netflix/resources/lib/services/http_server.py”, line 74, in handle_msl_request
license_data = server.server.netflix_session.msl_handler.get_license(data)

2021-04-18 18:14:24.365 T:761 ERROR :
2021-04-18 18:14:24.365 T:761 ERROR : File “/home/osmc/.kodi/addons/plugin.video.netflix/resources/lib/services/nfsession/msl/msl_utils.py”, line 55, in error_catching_wrapper
return func(*args, **kwargs)

2021-04-18 18:14:24.365 T:761 ERROR :
2021-04-18 18:14:24.365 T:761 ERROR : File “/home/osmc/.kodi/addons/plugin.video.netflix/resources/lib/utils/logging.py”, line 142, in timing_wrapper
return func(*args, **kwargs)

2021-04-18 18:14:24.365 T:761 ERROR :
2021-04-18 18:14:24.365 T:761 ERROR : File “/home/osmc/.kodi/addons/plugin.video.netflix/resources/lib/services/nfsession/msl/msl_handler.py”, line 264, in get_license
get_esn())

2021-04-18 18:14:24.365 T:761 ERROR :
2021-04-18 18:14:24.365 T:761 ERROR : File “/home/osmc/.kodi/addons/plugin.video.netflix/resources/lib/utils/logging.py”, line 142, in timing_wrapper
return func(*args, **kwargs)

2021-04-18 18:14:24.365 T:761 ERROR :
2021-04-18 18:14:24.365 T:761 ERROR : File “/home/osmc/.kodi/addons/plugin.video.netflix/resources/lib/services/nfsession/msl/msl_requests.py”, line 167, in chunked_request
save_uid_token_to_owner=auth_data[‘user_id_token’] is None)

2021-04-18 18:14:24.365 T:761 ERROR :
2021-04-18 18:14:24.365 T:761 ERROR : File “/home/osmc/.kodi/addons/plugin.video.netflix/resources/lib/utils/logging.py”, line 142, in timing_wrapper
return func(*args, **kwargs)

2021-04-18 18:14:24.365 T:761 ERROR :
2021-04-18 18:14:24.365 T:761 ERROR : File “/home/osmc/.kodi/addons/plugin.video.netflix/resources/lib/services/nfsession/msl/msl_requests.py”, line 219, in _process_chunked_response
return _raise_if_error(decrypted_response)

2021-04-18 18:14:24.365 T:761 ERROR :
2021-04-18 18:14:24.365 T:761 ERROR : File “/home/osmc/.kodi/addons/plugin.video.netflix/resources/lib/services/nfsession/msl/msl_requests.py”, line 247, in _raise_if_error
raise MSLError(err_message, err_number)

2021-04-18 18:14:24.365 T:761 ERROR :
2021-04-18 18:14:24.365 T:761 ERROR : resources.lib.common.exceptions.MSLError: Ce titre n’est pas disponible en accès instantané. Veuillez en sélectionner un autre. - 1044

2021-04-18 18:14:24.365 T:761 ERROR :
2021-04-18 18:14:24.365 T:761 ERROR : ----------------------------------------
2021-04-18 18:14:24.365 T:761 ERROR :

2021-04-18 18:14:33.899 T:588 INFO : initializing python engine.
2021-04-18 18:14:34.282 T:588 WARNING : [script.module.inputstreamhelper] Widevine update check was made on 2021-04-18 17:59
2021-04-18 18:14:34.284 T:588 INFO : CPythonInvoker(5, /home/osmc/.kodi/addons/plugin.video.netflix/addon.py): script successfully run
2021-04-18 18:14:34.324 T:421 INFO : VideoPlayer::OpenFile: plugin://plugin.video.netflix/play/movie/80206300/?profile_guid=XMEWDQGPKBDU5OH3NSLPPXX3OY
2021-04-18 18:14:34.329 T:824 INFO : Creating InputStream
2021-04-18 18:14:34.331 T:824 INFO : AddOnLog: inputstream.adaptive: SetVideoResolution (1920 x 1080)
2021-04-18 18:14:34.391 T:824 INFO : AddOnLog: inputstream.adaptive: Successfully parsed .mpd file. #Periods: 1, #Streams in first period: 22, Type: VOD, Download speed: 0.0000 Bytes/s
2021-04-18 18:14:35.298 T:827 ERROR : [plugin.video.netflix (0)] Full MSL error information:
2021-04-18 18:14:35.299 T:827 ERROR : [plugin.video.netflix (0)] {“version”: 2, “id”: 16187624748133, “serverTime”: 1618762475240, “from”: “nq_cadmium_pbo_licenses@2.77.1/pbo-client@2.77.0”, “result”: [{“error”: {“pboc”: true, “code”: “FAIL”, “detail”: “license/pbl-1044: IssueLicensePolicyError (E3-BQFRAAELEL2pwLk6XieKEdajwqCm-l-Bip0p2_JyjI7I5VjbqrkKRC1gqPBzJCuCIcjtq3jDSej-A5793PM7oWNU-QzAR2qTw-IE7QiTqWS7GD-aZuL1xPctaDLOJHwDThiS76277dU9y_WZxG3qPPdL-0IddNHRuXNXoS0O-LC-fvLnjXXYIO58jgWm-wHM5_2xuIhBTcjAG4DP6G4GUfsDPbHGmjOlxEMxcs9ncOKAybE3qOTthA7daBK6pBnD6kvqDb03L1R4HAoK6InibxOy5-4LpneL1z6jrmOGm1xRSCQ_BZnTtTn_W6bnzmTYX51QWO76ClWb1J3wWS3iNWQ7eTDv4m9fXRm68vCZEsoSJjaNYkNCpingA4UrGKmOcg-qJNn_NQwcicy42mKHnpq29bVVgiz8fl-gd21G0ATet9AETCJXrGnweEpc1q30ErlmYnpR7lKy78rkB46qRY-DY8VxMVuIKiQL7VlZK5s7kC9LoPG5ce3Yx1Rid44QP7CyebZ7uGS05X4FzJnmW6hmN5KakNCZNf2mExmjC5li1Hc=) (nq_cadmium_pbo_licenses@2.77.1/pbo-client@2.77.0)”, “display”: “Ce titre n’est pas disponible en acc\u00e8s instantan\u00e9. Veuillez en s\u00e9lectionner un autre. - 1044”, “alertTag”: “”, “errorDisplayMessage”: “Ce titre n’est pas disponible en acc\u00e8s instantan\u00e9. Veuillez en s\u00e9lectionner un autre. - 1044”, “errorActionId”: 3, “nccpError”: {}, “errorSubCode”: 0, “errorReasonCode”: 0, “errorNccpCode”: 0, “errorExternalCode”: 0, “bladeRunnerMessage”: “license/pbl-1044: IssueLicensePolicyError (E3-BQFRAAELEL2pwLk6XieKEdajwqCm-l-Bip0p2_JyjI7I5VjbqrkKRC1gqPBzJCuCIcjtq3jDSej-A5793PM7oWNU-QzAR2qTw-IE7QiTqWS7GD-aZuL1xPctaDLOJHwDThiS76277dU9y_WZxG3qPPdL-0IddNHRuXNXoS0O-LC-fvLnjXXYIO58jgWm-wHM5_2xuIhBTcjAG4DP6G4GUfsDPbHGmjOlxEMxcs9ncOKAybE3qOTthA7daBK6pBnD6kvqDb03L1R4HAoK6InibxOy5-4LpneL1z6jrmOGm1xRSCQ_BZnTtTn_W6bnzmTYX51QWO76ClWb1J3wWS3iNWQ7eTDv4m9fXRm68vCZEsoSJjaNYkNCpingA4UrGKmOcg-qJNn_NQwcicy42mKHnpq29bVVgiz8fl-gd21G0ATet9AETCJXrGnweEpc1q30ErlmYnpR7lKy78rkB46qRY-DY8VxMVuIKiQL7VlZK5s7kC9LoPG5ce3Yx1Rid44QP7CyebZ7uGS05X4FzJnmW6hmN5KakNCZNf2mExmjC5li1Hc=) (nq_cadmium_pbo_licenses@2.77.1/pbo-client@2.77.0)”, “bladeRunnerCode”: “1044”}, “errorParams”: {“drmSessionId”: “04499A80480AA15428432A3FED9EF723”}}]}

I’m stuck at the same problem. Getting issues with my iptv as well. Don’t think it’s something we can easily fix ourselves easily unfortunately.