Unable to run Flask app on Azure App ImportError: libgthread-2.0.so.0
Unable to run Flask app on Azure App ImportError: libgthread-2.0.so.0
我也尝试将 opencv-python 更改为 opencv-python-headless 但对错误没有影响。我正在将 GitHub 链接到部署中心。
甚至尝试将 libgthread-2.0 添加到 requirements.txt
但没有用。
File "/tmp/8d994faa0eee02e/app.py", line 3, in <module>
2021-10-22T01:34:07.264279725Z import os, sys, cv2, glob
2021-10-22T01:34:07.264282925Z File "/tmp/8d994faa0eee02e/antenv3.6/lib/python3.6/site-packages/cv2/__init__.py", line 5, in <module>
2021-10-22T01:34:07.264286525Z from .cv2 import *
2021-10-22T01:34:07.264289725Z ImportError: libgthread-2.0.so.0: cannot open shared object file: No such file or directory
2021-10-22T01:34:07.272103487Z [2021-10-22 01:34:07 +0000] [39] [INFO] Worker exiting (pid: 39)
2021-10-22T01:34:07.401211514Z [2021-10-22 01:34:07 +0000] [36] [INFO] Shutting down: Master
2021-10-22T01:34:07.402045221Z [2021-10-22 01:34:07 +0000] [36] [INFO] Reason: Worker failed to boot.
我应该怎么做才能摆脱这个错误?
我也尝试将 opencv-python 更改为 opencv-python-headless 但对错误没有影响。我正在将 GitHub 链接到部署中心。
甚至尝试将 libgthread-2.0 添加到 requirements.txt
但没有用。
File "/tmp/8d994faa0eee02e/app.py", line 3, in <module>
2021-10-22T01:34:07.264279725Z import os, sys, cv2, glob
2021-10-22T01:34:07.264282925Z File "/tmp/8d994faa0eee02e/antenv3.6/lib/python3.6/site-packages/cv2/__init__.py", line 5, in <module>
2021-10-22T01:34:07.264286525Z from .cv2 import *
2021-10-22T01:34:07.264289725Z ImportError: libgthread-2.0.so.0: cannot open shared object file: No such file or directory
2021-10-22T01:34:07.272103487Z [2021-10-22 01:34:07 +0000] [39] [INFO] Worker exiting (pid: 39)
2021-10-22T01:34:07.401211514Z [2021-10-22 01:34:07 +0000] [36] [INFO] Shutting down: Master
2021-10-22T01:34:07.402045221Z [2021-10-22 01:34:07 +0000] [36] [INFO] Reason: Worker failed to boot.
我应该怎么做才能摆脱这个错误?