Package Details: jellyfin-mpv-shim 2.6.0-2

Git Clone URL: https://aur.archlinux.org/jellyfin-mpv-shim.git (read-only, click to copy)
Package Base: jellyfin-mpv-shim
Description: Cast media from Jellyfin Mobile and Web apps to MPV
Upstream URL: https://github.com/jellyfin/jellyfin-mpv-shim
Licenses: MIT
Submitter: kruzah
Maintainer: anonfunc
Last Packager: anonfunc
Votes: 22
Popularity: 1.79
First Submitted: 2020-04-01 14:52 (UTC)
Last Updated: 2024-03-23 19:22 (UTC)

Dependencies (17)

Required by (0)

Sources (1)

Latest Comments

« First ‹ Previous 1 2 3 4 5 Next › Last »

NGGJamie commented on 2021-12-15 22:51 (UTC) (edited on 2022-03-20 11:14 (UTC) by NGGJamie)

To fix the recent errors, you have to cleanbuild the python dependencies for the newest version of python. So, if you're using yay for example, yay -S --answerclean All python-mpv-jsonipc python-jellyfin-apiclient python-setuptools as well as any optional python libraries you're using.

chrisqq commented on 2021-12-15 05:00 (UTC) (edited on 2021-12-15 05:03 (UTC) by chrisqq)

Hi I am also getting an error, it's slightly different than l4kr's error:

Traceback (most recent call last):
  File "/usr/bin/jellyfin-mpv-shim", line 33, in <module>
    sys.exit(load_entry_point('jellyfin-mpv-shim==2.0.1', 'console_scripts', 'jellyfin-mpv-shim')())
  File "/usr/bin/jellyfin-mpv-shim", line 22, in importlib_load_entry_point
    for entry_point in distribution(dist_name).entry_points
  File "/usr/lib/python3.10/importlib/metadata/__init__.py", line 919, in distribution
    return Distribution.from_name(distribution_name)
  File "/usr/lib/python3.10/importlib/metadata/__init__.py", line 518, in from_name
    raise PackageNotFoundError(name)
importlib.metadata.PackageNotFoundError: No package metadata was found for jellyfin-mpv-shim

l4kr commented on 2021-12-14 16:51 (UTC) (edited on 2021-12-14 16:52 (UTC) by l4kr)

Hi, I'm getting these lines when running jellyfin-mpv-shim:

Traceback (most recent call last):
File "/usr/bin/jellyfin-mpv-shim", line 33, in <module>
sys.exit(load_entry_point('jellyfin-mpv-shim==2.0.1', 'console_scripts', 'jellyfin-mpv-shim')())
File "/usr/bin/jellyfin-mpv-shim", line 25, in importlib_load_entry_point
return next(matches).load()
File "/usr/lib/python3.10/importlib/metadata/__init__.py", line 162, in load
module = import_module(match.group('module'))
File "/usr/lib/python3.10/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 883, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "/usr/lib/python3.10/site-packages/jellyfin_mpv_shim/mpv_shim.py", line 11, in <module>
from .clients import clientManager
File "/usr/lib/python3.10/site-packages/jellyfin_mpv_shim/clients.py", line 1, in <module>
from jellyfin_apiclient_python import JellyfinClient
ModuleNotFoundError: No module named 'jellyfin_apiclient_python'

kruzah commented on 2021-03-13 21:00 (UTC)

@sseneca Looks like an issue with the python-pydantic dependency. I checked the change history on that package, and it seems that the maintainers picked up on that a few hours after your post, so it should be fixed now.

sseneca commented on 2021-03-13 09:40 (UTC) (edited on 2021-03-13 09:40 (UTC) by sseneca)

I suddenly started getting this error today:

