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

kodi: youtube plugin is failing #226613

Closed
dschrempf opened this issue Apr 17, 2023 · 3 comments · Fixed by #227041
Closed

kodi: youtube plugin is failing #226613

dschrempf opened this issue Apr 17, 2023 · 3 comments · Fixed by #227041
Labels
0.kind: bug Something is broken

Comments

@dschrempf
Copy link
Contributor

Describe the bug

When using Kodi with the YouTube plugin , I get the following error:

2023-04-17 11:25:54.137 T:6006    error <general>: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                                    - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                                   Error Type: <class 'ModuleNotFoundError'>
                                                   Error Contents: No module named 'infotagger'
                                                   Traceback (most recent call last):
                                                     File "/nix/store/wc8y1w830in0q9l1zyn5i161d3cmwk15-kodi-20.1-env/share/kodi/addons/plugin.video.youtube/resources/lib/startup.py", line 11, in <module>
                                                       from youtube_plugin.kodion import service
                                                     File "/nix/store/zycslxp5fkzgnfhly0yws6mdb9zzzvrw-kodi-youtube-7.0.1/share/kodi/addons/plugin.video.youtube/resources/lib/youtube_plugin/kodion/__init__.py", line 21, in <module>
                                                       from .impl import Context
                                                     File "/nix/store/zycslxp5fkzgnfhly0yws6mdb9zzzvrw-kodi-youtube-7.0.1/share/kodi/addons/plugin.video.youtube/resources/lib/youtube_plugin/kodion/impl/__init__.py", line 12, in <module>
                                                       from .xbmc.xbmc_context import XbmcContext as Context
                                                     File "/nix/store/zycslxp5fkzgnfhly0yws6mdb9zzzvrw-kodi-youtube-7.0.1/share/kodi/addons/plugin.video.youtube/resources/lib/youtube_plugin/kodion/impl/xbmc/xbmc_context.py", line 29, in <module>
                                                       from .xbmc_playlist import XbmcPlaylist
                                                     File "/nix/store/zycslxp5fkzgnfhly0yws6mdb9zzzvrw-kodi-youtube-7.0.1/share/kodi/addons/plugin.video.youtube/resources/lib/youtube_plugin/kodion/impl/xbmc/xbmc_playlist.py", line 15, in <module>
                                                       from . import xbmc_items
                                                     File "/nix/store/zycslxp5fkzgnfhly0yws6mdb9zzzvrw-kodi-youtube-7.0.1/share/kodi/addons/plugin.video.youtube/resources/lib/youtube_plugin/kodion/impl/xbmc/xbmc_items.py", line 13, in <module>
                                                       from infotagger.listitem import ListItemInfoTag
                                                   ModuleNotFoundError: No module named 'infotagger'
                                                   -->End of Python script error report<--

Steps To Reproduce

Steps to reproduce the behavior:

  1. Use pkgs.kodi-gbm.withPackages (p: with p; [ youtube ]);
  2. Start kodi

Additional context

Notify maintainers

@aanderse
@cpages
@edwtjo
@minijackson
@peterhoeg
@sephalon

Metadata

 - system: `"x86_64-linux"`
 - host os: `Linux 6.1.23, NixOS, 23.05 (Stoat), 23.05.20230411.10193ca`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.14.1`
 - nixpkgs: `/nix/store/67iks6k4id77nzqqbc1w9bi4dcghxfp6-source`
@dschrempf dschrempf added the 0.kind: bug Something is broken label Apr 17, 2023
@aanderse
Copy link
Member

Thanks for catching this. Looks like a pretty straight forward addon to package. Is this something you'd be interested in tackling @dschrempf?

@dschrempf
Copy link
Contributor Author

dschrempf commented Apr 17, 2023

I can, if I find the time! One thing I do not understand is that the infotagger dependency is an old one. I could see that the YouTube plugin is failing because the new dependency inputstream.adaptive is missing, but it seems to fail because of infotagger (which is also not provided by Nixpkgs, but why didn't it fail before?).

dschrempf added a commit to dschrempf/nixpkgs that referenced this issue Apr 19, 2023
Fixes NixOS#226613.

Add `infotagger` plugin and use it.

Two notes on the `infotagger` plugin:

- I used the GitHub source, and not https://kodi.tv/addons/nexus/script.module.infotagger/ which links to http://ftp.halifax.rwth-aachen.de/xbmc/addons/nexus/script.module.infotagger/script.module.infotagger-0.0.7.zip. Not sure if this is a problem (or a feature).

- The `infotagger` plugin has a weird Python path `resources/modules`. I expect this path may change in the upstream module in the future (it is `lib` for all other modules as far as I can see).

I can watch YouTube videos here.

However, this PR does not address the relatively new dependency

```
<import addon="inputstream.adaptive" version="20.3.1"/>
```

I do not get any errors though. I am not sure how to proceed (open another issue?; ignore?).
@ryantrinkle
Copy link
Contributor

I have tested this and it works for me. Thanks @dschrempf!

dschrempf added a commit to dschrempf/nixpkgs that referenced this issue May 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: bug Something is broken
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants