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

Library dependency issue between httpx and openai #55

Closed
jaemin-shin opened this issue Jan 5, 2025 · 2 comments
Closed

Library dependency issue between httpx and openai #55

jaemin-shin opened this issue Jan 5, 2025 · 2 comments

Comments

@jaemin-shin
Copy link

jaemin-shin commented Jan 5, 2025

Hi, first of all, thank you for open-sourcing such an exciting project!

I noticed a bug after trying this repository on my laptop (M1 Pro Macbook) on a Python 3.11 conda environment, as instructed in README.md.

Current installation of SeeAct requires openai package of version 1.24.0, which results in following error (when running code in Usage in README):

  File "/opt/miniconda3/envs/seeact/lib/python3.11/site-packages/openai/_base_client.py", line 825, in __init__
    self._client = http_client or SyncHttpxClientWrapper(
                                  ^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/miniconda3/envs/seeact/lib/python3.11/site-packages/openai/_base_client.py", line 723, in __init__
    super().__init__(**kwargs)
TypeError: Client.__init__() got an unexpected keyword argument 'proxies'

This is because installing openai package installs up-to-date httpx package, which currently do not have proxies argument in their httpx.Client object.

To solve this issue, I suggest to add version requirement of httpx package of version 0.27.0, which was the up-to-date version of httpx package when openai==1.24.0 was released.

Thank you very much for your great work!

@boyuanzheng010
Copy link
Collaborator

Thanks for your interest in our work and your help to improve our codebase! @jaemin-shin We will sure include the updated httpx in the next version! Thanks again for your suggestion!

@duz-sg
Copy link
Collaborator

duz-sg commented Jan 15, 2025

A new version of the package 0.2.9.0 has been released to pin the httpx version to 0.27.2.
This issue is fixed.

@duz-sg duz-sg closed this as completed Jan 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants