From cd939c3e5bde123f0539e7a5437aebdc6a05ddb4 Mon Sep 17 00:00:00 2001 From: "Andres D. Molins" Date: Tue, 3 Dec 2024 13:54:04 +0100 Subject: [PATCH] Fix: Solved CI issue creating the compiled package. --- pyproject.toml | 2 ++ runtimes/aleph-debian-12-python/create_disk_image.sh | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index d33f05a0..faebfb9a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -45,6 +45,8 @@ dependencies = [ "msgpack==1.0.7", "nftables @ git+https://salsa.debian.org/pkg-netfilter-team/pkg-nftables#egg=nftables&subdirectory=py", "packaging==23.2", + # Fixing this protobuf dependency version to avoid getting CI errors as version 5.29.0 have this compilation issue + "protobuf==5.28.3", "psutil==5.9.5", "py-cpuinfo==9", "pydantic[dotenv]~=1.10.13", diff --git a/runtimes/aleph-debian-12-python/create_disk_image.sh b/runtimes/aleph-debian-12-python/create_disk_image.sh index 10c8ae40..98fbb276 100755 --- a/runtimes/aleph-debian-12-python/create_disk_image.sh +++ b/runtimes/aleph-debian-12-python/create_disk_image.sh @@ -36,7 +36,8 @@ locale-gen en_US.UTF-8 echo "Pip installing aleph-sdk-python" mkdir -p /opt/aleph/libs -pip3 install --target /opt/aleph/libs 'aleph-sdk-python==1.0.0' 'aleph-message==0.4.9' 'fastapi~=0.109.2' +# Fixing this protobuf dependency version to avoid getting CI errors as version 5.29.0 have this compilation issue. +pip3 install --target /opt/aleph/libs 'aleph-sdk-python==1.0.0' 'aleph-message==0.4.9' 'fastapi~=0.109.2' 'protobuf==5.28.3' # Compile Python code to bytecode for faster execution # -o2 is needed to compile with optimization level 2 which is what we launch init1.py ("python -OO")