void-linux / void-linux/void-packages
Broken Package: python3-openai / Package Request: python3-jiter
Nobody has claimed this yet.
- Dominant language
- Shell
- Stars
- 3.4k
- Forks
- 2.8k
- Avg merge
- 2d 5h
- Merged PRs (30d)
- 299
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
- Do the install python3-openai thing
- Try to initialize an OpenAI client
client = OpenAI(
api_key="sk-yourtotallyvalidopenaiapikey",
)
- Run it
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the python3-openai package and the reported Python 3.13 traceback, then investigate the requested python3-jiter dependency and its cargo/Rust packaging requirements. Reproduce the OpenAI client initialization failure and confirm that the package revision works with its dependency available.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python, rust
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100