the latest openai version has problem with httpx library when compile to app.
Confirm this is an issue with the Python library and not an underlying OpenAI API
- [X] 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
To Reproduce
- write a sample code and import the latest openai.
- compile file with pyinstaller on macOS.
- 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
Thanks for the report @Pjumpod, what version was last working for you?
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.
I do not open this issue too long, as it is not the own code of open-ai
@Pjumpod Did you find a solution to this problem, while using python3.12?
@Pjumpod Did you find a solution to this problem, while using python3.12?
you can use the latest version of openai. it was fixed.