PyOgg icon indicating copy to clipboard operation
PyOgg copied to clipboard

from pyogg import OpusDecoder error

Open cklam12345 opened this issue 1 year ago • 2 comments

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'?

cklam12345 avatar Sep 24 '24 08:09 cklam12345

@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

kalradivyanshu avatar Oct 07 '24 17:10 kalradivyanshu

I am using mac os x m1 and this works for me https://github.com/TeamPyOgg/PyOgg/issues/113#issuecomment-2585724522

ozanyurt avatar Jan 12 '25 12:01 ozanyurt