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

the latest openai version has problem with httpx library when compile to app. #1765

Open
1 task done
Pjumpod opened this issue Oct 1, 2024 · 2 comments
Open
1 task done
Labels
bug Something isn't working

Comments

@Pjumpod
Copy link

Pjumpod commented Oct 1, 2024

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

I found this error when update the openai to new version.

Referenced from: <198A9232-F82E-3E0A-92CB-D131D45DBB4F> /xx/_ssl.cpython-312-darwin.so
Expected in: <284AF566-569A-311D-8493-DC6928BBD628> /xx/libcrypto.3.dylib
Failed to execute script 'main' due to unhandled exception: dlopen(/xxx/Frameworks/lib-dynload/_ssl.cpython-312-darwin.so, 0x0002): Symbol not found: _X509_STORE_get1_objects

File "openai/init.py", line 8, in
File "openai/types/init.py", line 5, in
File "openai/types/batch.py", line 7, in
File "openai/_models.py", line 26, in
File "openai/_types.py", line 21, in
File "httpx/init.py", line 2, in

To Reproduce

  1. write a sample code and import the latest openai.
  2. compile file with pyinstaller on macOS.
  3. run the execute file and found this issue.

Code snippets

the problem looks lead to httpx library which calling by openai.
Not sure if it need the specific version or latest version of the library?

OS

macOS

Python version

Python 3.12

Library version

openai 1.50.2

@Pjumpod Pjumpod added the bug Something isn't working label Oct 1, 2024
@RobertCraigie
Copy link
Collaborator

Thanks for the report @Pjumpod, what version was last working for you?

@Pjumpod
Copy link
Author

Pjumpod commented Oct 1, 2024

Thanks for the report @Pjumpod, what version was last working for you?

Thank you for asking.
My latest work version is
openai 1.47.0 and cryptography 43.0.0 but I cannot recall the httx version.

ps: it has no issue if run by python.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants