PyOgg Import Issue: `name 'c_int_p' / 'c_uchar_p' is not defined`
It is currently not possible to run the backend according to the documentation due to an import issue with PyOgg. Attempting to start the server results in the following error:
name ‘c_int_p’ is not defined
which prevents the Opus codec from being available.
Error Details
From the main branch, I encountered the following error:
libopus.opus_encode.argtypes = [oe_p, opus_int16_p, c_int, c_uchar_p, opus_int32] NameError: name ‘c_uchar_p’ is not defined. Did you mean: ‘c_char_p’?
On #1981, the issue persists:
WARNING:root:PyOgg import failed: name 'c_uchar_p' is not defined. Opus codec will not be available.
Attempts to Resolve
@mdMohsin7 suggested trying the following:
- Installing
wheel - Uninstalling
pyogg - Reinstalling
pyogg
However, this did not resolve the issue.
Help Needed
Looking for assistance in identifying the root cause and resolving this issue so that the backend can run properly. Any insights or suggestions would be greatly appreciated!
related issue https://github.com/TeamPyOgg/PyOgg/issues/113#issuecomment-2585724522
Will close it.
Just in case: if you cause this issue - as a workaround use docker as safer and reproducible option to build