Skip to content

Commit 5c2fc80

Browse files
Fix PyQt5 import error by installing libgl1-mesa-glx (#87)
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/pull/87?shareId=c4f884d5-bcb4-452e-8161-8ad32d9e0710).
2 parents 3e2a8f3 + 1883525 commit 5c2fc80

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)