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

Doesn't start on Mint 19.3 #45

Open
hahlic opened this issue Dec 4, 2020 · 8 comments
Open

Doesn't start on Mint 19.3 #45

hahlic opened this issue Dec 4, 2020 · 8 comments
Assignees

Comments

@hahlic
Copy link

hahlic commented Dec 4, 2020

Doesn't start from menu. When started from terminal have some errors. Any help :-)

`~$ Traceback (most recent call last):
File "/usr/lib/hypnotix/hypnotix.py", line 24, in import mpv
File "/usr/lib/hypnotix/mpv.py", line 567, in _handle_func('mpv_render_context_create', [MpvRenderCtxHandle, MpvHandle, POINTER(MpvRenderParam)], c_int, ec_errcheck, ctx=None)
File "/usr/lib/hypnotix/mpv.py", line 478, in _handle_func func = getattr(backend, name)
File "/usr/lib/python3.6/ctypes/init.py", line 361, in getattr func = self.getitem(name)
File "/usr/lib/python3.6/ctypes/init.py", line 366, in getitem func = self._FuncPtr((name_or_ordinal, self))
AttributeError: /usr/lib/x86_64-linux-gnu/libmpv.so.1: undefined symbol: mpv_render_context_create
Error in sys.excepthook:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 154, in apport_excepthook
os.O_WRONLY | os.O_CREAT | os.O_EXCL, 0o640), 'wb') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/var/crash/_usr_lib_hypnotix_hypnotix.py.1000.crash'

Original exception was:
Traceback (most recent call last):
File "/usr/lib/hypnotix/hypnotix.py", line 24, in import mpv
File "/usr/lib/hypnotix/mpv.py", line 567, in _handle_func('mpv_render_context_create', [MpvRenderCtxHandle, MpvHandle, POINTER(MpvRenderParam)], c_int, ec_errcheck, ctx=None)
File "/usr/lib/hypnotix/mpv.py", line 478, in _handle_func func = getattr(backend, name)
File "/usr/lib/python3.6/ctypes/init.py", line 361, in getattr func = self.getitem(name)
File "/usr/lib/python3.6/ctypes/init.py", line 366, in getitem func = self._FuncPtr((name_or_ordinal, self))
AttributeError: /usr/lib/x86_64-linux-gnu/libmpv.so.1: undefined symbol: mpv_render_context_create
`

@dwvisser
Copy link

dwvisser commented Dec 5, 2020

I am also on Linux Mint 19.3. I get a slightly different error on launch. I installed the v1.1 .deb, after first installing the imdbpy dependency by downloading a .deb from https://packages.ubuntu.com/focal/all/python3-imdbpy/download.

$ lsb_release -a
LSB Version:	core-9.20170808ubuntu1-noarch:printing-9.20170808ubuntu1-noarch:security-9.20170808ubuntu1-noarch
Distributor ID:	LinuxMint
Description:	Linux Mint 19.3 Tricia
Release:	19.3
Codename:	tricia
$ hypnotix 
Traceback (most recent call last):
  File "/usr/lib/hypnotix/hypnotix.py", line 24, in <module>
    import mpv
  File "/usr/lib/hypnotix/mpv.py", line 567, in <module>
    _handle_func('mpv_render_context_create',               [MpvRenderCtxHandle, MpvHandle, POINTER(MpvRenderParam)],   c_int, ec_errcheck,     ctx=None)
  File "/usr/lib/hypnotix/mpv.py", line 478, in _handle_func
    func = getattr(backend, name)
  File "/usr/lib/python3.6/ctypes/__init__.py", line 361, in __getattr__
    func = self.__getitem__(name)
  File "/usr/lib/python3.6/ctypes/__init__.py", line 366, in __getitem__
    func = self._FuncPtr((name_or_ordinal, self))
AttributeError: /usr/lib/x86_64-linux-gnu/libmpv.so.1: undefined symbol: mpv_render_context_create

@hahlic
Copy link
Author

hahlic commented Dec 5, 2020

