Skip to content

Commit 1883525

Browse files
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).
1 parent 3e2a8f3 commit 1883525

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

frontend/archive_gui.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,4 @@ def analyze_sources(self):
2929
app = QApplication(sys.argv)
3030
ex = ArchiveGUI()
3131
ex.show()
32-
sys.exit(app.exec_())
32+
sys.exit(app.exec_())

infra/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
# Base image
32
FROM python:3.9-slim
43

@@ -9,6 +8,7 @@ WORKDIR /app
98
COPY . .
109

1110
# Install dependencies
11+
RUN apt-get update && apt-get install -y libgl1-mesa-glx
1212
RUN pip install -r requirements.txt
1313

1414
# Expose application port

0 commit comments

Comments
 (0)