From 8302d5cb5bedde2cf5169283c57342747024cc9b Mon Sep 17 00:00:00 2001 From: Jake Smith Date: Fri, 30 Oct 2026 10:07:58 -0700 Subject: [PATCH] Fix protobuf dependency vulnerabilities Upgrade protobuf and its TensorBoard compatibility set together, and constrain legacy PyTorch install paths to NumPy 1.x. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 73a43260-b014-4bc6-b771-73152869fed1 --- distributional_graphormer/catalyst-adsorption/install.sh | 3 +-- distributional_graphormer/property-guided/install.sh | 3 +-- distributional_graphormer/protein-ligand/src/env.yml | 4 ++-- distributional_graphormer/protein-ligand/src/install.sh | 2 +- distributional_graphormer/protein/requirements.txt | 3 ++- docker/requirements.txt | 6 +++--- install.sh | 2 +- 7 files changed, 11 insertions(+), 12 deletions(-) diff --git a/distributional_graphormer/catalyst-adsorption/install.sh b/distributional_graphormer/catalyst-adsorption/install.sh index 5bf9d2a..6e70b70 100755 --- a/distributional_graphormer/catalyst-adsorption/install.sh +++ b/distributional_graphormer/catalyst-adsorption/install.sh @@ -11,7 +11,7 @@ yes | pip install lmdb yes | pip install torch-scatter==2.0.9 -f https://pytorch-geometric.com/whl/torch-1.9.1+cu111.html yes | pip install torch-sparse==0.6.12 -f https://pytorch-geometric.com/whl/torch-1.9.1+cu111.html yes | pip install torch-geometric==1.7.2 -yes | pip install tensorboardX==2.4.1 +yes | pip install "numpy<2" protobuf==5.29.6 tensorboard==2.12.0 tensorboardX==2.6.1 yes | pip install ogb==1.3.2 yes | pip install rdkit-pypi==2021.9.3 yes | pip install dgl==0.7.2 -f https://data.dgl.ai/wheels/repo.html @@ -25,7 +25,6 @@ python setup.py build_ext --inplace yes | pip install icecream yes | pip install torchmetrics yes | pip install PyTDC -conda install -c conda-forge tensorboard -y yes | pip install omegaconf yes | pip install Cython cd .. diff --git a/distributional_graphormer/property-guided/install.sh b/distributional_graphormer/property-guided/install.sh index 25c361e..0d0da4e 100755 --- a/distributional_graphormer/property-guided/install.sh +++ b/distributional_graphormer/property-guided/install.sh @@ -12,7 +12,7 @@ yes | pip install torch-scatter==2.0.9 -f https://pytorch-geometric.com/whl/torc yes | pip install torch-sparse==0.6.12 -f https://pytorch-geometric.com/whl/torch-1.9.1+cu111.html yes | pip install torch-cluster==1.6.0 -f https://data.pyg.org/whl/torch-1.9.1+cu111.html yes | pip install torch-geometric==1.7.2 -yes | pip install tensorboardX==2.4.1 +yes | pip install "numpy<2" protobuf==5.29.6 tensorboard==2.12.0 tensorboardX==2.6.1 yes | pip install ogb==1.3.2 yes | pip install rdkit-pypi==2021.9.3 yes | pip install dgl==0.7.2 -f https://data.dgl.ai/wheels/repo.html @@ -28,7 +28,6 @@ python setup.py build_ext --inplace yes | pip install icecream yes | pip install torchmetrics yes | pip install PyTDC -conda install -c conda-forge tensorboard -y yes | pip install omegaconf yes | pip install wandb wandb login 5e7c43fe99d4525ad4abd80ceac0e18d03193e31 diff --git a/distributional_graphormer/protein-ligand/src/env.yml b/distributional_graphormer/protein-ligand/src/env.yml index 8feaf7f..6b916c5 100644 --- a/distributional_graphormer/protein-ligand/src/env.yml +++ b/distributional_graphormer/protein-ligand/src/env.yml @@ -98,7 +98,7 @@ dependencies: - packaging==21.3 - pandas==1.5.0 - pathtools==0.1.2 - - protobuf==3.19.6 + - protobuf==5.29.6 - psutil==5.9.3 - pyarrow==9.0.0 - pycparser==2.21 @@ -111,7 +111,7 @@ dependencies: - seaborn==0.12.2 - setuptools==59.5.0 - tabulate==0.9.0 - - tensorboardx==2.4.1 + - tensorboardx==2.6.1 - threadpoolctl==3.1.0 - tqdm==4.64.1 - types-cryptography==3.3.23.1 diff --git a/distributional_graphormer/protein-ligand/src/install.sh b/distributional_graphormer/protein-ligand/src/install.sh index c3be92c..521a07b 100755 --- a/distributional_graphormer/protein-ligand/src/install.sh +++ b/distributional_graphormer/protein-ligand/src/install.sh @@ -10,7 +10,7 @@ pip install lmdb==1.3.0 pip install torch-scatter==2.0.9 -f https://pytorch-geometric.com/whl/torch-1.9.1+cu111.html pip install torch-sparse==0.6.12 -f https://pytorch-geometric.com/whl/torch-1.9.1+cu111.html pip install torch-geometric==2.0.4 -pip install tensorboardX==2.4.1 +pip install protobuf==5.29.6 tensorboardX==2.6.1 pip install ogb==1.3.2 pip install rdkit-pypi==2021.9.3 pip install dgl==0.7.2 -f https://data.dgl.ai/wheels/repo.html diff --git a/distributional_graphormer/protein/requirements.txt b/distributional_graphormer/protein/requirements.txt index fef0a85..66fc6fd 100644 --- a/distributional_graphormer/protein/requirements.txt +++ b/distributional_graphormer/protein/requirements.txt @@ -4,6 +4,7 @@ click tqdm tabulate pandas -tensorboard +protobuf==5.29.6 +tensorboard==2.12.0 pyyaml scipy diff --git a/docker/requirements.txt b/docker/requirements.txt index 1fcdbfd..0836992 100644 --- a/docker/requirements.txt +++ b/docker/requirements.txt @@ -3,8 +3,8 @@ googledrivedownloader==0.4 lmdb==2.3.0 numpy==1.23.5 ogb==1.3.2 -protobuf==3.20.3 +protobuf==5.29.6 rdkit-pypi==2021.9.3 -tensorboard==2.11.2 -tensorboardX==2.4.1 +tensorboard==2.12.0 +tensorboardX==2.6.1 torch-geometric==2.3.1 diff --git a/install.sh b/install.sh index 34f8c7a..fef3d25 100755 --- a/install.sh +++ b/install.sh @@ -10,7 +10,7 @@ pip install lmdb pip install torch-scatter==2.0.9 -f https://pytorch-geometric.com/whl/torch-1.9.1+cu111.html pip install torch-sparse==0.6.12 -f https://pytorch-geometric.com/whl/torch-1.9.1+cu111.html pip install torch-geometric==1.7.2 -pip install tensorboardX==2.4.1 +pip install "numpy<2" protobuf==5.29.6 tensorboardX==2.6.1 pip install ogb==1.3.2 pip install rdkit-pypi==2021.9.3 pip install dgl==0.7.2 -f https://data.dgl.ai/wheels/repo.html