pursuedpybear
pursuedpybear copied to clipboard
Linux "ppb.systems._sdl_utils.SdlMixerError: Error calling Mix_Init: OGG support not available"
I have tried your code from README file (about Ship), and I got an error:
Traceback (most recent call last):
File "ship.py", line 14, in <module>
ppb.run(setup=setup)
File "/home/adasiek/.local/lib/python3.6/site-packages/ppb/__init__.py", line 122, in run
with make_engine(setup, starting_scene=starting_scene, title=title, **engine_opts) as eng:
File "/home/adasiek/.local/lib/python3.6/site-packages/ppb/engine.py", line 107, in __enter__
self.start_systems()
File "/home/adasiek/.local/lib/python3.6/site-packages/ppb/engine.py", line 124, in start_systems
self.exit_stack.enter_context(system)
File "/usr/lib/python3.6/contextlib.py", line 330, in enter_context
result = _cm_type.__enter__(cm)
File "/home/adasiek/.local/lib/python3.6/site-packages/ppb/systems/sound.py", line 88, in __enter__
mix_call(Mix_Init, MIX_INIT_FLAC | MIX_INIT_MOD | MIX_INIT_MP3 | MIX_INIT_OGG)
File "/home/adasiek/.local/lib/python3.6/site-packages/ppb/systems/_sdl_utils.py", line 94, in mix_call
raise SdlMixerError(f"Error calling {func.__name__}: {err.decode('utf-8')}")
ppb.systems._sdl_utils.SdlMixerError: Error calling Mix_Init: OGG support not available
My system is:
adasiek@mint-desktop:~/tmp$ python3
Python 3.6.9 (default, Apr 18 2020, 01:56:04)
[GCC 8.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>
adasiek@mint-desktop:~/tmp$ lsb_release -a
No LSB modules are available.
Distributor ID: LinuxMint
Description: Linux Mint 19.3 Tricia
Release: 19.3
Codename: tricia
adasiek@mint-desktop:~/tmp$ uname -a
Linux mint-desktop 4.15.0-108-generic #109-Ubuntu SMP Fri Jun 19 11:33:10 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
I have tried to remark (comment out) every one type in line 88:
mix_call(Mix_Init, MIX_INIT_FLAC | MIX_INIT_MOD | MIX_INIT_MP3 | MIX_INIT_OGG)
but with no success.
Python bindings to SDL2 in my system is:
ii python3-sdl2 0.9.3+dfsg2-1 all Python bindings to the SDL2 C-library (Python 3