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

Error on startup. #28

Open
MikeCase opened this issue Jun 4, 2022 · 1 comment
Open

Error on startup. #28

MikeCase opened this issue Jun 4, 2022 · 1 comment

Comments

@MikeCase
Copy link

MikeCase commented Jun 4, 2022

Using python 3.10 in a fresh virtualenv. However, I have installed it without a virtualenv in with python 3.8 and received roughly the same error I'm not sure if this is a problem with the version of mpv/libmpv I have installed on my system or if it's an issue with python-mpv. OR if it's just a minor bug in ytermplayer.

Linux distro/version

No LSB modules are available.
Distributor ID: Linuxmint
Description: Linux Mint 20.3
Release: 20.3
Codename: una

Software Versions

mpv: 0.32.0
libmpv: 0.32.0
python-mpv: 1.0.1
python: 3.8 | 3.10
venv | no venv

The traceback

Traceback (most recent call last): File "/home/splaq/.config/venv/py310testing/bin/yterm", line 5, in <module> from yTermPlayer.__main__ import main File "/home/splaq/.config/venv/py310testing/lib/python3.10/site-packages/yTermPlayer/__main__.py", line 11, in <module> from .music_api import YoutubePlayer File "/home/splaq/.config/venv/py310testing/lib/python3.10/site-packages/yTermPlayer/music_api.py", line 11, in <module> import mpv File "/home/splaq/.config/venv/py310testing/lib/python3.10/site-packages/mpv.py", line 579, in <module> _handle_func('mpv_event_to_node', [POINTER(MpvNode), POINTER(MpvEvent)], c_int, ec_errcheck, ctx=None) File "/home/splaq/.config/venv/py310testing/lib/python3.10/site-packages/mpv.py", line 502, in _handle_func func = getattr(backend, name) File "/usr/lib/python3.10/ctypes/__init__.py", line 387, in __getattr__ func = self.__getitem__(name) File "/usr/lib/python3.10/ctypes/__init__.py", line 392, in __getitem__ func = self._FuncPtr((name_or_ordinal, self)) AttributeError: /lib/x86_64-linux-gnu/libmpv.so.1: undefined symbol: mpv_event_to_node. Did you mean: 'mpv_event_name'?
'

@MikeCase
Copy link
Author

MikeCase commented Jun 4, 2022

So upon further review of the issue, I just commented that line out in the mpv.py (line #579) file and it loaded. Haven't tested the application beyond that however. I do realize this isn't the correct fix for the issue, but it seems to have worked for at least a simple workaround for the time being.

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

1 participant