Github messages for voidlinux
 help / color / mirror / Atom feed
* [ISSUE] Broken Package: python3-openai / Package Request: python3-jiter
@ 2024-12-28 14:24 ananteris
  2024-12-29 19:41 ` Eloitor
  2025-01-14 12:40 ` ananteris
  0 siblings, 2 replies; 3+ messages in thread
From: ananteris @ 2024-12-28 14:24 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 2064 bytes --]

New issue by ananteris on void-packages repository

https://github.com/void-linux/void-packages/issues/53735

Description:
### 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",
)
```
3. Run it


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Broken Package: python3-openai / Package Request: python3-jiter
  2024-12-28 14:24 [ISSUE] Broken Package: python3-openai / Package Request: python3-jiter ananteris
@ 2024-12-29 19:41 ` Eloitor
  2025-01-14 12:40 ` ananteris
  1 sibling, 0 replies; 3+ messages in thread
From: Eloitor @ 2024-12-29 19:41 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 293 bytes --]

New comment by Eloitor on void-packages repository

https://github.com/void-linux/void-packages/issues/53735#issuecomment-2564821896

Comment:
I'd like to have `python3-openai`. Meanwhile you can use `uv` to use it in a local environment:
```
uv add --script ai.py openai
uv run ai.py
```

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Broken Package: python3-openai / Package Request: python3-jiter
  2024-12-28 14:24 [ISSUE] Broken Package: python3-openai / Package Request: python3-jiter ananteris
  2024-12-29 19:41 ` Eloitor
@ 2025-01-14 12:40 ` ananteris
  1 sibling, 0 replies; 3+ messages in thread
From: ananteris @ 2025-01-14 12:40 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 214 bytes --]

New comment by ananteris on void-packages repository

https://github.com/void-linux/void-packages/issues/53735#issuecomment-2589811720

Comment:
A workaround for this issue is forcing python3-httpx to be <= 0.25.2

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-01-14 12:40 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-12-28 14:24 [ISSUE] Broken Package: python3-openai / Package Request: python3-jiter ananteris
2024-12-29 19:41 ` Eloitor
2025-01-14 12:40 ` ananteris

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).