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

from pyogg import OpusDecoder error #112

Open
cklam12345 opened this issue Sep 24, 2024 · 1 comment
Open

from pyogg import OpusDecoder error #112

cklam12345 opened this issue Sep 24, 2024 · 1 comment

Comments

@cklam12345
Copy link

cklam12345 commented Sep 24, 2024

Traceback (most recent call last):
File "", line 1, in
File "PyOgg-master/pyogg/init.py", line 6, in
from .opus import PYOGG_OPUS_AVAIL, PYOGG_OPUS_FILE_AVAIL, PYOGG_OPUS_ENC_AVAIL
File "PyOgg-master/pyogg/opus.py", line 437, in
libopus.opus_encoder_create.argtypes = [opus_int32, c_int, c_int, c_int_p]
^^^^^^^
NameError: name 'c_int_p' is not defined. Did you mean: 'c_int'?

@kalradivyanshu
Copy link

kalradivyanshu commented Oct 7, 2024

@cklam12345 c_int_p is defined in libopus, you need to install all the dependencies:

sudo apt install libogg-dev libopusenc-dev libflac-dev libopusfile-dev libopus-dev libvorbis-dev

See: https://pyogg.readthedocs.io/en/latest/installation.html#linux

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

2 participants