You can try python3-imdbpy from this place
http:https://lug.mtu.edu/ubuntu/pool/universe/i/imdbpy/python3-imdbpy_6.8-2_all.deb?
Maybe will help resolve your problem. That is advice from Clem, see by you self :-)
https://blog.linuxmint.com/?p=3983#comments
My problem is maybe related to my processor AMD Ryzen, who knows ???

@clefebvre clefebvre self-assigned this Dec 14, 2020
@clefebvre
Copy link
Member

What version of libmpv do you have?

@hahlic
Copy link
Author

hahlic commented Dec 14, 2020

It say latest available version
libmvp1 0.27.2-1ubuntu1

@clefebvre
Copy link
Member

Ok it looks like this would need an older version of python-mpv: jaseg/python-mpv#116.

@clefebvre
Copy link
Member

We could maybe ship with two versions of python-mpv, check the version of libmpv and depending on that load one or another...

@clefebvre
Copy link
Member

I'm not keen on targeting older releases for development but we could do that as a one-time fix.

@ajoaespinola
Copy link

ajoaespinola commented Dec 23, 2020

I did the workaround of installing an older version of python-mpv (v0.3.9, v0.3.10, v0.4.0, even the last one 0.5.2 just for the lols) but unfortunately didn't work. The same error appears.

ajoa@XXX:~$ lsb_release -a
No LSB modules are available.
Distributor ID:	LinuxMint
Description:	Linux Mint 19.3 Tricia
Release:	19.3
Codename:	tricia
ajoa@XXX:~$ apt list libmpv1 
Listing... Done
libmpv1/bionic,now 0.27.2-1ubuntu1 amd64 [installed]
ajoa@XXX:~$ pip3 list
...
python-mpv (0.3.10)
...
ajoa@XXX:~$ hypnotix 
ajoa@XXX:~$ Traceback (most recent call last):
  File "/usr/lib/hypnotix/hypnotix.py", line 24, in <module>
    import mpv
  File "/usr/lib/hypnotix/mpv.py", line 567, in <module>
    _handle_func('mpv_render_context_create',               [MpvRenderCtxHandle, MpvHandle, POINTER(MpvRenderParam)],   c_int, ec_errcheck,     ctx=None)
  File "/usr/lib/hypnotix/mpv.py", line 478, in _handle_func
    func = getattr(backend, name)
  File "/usr/lib/python3.6/ctypes/__init__.py", line 361, in __getattr__
    func = self.__getitem__(name)
  File "/usr/lib/python3.6/ctypes/__init__.py", line 366, in __getitem__
    func = self._FuncPtr((name_or_ordinal, self))
AttributeError: /usr/lib/x86_64-linux-gnu/libmpv.so.1: undefined symbol: mpv_render_context_create
Error in sys.excepthook:
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 154, in apport_excepthook
    os.O_WRONLY | os.O_CREAT | os.O_EXCL, 0o640), 'wb') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/var/crash/_usr_lib_hypnotix_hypnotix.py.1000.crash'

Original exception was:
Traceback (most recent call last):
  File "/usr/lib/hypnotix/hypnotix.py", line 24, in <module>
    import mpv
  File "/usr/lib/hypnotix/mpv.py", line 567, in <module>
    _handle_func('mpv_render_context_create',               [MpvRenderCtxHandle, MpvHandle, POINTER(MpvRenderParam)],   c_int, ec_errcheck,     ctx=None)
  File "/usr/lib/hypnotix/mpv.py", line 478, in _handle_func
    func = getattr(backend, name)
  File "/usr/lib/python3.6/ctypes/__init__.py", line 361, in __getattr__
    func = self.__getitem__(name)
  File "/usr/lib/python3.6/ctypes/__init__.py", line 366, in __getitem__
    func = self._FuncPtr((name_or_ordinal, self))
AttributeError: /usr/lib/x86_64-linux-gnu/libmpv.so.1: undefined symbol: mpv_render_context_create


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

4 participants