omi icon indicating copy to clipboard operation
omi copied to clipboard

PyOgg Import Issue: `name 'c_int_p' / 'c_uchar_p' is not defined`

Open skywinder opened this issue 11 months ago • 1 comments

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:

  1. Installing wheel
  2. Uninstalling pyogg
  3. 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!

Fix attempt PR: #1988
Related PR: #1981

skywinder avatar Mar 12 '25 17:03 skywinder

related issue https://github.com/TeamPyOgg/PyOgg/issues/113#issuecomment-2585724522

skywinder avatar Mar 12 '25 17:03 skywinder

Will close it.

Just in case: if you cause this issue - as a workaround use docker as safer and reproducible option to build

skywinder avatar Jun 01 '25 14:06 skywinder