0

我有一个文件 scraper.py 导入QWebEnginePage.

当我使用它在 aws 上部署它时,eb deploy它无法启动应用程序并退出并出现以下错误:

Traceback (most recent call last):
  File "/opt/python/current/app/application.py", line 6, in <module>
    from menu import kult_menuholder
  File "/opt/python/current/app/menu/kult_menuholder.py", line 2, in <module>
    import scraper
  File "/opt/python/current/app/scraper.py", line 82, in <module>
    from PyQt5.QtWebEngineWidgets import QWebEnginePage
ImportError: libGL.so.1: cannot open shared object file: No such file or directory
mod_wsgi (pid=5845): Target WSGI script '/opt/python/current/app/application.py' cannot be loaded as Python module.
mod_wsgi (pid=5845): Exception occurred processing WSGI script '/opt/python/current/app/application.py

PyQt5 由 pip 安装。

我无法在 Windows 机器上本地重现此内容。帮助或任何建议将不胜感激。

4

0 回答 0