Traceback (most recent call last):
  File "/usr/bin/jellyfin-mpv-shim", line 33, in <module>
    sys.exit(load_entry_point('jellyfin-mpv-shim==1.8.1', 'console_scripts', 'jellyfin-mpv-shim')())
  File "/usr/bin/jellyfin-mpv-shim", line 25, in importlib_load_entry_point
    return next(matches).load()
  File "/usr/lib/python3.9/importlib/metadata.py", line 77, in load
    module = import_module(match.group('module'))
  File "/usr/lib/python3.9/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 790, in exec_module
  File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
  File "/usr/lib/python3.9/site-packages/jellyfin_mpv_shim/mpv_shim.py", line 9, in <module>
    from . import i18n
  File "/usr/lib/python3.9/site-packages/jellyfin_mpv_shim/i18n.py", line 4, in <module>
    from .conf import settings
  File "/usr/lib/python3.9/site-packages/jellyfin_mpv_shim/conf.py", line 9, in <module>
    from pydantic import BaseModel
  File "/usr/lib/python3.9/site-packages/pydantic/__init__.py", line 2, in <module>
    from . import dataclasses
  File "/usr/lib/python3.9/site-packages/pydantic/dataclasses.py", line 3, in <module>
    from .class_validators import gather_all_validators
  File "/usr/lib/python3.9/site-packages/pydantic/class_validators.py", line 8, in <module>
    from .errors import ConfigError
  File "/usr/lib/python3.9/site-packages/pydantic/errors.py", line 5, in <module>
    from .typing import display_as_type
  File "/usr/lib/python3.9/site-packages/pydantic/typing.py", line 23, in <module>
    from typing_extensions import Annotated, Literal
ModuleNotFoundError: No module named 'typing_extensions'

Installing python-typing_extensions fixed this for me, so if others are having it this issue it should be added to depends

kruzah commented on 2021-01-07 13:41 (UTC) (edited on 2021-01-07 13:42 (UTC) by kruzah)

Thanks @triatk. The issue appears to be python-pystray missing gobject as a dependency - I've forwarded the report to that package's maintainer, hopefully that should fix the dependency issue.

The blue screen issue is tracked upstream in this issue. It appears to be caused by graphics backend problems or something being broken in libmpv1 on KDE. Possible fixes include setting mpv_ext to true in Jellyfin MPV Shim's config file, or switching graphics renderer from OpenGL to Vulkan. You could check the linked issue and see if any of the solutions work for you.

triatk commented on 2021-01-04 08:53 (UTC) (edited on 2021-01-08 16:55 (UTC) by triatk)

@kruzah without gobject, the systray wont show under KDE, the video playback is normal. after install it, the systray is working but the video playback is bluescreen.

2021-01-04 09:50:39,381 [    INFO] conf: Loaded settings from json: 
    /home/xavier/.config/jellyfin-mpv-shim/conf.json
    2021-01-04 09:50:39,481 [    INFO] player: Using libmpv1 playback backend.
    Exception in thread Thread-4:
    Traceback (most recent call last):
      File "/usr/lib/python3.9/threading.py", line 954, in bootstrap_inner
        self.run()
      File "/usr/lib/python3.9/site-packages/jellyfin_mpv_shim/gui_mgr.py", line 179, in 
    run
        self.queue = Queue()
      File "/usr/lib/python3.9/multiprocessing/context.py", line 102, in Queue
        from .queues import Queue
    ImportError: cannot import name 'Queue' from partially initialized module 
    'multiprocessing.queues' (most likely due to a circular import) 
    (/usr/lib/python3.9/multiprocessing/queues.py)
    Process STrayProcess-1:
    Traceback (most recent call last):
      File "/usr/lib/python3.9/multiprocessing/process.py", line 315, in _bootstrap
        self.run()
      File "/usr/lib/python3.9/site-packages/jellyfin_mpv_shim/gui_mgr.py", line 439, in 
    run
        from pystray import Icon, MenuItem, Menu
      File "/usr/lib/python3.9/site-packages/pystray/__init__.py", line 48, in <module>
        Icon = backend().Icon
      File "/usr/lib/python3.9/site-packages/pystray/__init__.py", line 40, in backend
        return importlib.import_module(__package__ + '.' + module)
      File "/usr/lib/python3.9/importlib/init.py", line 127, in import_module
        return _bootstrap._gcd_import(name[level:], package, level)
      File "/usr/lib/python3.9/site-packages/pystray/_appindicator.py", line 19, in 
    <module>
        gi.require_version('Gtk', '3.0')
    AttributeError: module 'gi' has no attribute 'require_version'
Update: Thanks @kruzah. After the python-pystray update, the systray is working and after edit the config mpv_ext to true, the video playback is back to normal now.