Skip to content

Broken Package: python3-openai / Package Request: python3-jiter #53735

Description

@ananteris

Is this a new report?

Yes

System Info

Void 6.6.61_1 x86_64 GenuineIntel notuptodate rrrrmdFFFFFFF

Package(s) Affected

python3-openai 1.12.0_2

Does a report exist for this bug with the project's home (upstream) and/or another distro?

No response

Expected behaviour

The python library should be compatible with the last package revision.

Actual behaviour

Attempting to use the API will result in a python failure:

Traceback (most recent call last):
  File "/usr/local/bin/ai", line 7, in <module>
    client = OpenAI(
      api_key="sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
    )
  File "/usr/lib/python3.13/site-packages/openai/_client.py", line 112, in __init__
    super().__init__(
    ~~~~~~~~~~~~~~~~^
        version=__version__,
        ^^^^^^^^^^^^^^^^^^^^
    ...<6 lines>...
        _strict_response_validation=_strict_response_validation,
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
  File "/usr/lib/python3.13/site-packages/openai/_base_client.py", line 793, in __init__
    self._client = http_client or SyncHttpxClientWrapper(
                                  ~~~~~~~~~~~~~~~~~~~~~~^
        base_url=base_url,
        ^^^^^^^^^^^^^^^^^^
    ...<5 lines>...
        follow_redirects=True,
        ^^^^^^^^^^^^^^^^^^^^^^
    )
    ^

I am attempting to get a working update for python3-openai however there is a new dependency for python3-jiter using cargo/rust which I am not particularly familiar with. If anyone is familiar with cargo/rust packages and would take a shot at it I would greatly appreciate it. In the mean time the package is broken, I will attempt to work at it some over the holidays.

Steps to reproduce

  1. Do the install python3-openai thing
  2. Try to initialize an OpenAI client
client = OpenAI(
  api_key="sk-yourtotallyvalidopenaiapikey",
)
  1. Run it

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingneeds-testingTesting a PR or reproducing an issue needed

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions