Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug Report] OSMC with Kodi 18 alpha not installing all dependencies #237

Closed
4 of 12 tasks
DrCord opened this issue Nov 20, 2017 · 56 comments
Closed
4 of 12 tasks

[Bug Report] OSMC with Kodi 18 alpha not installing all dependencies #237

DrCord opened this issue Nov 20, 2017 · 56 comments

Comments

@DrCord
Copy link

DrCord commented Nov 20, 2017

I'm submitting a ...

  • bug report
  • feature request
  • support request

General infomration

Prerequisites

  • Are you running the latest version?

Description

I get this issue on 0.12.7, running OSMC updated to the latest alpha for KODI 18

After installing any version of the plugin I get an error and the dependencies area shows that inputstream.adaptive and script.module.pycryptodome are unavailable. Nothing I have been able to do gets them to install with the rest of the plugin.

I have tried to install multiple versions (after completely uninstalling between tries). I have tried 0.12.7, 0.12.6, 0.12.5, 0.12.4, 0.12.1, 0.12.0 and various 0.11.x versions with no success.

This seems related to this issue: #200 but I am not running windows but instead OSMC.

Steps to Reproduce

  1. Install KODI 18 alpha onto OSMC nightly
  2. download this repo
  3. put on flash drive
  4. install repo into OSMC
  5. install netflix addon from repo
  6. addon CANNOT install inputstream.adaptive and script.module.pycryptodome

Expected behavior: addon install dependencies and works

Actual behavior: addon fails to install dependencies inputstream.adaptive and script.module.pycryptodome

Context (Environment) OSMC nightly

Installation

  • I installed the plugin via zip from the Releases page
  • I´m using the Netflix Repo
  • I´m using a different source (Please tell which)

Operating System

  • Linux (x86/x64)
  • OSX (x86/x64)
  • Windows (x86/x64)
  • Linux (ARM) - OSMC running on Raspberry Pi 3
  • Android

Additional informatin on the environment

OSMC nightly running on Raspberry Pi 3

Debug log

No idea how to access the debug log in OSMC, everytime I go to the log it is empty despite getting a notice of error being put into it.

@DrCord DrCord changed the title OSMC with Kodi 18 alpha not installing dependencies OSMC with Kodi 18 alpha not installing all dependencies Nov 20, 2017
@gymnae
Copy link

gymnae commented Nov 21, 2017

I second that, faced the same problem yesterday.

@rspierenburg
Copy link

I had the same thing happen to me.

@DrCord
Copy link
Author

DrCord commented Nov 22, 2017

I tried to start over and only install 0.12.4 and that did not work either, exactly the same message about 2 dependencies not being available.

@kommagent
Copy link

Same here. Tried to install inputstream.adaptive and script.module.pycryptodome manually. Did not help.

@eagleeyetom
Copy link

You need to manually enable inputstream in the add-ons.

@DrCord
Copy link
Author

DrCord commented Nov 23, 2017

I've tried that as well as manually installing it and it does not work nor allow you to enable it as far as I can determine. If you want to provide detailed instructions for how to enable it I can try to follow them and let you know if that specifically solves it but I have already attempted enabling the add-on.

@DrCord
Copy link
Author

DrCord commented Nov 23, 2017

I've also tried to install various different nightly builds of kodi 18 with no success...

@gymnae
Copy link

gymnae commented Nov 23, 2017

Inputstream appears in my plugins without having installed it manually. Like @DrCord, it cannot be enabled.
I updated to a new build of OSMC and no change.

@DrCord
Copy link
Author

DrCord commented Nov 23, 2017

@gymnae has the exact same behavior I see with multiple versions of OSMC nightlies. The plugin shows in my add-on list but cannot be enabled.

@kommagent
Copy link

Plugin is enabled here. But it does not solve the problem.

@pinoelefante
Copy link
Contributor

have you installed libwidevine library?

@DrCord
Copy link
Author

DrCord commented Nov 24, 2017

@kommagent agreed, my list of plugins does show inputstream.adaptive as active but this plugin during install shows inputstream.adaptive as "unavailable"

@DrCord
Copy link
Author

DrCord commented Nov 24, 2017

@pinoelefante that does not show as a package that is installable:

sudo apt-get install libwidevine
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libwidevine

I also tried the Ubuntu instructions(which I wouldn't expect to work on raspi really but figured might as well try) from the wiki [https://github.com/asciidisco/plugin.video.netflix/wiki/Installation]:

sudo apt-get install kodi-inputstream-adaptive
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package kodi-inputstream-adaptive

@DrCord DrCord changed the title OSMC with Kodi 18 alpha not installing all dependencies [Bug Report] OSMC with Kodi 18 alpha not installing all dependencies Nov 24, 2017
@pinoelefante
Copy link
Contributor

@DrCord
Copy link
Author

DrCord commented Nov 24, 2017

@pinoelefante output of above command:

ERROR: Unable to determine ARCH for this system!
ERROR: Specify ARCH=arm or ARCH=x86_64 if /etc/os-release does not define a suitable ARCH

also tried running command with ARCH:

curl ARCH=arm -Ls http://nmacleod.com/public/libreelec/getwidevine.sh | bash

and got the same output with the above error.

@rspierenburg
Copy link

rspierenburg commented Nov 24, 2017

Check out the post below, you need to revise the getwidevine script.
https://discourse.osmc.tv/t/how-to-use-netflix-on-osmc-rpi2/11478/18

@DrCord
Copy link
Author

DrCord commented Nov 24, 2017

@rspierenburg tyvm for the information, that seemed like it should work, however it did not...both things installed as the guide you linked to said but it did not make any change in the netflix plugin being able to show them as available dependencies. I restarted the Raspberry Pi 3 after installing from the linked doc. I also uninstalled and reinstalled multiple versions of this plugin to hopefully get it to work after following the instructions, nothing worked to make the 2 dependencies show as available.

@DrCord
Copy link
Author

DrCord commented Nov 26, 2017

I just went to the latest build of OSMC/Kodi (17.8-136, 25 Nov 2017), still no luck, same exact issue.

@gymnae
Copy link

gymnae commented Nov 27, 2017

Maybe this more related to the work of @samnazarko and @osmc ?

@DrCord
Copy link
Author

DrCord commented Nov 27, 2017

If you can tell me a version of OSMC nightly to install that does work for sure then we could proceed down that road. @gymnae

@gymnae
Copy link

gymnae commented Nov 27, 2017

I wish I could, I couldn't get it to run at all. Thus I hoped that mentioning Sam and his project here would maybe trigger an involvement.

@rspierenburg
Copy link

I'm hearing people saying that it doesn't work with OSMC and HW Accerleration (aka OMXPLAYER). I can get mine to play with the omxplayer disabled but its really jerky and the audio and video keep getting out of sync. So if that is the case then, yes the Plugin does technically work for me eventhough it still mentions missing dependencies, but no it is not usable in its current state IMO.

@samnazarko
Copy link

Hi

Thanks for bringing this to my attention.
I don’t keep a close eye on nightlies as much as I should. Users are using Netflix with the latest builds.

If this is a recent regression, can someone point me to a report on the OSMC forum?

Cheers

Sam

@gymnae
Copy link

gymnae commented Nov 27, 2017

Dear Sam, awesome that you post here as well, thank you.
I haven't posted on the forum, but the most up to date discussion regarding netflix and kodi 18 is pertaining the rpi2 and didn't cover the problems described here [1] but mind you, vero4k has the same issues.
[1] https://discourse.osmc.tv/t/how-to-use-netflix-on-osmc-rpi2/11478/33

@samnazarko
Copy link

Cheers. I'll take a look at this shortly.

Sam

@samnazarko
Copy link

CC @StormTrooper

@gymnae
Copy link

gymnae commented Nov 29, 2017

Maybe these two snippets from the log help to identify the problem:

08:04:46.265 T:3528401904   ERROR: Rename - Error renaming file /home/osmc/.kodi/addons/temp/4f0e9737-256f-46f9-99dd-e6845fc3b62c
08:04:46.265 T:3528401904   ERROR: Failed to move new addon files from '/home/osmc/.kodi/addons/temp/4f0e9737-256f-46f9-99dd-e6845fc3b62c' to '/home/osmc/.kodi/addons/plugin.video.netflix'
08:04:57.264 T:3930252272   ERROR: EXCEPTION: Non-Existent Control 300
08:05:08.442 T:3482317808 WARNING: CPythonInvoker(4): Script invoked without an addon. Adding all addon modules installed to python path as fallback. This behaviour will be removed in future version.

20:52:21.893 T:3885315056 WARNING: CPythonInvoker(1, /usr/share/kodi/addons/script.module.osmcsetting.updates/service.py): the python script "/usr/share/kodi/addons/script.module.osmcsetting.updates/service.py" has left several classes in memory that we couldn't clean up. The classes include: N9XBMCAddon7xbmcgui12ControlImageE,N14PythonBindings31XBMCAddon_xbmc_Monitor_DirectorE,N9XBMCAddon7xbmcgui6WindowE

@gymnae
Copy link

gymnae commented Dec 4, 2017

Updated to new nightly and upgrade vero4k to debian stretch - same error

@gymnae
Copy link

gymnae commented Dec 4, 2017

Appreciate your support with this. I did not install a package manually with PIP, I just added the repo.

@gymnae
Copy link

gymnae commented Dec 5, 2017

I managed to get it to install.
Turns out that a previous installed via the repo created a file at /home/osmc/.kodi/addons/plugin.video.netflix instead of a dir. I removed that file and copied the temp folder created by a repo or zip based install over by hand:
cp -r /home/osmc/.kodi/addons/temp/5b0f783f-b12a-4c5d-8216-fa264f1d4040 /home/osmc/.kodi/addons/plugin.video.netflix

Now the plugin starts, I can log in, but nothing plays. Thus I added to the related bug #206, which is closed but seems still pertaining this issue

Content of /home/.kodi/cdm

-rw-r--r-- 1 osmc osmc    1705 Dec  5 22:58 <randomID>.challenge
-rw-r--r-- 1 osmc osmc      52 Dec  5 22:58 <randomID>.init
-rw-r--r-- 1 osmc osmc       0 Dec  5 22:58 E<randomID>.response
lrwxrwxrwx 1 osmc osmc      54 Dec  5 23:01 libssd_wv.so -> /usr/lib/kodi/addons/inputstream.adaptive/libssd_wv.so
-rwxr-xr-x 1 osmc osmc 5122508 Dec  5 22:55 libwidevinecdm.so
drwxr-xr-x 6 osmc osmc    4096 Dec  5 22:57 widevine

@DrCord
Copy link
Author

DrCord commented Dec 6, 2017

The file /home/osmc/.kodi/addons/plugin.video.netflix does not exist on my box so no way to apply this fix to get things working-ish... @gymnae

@gymnae
Copy link

gymnae commented Dec 6, 2017

@DrCord Do you have a folder in /home/osmc/.kodi/addons/temp/ which could be the plug-in stuck there? Do you have log messages which could relate to a copy problem?
In regards to your problem of

ERROR: Unable to determine ARCH for this system!
ERROR: Specify ARCH=arm or ARCH=x86_64 if /etc/os-release does not define a suitable ARCH

run export ARCH=arm before running the command

@tonywagner
Copy link

tonywagner commented Dec 15, 2017

Just encountered a similar issue here, except I am using a 2nd Gen Fire TV stick and the latest Kodi Leia nightly. I manually enabled inputstream.adaptive in the default Kodi repo so Sandmann79's Amazon Video addon works, but those two dependencies (inputstream.adaptive and script.module.pycryptodome) still show as "unavailable" when I try to install the Netflix addon, so it won't install. (Not a big deal as there is a native Netflix app for me, but I do prefer the Kodi interface at times.)

@samnazarko
Copy link

It should now work on Vero 4K, but you still need to manually install the dependencies at this time I think.

osmc/osmc@7e57403 should be included in a GMC nightly shortly.

@gymnae
Copy link

gymnae commented Dec 21, 2017

Not sure if the nightly with the changes has been deployed, but I ran an update of kodi and tried again, still won't play:

0:58:05.552 T:4079677504  NOTICE: VideoPlayer::OpenFile: http://localhost:38286/manifest?id=80028554
20:58:05.553 T:3994022656  NOTICE: Creating InputStream
20:58:08.057 T:3994022656   ERROR: Interface_Filesystem::get_property_values - invalid data (addon='0xee1778d0', file='0xe809ec10')
20:58:10.821 T:3724550912   ERROR: Traceback (most recent call last):
20:58:10.835 T:3724550912   ERROR:   File "/usr/lib/python2.7/SocketServer.py", line 290, in _handle_request_noblock
20:58:10.836 T:3724550912   ERROR:     self.process_request(request, client_address)
20:58:10.836 T:3724550912   ERROR:   File "/usr/lib/python2.7/SocketServer.py", line 318, in process_request
20:58:10.836 T:3724550912   ERROR:     self.finish_request(request, client_address)
20:58:10.836 T:3724550912   ERROR:   File "/usr/lib/python2.7/SocketServer.py", line 331, in finish_request
20:58:10.836 T:3724550912   ERROR:     self.RequestHandlerClass(request, client_address, self)
20:58:10.836 T:3724550912   ERROR:   File "/usr/lib/python2.7/SocketServer.py", line 652, in __init__
20:58:10.836 T:3724550912   ERROR:     self.handle()
20:58:10.836 T:3724550912   ERROR:   File "/usr/lib/python2.7/BaseHTTPServer.py", line 340, in handle
20:58:10.836 T:3724550912   ERROR:     self.handle_one_request()
20:58:10.836 T:3724550912   ERROR:   File "/usr/lib/python2.7/BaseHTTPServer.py", line 328, in handle_one_request
20:58:10.837 T:3724550912   ERROR:     method()
20:58:10.837 T:3724550912   ERROR:   File "/home/osmc/.kodi/addons/plugin.video.netflix/resources/lib/MSLHttpRequestHandler.py", line 41, in do_POST
20:58:10.837 T:3724550912   ERROR:     self.wfile.write(base64.standard_b64decode(b64license))
20:58:10.837 T:3724550912   ERROR:   File "/usr/lib/python2.7/base64.py", line 96, in standard_b64decode
20:58:10.837 T:3724550912   ERROR:     return b64decode(s)
20:58:10.837 T:3724550912   ERROR:   File "/usr/lib/python2.7/base64.py", line 75, in b64decode
20:58:10.837 T:3724550912   ERROR:     return binascii.a2b_base64(s)
20:58:10.837 T:3724550912   ERROR: TypeError: a2b_base64() argument 1 must be string or buffer, not bool
20:58:10.877 T:3994022656   ERROR: AddOnLog: InputStream Adaptive: License update not successful (no keys)
20:58:10.878 T:3994022656   ERROR: AddOnLog: InputStream Adaptive: Initialize failed (SingleSampleDecrypter)
20:58:10.879 T:3994022656   ERROR: CVideoPlayer::OpenInputStream - error opening [http://localhost:38286/manifest?id=80028554]
20:58:10.880 T:3994022656  NOTICE: CVideoPlayer::OnExit()
0:58:05.552 T:4079677504  NOTICE: VideoPlayer::OpenFile: http://localhost:38286/manifest?id=80028554

@StormTrooper
Copy link

Not yet. Build is still running. Will be fixed in 17.8-150

@gymnae
Copy link

gymnae commented Dec 21, 2017

Light speed, thank you :)

@samnazarko
Copy link

Keep an eye out for a new build and the instructions. You’ll need to uninstall and reinstall some addons

@StormTrooper
Copy link

StormTrooper commented Dec 22, 2017

Nighty build uploaded which fixes the issue. (17.8-150)

https://discourse.osmc.tv/t/testing-kodi-18-leia-builds-for-vero-2-4k/23059/216?u=gmc

If you previously had Netflix addon installed you will need to remove and re-install. There is something cached within the addon so even with OSMC fixed it still failed for me until I removed/re-added plugin.

@DrCord
Copy link
Author

DrCord commented Dec 22, 2017

I still get the exact same inputstream adaptive and pycryptodome unavailable dependencies errors as before this new build. On raspberry pi 3. I removed the netflix addon and reinstalled it with no success.

@gymnae
Copy link

gymnae commented Dec 22, 2017

Yeah! it works for me on the vero4k! Awesome! But there are some speed problems...
Here are the steps I followed:

sudo apt-get update
sudo apt-get dist-upgrade

The apt commands might not have been necessary, but for me the GUI update command didn't give me the 150 nightly
To get rid of dependency errors:

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

(thanks to Joakim_Sandstorm of OSMC foum)

  1. Then I deleted the addon via GUI and made sure no residues were left in addons folder via SSH
  2. rebooted
  3. Installed addon again via repo
  4. Was asked for login, logged in

EDIT: Performance is problematic. HEVC or 1080p causes rebuffering and audio / video de-sync - my line is def capable of this speed. And it's not for all files. The following for example is a slow "The Expanse" at 1080p:

8:24:36.658 T:3327910656  NOTICE: Creating Demuxer
18:24:36.660 T:3327910656  NOTICE: Opening stream: 1 source: 256
18:24:36.729 T:3327910656  NOTICE: Creating video codec with codec id: 28
18:24:36.734 T:3327910656  NOTICE: Creating video thread
18:24:36.735 T:3287266048  NOTICE: running thread: video_thread
18:24:36.735 T:3327910656  NOTICE: Opening stream: 2 source: 256
18:24:36.832 T:3327910656  NOTICE: Finding audio codec for: 86057
18:24:36.832 T:3327910656  NOTICE: Creating audio thread
18:24:36.833 T:3327910656  NOTICE: Opening stream: 16 source: 256
18:24:36.833 T:3253424896  NOTICE: running thread: CVideoPlayerAudio::Process()
18:24:37.050 T:3253424896  NOTICE: Creating audio stream (codec id: 86057, channels: 6, sample rate: 48000, pass-through)
18:24:37.580 T:4076302400  NOTICE: Using GL_TEXTURE_2D
18:24:37.580 T:4076302400  NOTICE: GL: Selecting Single Pass YUV 2 RGB shader
18:24:59.950 T:4066374400 WARNING: ActiveAE - large audio sync error: -1073.540655
18:25:08.659 T:4066374400 WARNING: ActiveAE - large audio sync error: -5009.483906
18:25:08.669 T:406

And it works!

@DrCord
Copy link
Author

DrCord commented Dec 22, 2017

This seemed to work for me! no playback slowdown as far as I can tell. Thanks so much for your help!!! @gymnae I've tried 4K video, i'll try 1080p and report back.

@DrCord
Copy link
Author

DrCord commented Dec 22, 2017

the expanse won't come up in my search on netflix and I cannot find any other 1080p video to play. 720p video works fine as well as 4k.

@gymnae
Copy link

gymnae commented Dec 22, 2017

Interesting that 4k works fine for you. I also tried some 1080p movies and the problem was the same for all. I just checked my downstream, it's 90mbits - should be fine

@DrCord
Copy link
Author

DrCord commented Dec 22, 2017

I'll play some stuff today and report back if I see any issues.

@gymnae
Copy link

gymnae commented Dec 22, 2017

It might be a vero4k problem. Just look at the load on the system when streaming a 720p video. There's no performance left for 1080p or more:
screen shot 2017-12-22 at 18 38 39

@DrCord
Copy link
Author

DrCord commented Dec 22, 2017

Yeah, I use a Raspberry Pi 3 with a heat sink for the ram and a dual fan as well as I was having overheating issues once I started running older versions of Kodi LEIA with certain videos, not at all since upgrading to the cooling case...

@samnazarko
Copy link

The decoding isn’t hardware accelerated so is indeed being done in software. We might be able to get some more performance out of this

@DrCord
Copy link
Author

DrCord commented Dec 27, 2017

I've been noticing that certain high def shows the audio and video get out of sync.

@samnazarko
Copy link

The device is probably struggling

@mnt-grrrl
Copy link

I am running rbp2-mediacenter-osmc 17.8-152 and still having this error. Has anyone gotten this to work on the pi (since it seems to be working on the vero)

@samnazarko
Copy link

The dependency error?

This is just a warning provided that you have installed them -- Kodi is unaware that the dependencies are satisfied

@mnt-grrrl
Copy link

I thought so. I get an error when I try and run the plug in but don't see anything new in /var/log what am I missing. How do I get the plugin to be aware the dependencies are satisfied?

Thank you!

@samnazarko
Copy link

We haven't solved that yet -- but it is not necessary for it to work as explained.

@asciidisco
Copy link
Owner

Closing this as it is OS & not plugin related.
Btw.: You´re probably not able to get out more than 720p with software decoding on any ARM powered device atm.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests