dmMaze / BallonsTranslator

深度学习辅助漫画翻译工具, 支持一键机翻和简单的图像/文本编辑 | Yet another computer-aided comic/manga translation tool powered by deeplearning
GNU General Public License v3.0
2.82k stars 184 forks source link

mac 上直接run,是正常的,但是打包后启动报错Symbol not found: _X509_STORE_get1_objects #502

Open markwu24 opened 5 months ago

markwu24 commented 5 months ago

如题,源码运行没有问题; mac 上按照说明文档打包也是成功的,但运行时报

    import openai
  File "PyInstaller/loader/pyimod02_importers.py", line 419, in exec_module
  File "openai/__init__.py", line 8, in <module>
  File "PyInstaller/loader/pyimod02_importers.py", line 419, in exec_module
  File "openai/types/__init__.py", line 5, in <module>
  File "PyInstaller/loader/pyimod02_importers.py", line 419, in exec_module
  File "openai/types/batch.py", line 7, in <module>
  File "PyInstaller/loader/pyimod02_importers.py", line 419, in exec_module
  File "openai/_models.py", line 24, in <module>
  File "PyInstaller/loader/pyimod02_importers.py", line 419, in exec_module
  File "openai/_types.py", line 21, in <module>
  File "PyInstaller/loader/pyimod02_importers.py", line 419, in exec_module
  File "httpx/__init__.py", line 2, in <module>
  File "PyInstaller/loader/pyimod02_importers.py", line 419, in exec_module
  File "httpx/_api.py", line 6, in <module>
  File "PyInstaller/loader/pyimod02_importers.py", line 419, in exec_module
  File "httpx/_client.py", line 12, in <module>
  File "PyInstaller/loader/pyimod02_importers.py", line 419, in exec_module
  File "httpx/_auth.py", line 12, in <module>
  File "PyInstaller/loader/pyimod02_importers.py", line 419, in exec_module
  File "httpx/_models.py", line 11, in <module>
  File "PyInstaller/loader/pyimod02_importers.py", line 419, in exec_module
  File "httpx/_content.py", line 17, in <module>
  File "PyInstaller/loader/pyimod02_importers.py", line 419, in exec_module
  File "httpx/_multipart.py", line 8, in <module>
  File "PyInstaller/loader/pyimod02_importers.py", line 419, in exec_module
  File "httpx/_types.py", line 5, in <module>
  File "PyInstaller/loader/pyimod02_importers.py", line 419, in exec_module
  File "ssl.py", line 100, in <module>
ImportError: dlopen(/Users/mark_by/workspace/test/BallonsTranslator/dist/launch/_internal/lib-dynload/_ssl.cpython-312-darwin.so, 0x0002): Symbol not found: _X509_STORE_get1_objects
  Referenced from: <198A9232-F82E-3E0A-92CB-D131D45DBB4F> /Users/mark_by/workspace/test/BallonsTranslator/dist/launch/_internal/lib-dynload/_ssl.cpython-312-darwin.so
  Expected in:     <284AF566-569A-311D-8493-DC6928BBD628> /Users/mark_by/workspace/test/BallonsTranslator/dist/launch/_internal/cv2/.dylibs/libcrypto.3.dylib

有人知道是哪里出现问题了吗,本地openssl是 3.3版本的

N4RUTOP commented 4 months ago

我也遇到了,我把pyinstaller链的libcrypto.3.dylib替换成我从brew下载的libcrypto.3.dylib就行了

hyrulelinks commented 1 week ago

我也遇到了,我把pyinstaller链的libcrypto.3.dylib替换成我从brew下载的libcrypto.3.dylib就行了

具体如何操作的可否教一下,谢谢哈 @N4RUTOP