Skip to content

Audio helper commit added helpers package and module #2239

Closed
@tiran

Description

@tiran

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions