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

Audio helper commit added helpers package and module #2239

Closed
1 task done
tiran opened this issue Mar 21, 2025 · 3 comments
Closed
1 task done

Audio helper commit added helpers package and module #2239

tiran opened this issue Mar 21, 2025 · 3 comments
Labels
bug Something isn't working

Comments

@tiran
Copy link

tiran commented Mar 21, 2025

Confirm this is an issue with the Python library and not an underlying OpenAI API

  • This is an issue with the Python library

Describe the bug

The commit 8136a21 add both an module openai/helpers.py and a package openai/helpers/__init__.py. You cannot have both a module and a package with the same name. If both are present, then Python's import system ignores the module and only imports the package.

I recommend to remove openai/helpers.py.

To Reproduce

>>> import openai.helpers
>>> openai.helpers
<module 'openai.helpers' from '/home/cheimes/tmp/venv/lib64/python3.12/site-packages/openai/helpers/__init__.py'>

Code snippets

OS

any

Python version

any

Library version

1.68

@tiran tiran added the bug Something isn't working label Mar 21, 2025
@jp-agenta
Copy link

jp-agenta commented Mar 21, 2025

This ☝ might be related to
This 👉 #2238

@RobertCraigie

@tiran
Copy link
Author

tiran commented Mar 21, 2025

It is related. @rd4398 and I are on the same team. I filed this separately because it's a different kind of issue.

@RobertCraigie
Copy link
Collaborator

Thanks, this will also be fixed in the next release. #2236

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants