Skip to content

Commit 5c6d630

Browse files
committed
Avoid "ModuleNotFoundError: No module named 'Cython'" when installing pyamdgpuinfo with Python 3.11
1 parent e5ccd02 commit 5c6d630

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.github/workflows/simple-program-linux.yml

+5
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@ jobs:
2828
- name: Install dependencies
2929
run: |
3030
python -m pip install --upgrade pip
31+
32+
# Fix for pyamdgpuinfo with Python 3.11
33+
python -m pip install Cython # Cython must be installed first manually
34+
sudo apt-get install -y libdrm-dev # For "xf86drm.h"
35+
3136
python -m pip install -r requirements.txt
3237
3338
- name: Run simple-program.py during 20 seconds

.github/workflows/system-monitor-linux.yml

+1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ jobs:
2929
- name: Install dependencies
3030
run: |
3131
python -m pip install --upgrade pip
32+
python -m pip install Cython # Because of a bug with Python 3.11, Cython must be installed first manually
3233
python -m pip install -r requirements.txt
3334
3435
- name: Configure system monitor

0 commit comments

Comments
 (0)