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

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

Open
skywinder opened this issue Mar 12, 2025 · 1 comment · May be fixed by #1988
Open

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

skywinder opened this issue Mar 12, 2025 · 1 comment · May be fixed by #1988

Comments

@skywinder
Copy link
Contributor

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
Copy link
Contributor Author

related issue
TeamPyOgg/PyOgg#113 (comment)

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

Successfully merging a pull request may close this issue.

1 participant