From 18835254916e7a809eb9bee0109754451f944a1b Mon Sep 17 00:00:00 2001 From: PROJECT ZERO <56379955+ProjectZeroDays@users.noreply.github.com> Date: Tue, 21 Jan 2025 08:57:56 -0600 Subject: [PATCH] Fix PyQt5 import error by installing libgl1-mesa-glx Add installation of `libgl1-mesa-glx` package to `infra/Dockerfile`. * Update `infra/Dockerfile` to include the installation of `libgl1-mesa-glx` package. * Ensure the application starts without the 'libGL.so.1: cannot open shared object file' error. --- For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/ProjectZeroDays/Project-Red-Sword/tree/Your-Momma-Beeotch?shareId=XXXX-XXXX-XXXX-XXXX). --- frontend/archive_gui.py | 2 +- infra/Dockerfile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/archive_gui.py b/frontend/archive_gui.py index 28e9cfc..059556c 100644 --- a/frontend/archive_gui.py +++ b/frontend/archive_gui.py @@ -29,4 +29,4 @@ def analyze_sources(self): app = QApplication(sys.argv) ex = ArchiveGUI() ex.show() - sys.exit(app.exec_()) \ No newline at end of file + sys.exit(app.exec_()) diff --git a/infra/Dockerfile b/infra/Dockerfile index 7add473..91a868e 100644 --- a/infra/Dockerfile +++ b/infra/Dockerfile @@ -1,4 +1,3 @@ - # Base image FROM python:3.9-slim @@ -9,6 +8,7 @@ WORKDIR /app COPY . . # Install dependencies +RUN apt-get update && apt-get install -y libgl1-mesa-glx RUN pip install -r requirements.txt # Expose application port