Skip to content

Commit 170be78

Browse files
jsmith13Jake Smith
andauthored
Fix protobuf dependency vulnerabilities (#221)
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> Co-authored-by: Jake Smith <jakesmith@microsoft.com> Copilot-Session: 73a43260-b014-4bc6-b771-73152869fed1
1 parent 29d2142 commit 170be78

7 files changed

Lines changed: 11 additions & 12 deletions

File tree

‎distributional_graphormer/catalyst-adsorption/install.sh‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ yes | pip install lmdb
1111
yes | pip install torch-scatter==2.0.9 -f https://pytorch-geometric.com/whl/torch-1.9.1+cu111.html
1212
yes | pip install torch-sparse==0.6.12 -f https://pytorch-geometric.com/whl/torch-1.9.1+cu111.html
1313
yes | pip install torch-geometric==1.7.2
14-
yes | pip install tensorboardX==2.4.1
14+
yes | pip install "numpy<2" protobuf==5.29.6 tensorboard==2.12.0 tensorboardX==2.6.1
1515
yes | pip install ogb==1.3.2
1616
yes | pip install rdkit-pypi==2021.9.3
1717
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
2525
yes | pip install icecream
2626
yes | pip install torchmetrics
2727
yes | pip install PyTDC
28-
conda install -c conda-forge tensorboard -y
2928
yes | pip install omegaconf
3029
yes | pip install Cython
3130
cd ..

‎distributional_graphormer/property-guided/install.sh‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ yes | pip install torch-scatter==2.0.9 -f https://pytorch-geometric.com/whl/torc
1212
yes | pip install torch-sparse==0.6.12 -f https://pytorch-geometric.com/whl/torch-1.9.1+cu111.html
1313
yes | pip install torch-cluster==1.6.0 -f https://data.pyg.org/whl/torch-1.9.1+cu111.html
1414
yes | pip install torch-geometric==1.7.2
15-
yes | pip install tensorboardX==2.4.1
15+
yes | pip install "numpy<2" protobuf==5.29.6 tensorboard==2.12.0 tensorboardX==2.6.1
1616
yes | pip install ogb==1.3.2
1717
yes | pip install rdkit-pypi==2021.9.3
1818
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
2828
yes | pip install icecream
2929
yes | pip install torchmetrics
3030
yes | pip install PyTDC
31-
conda install -c conda-forge tensorboard -y
3231
yes | pip install omegaconf
3332
yes | pip install wandb
3433
wandb login 5e7c43fe99d4525ad4abd80ceac0e18d03193e31

‎distributional_graphormer/protein-ligand/src/env.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ dependencies:
9898
- packaging==21.3
9999
- pandas==1.5.0
100100
- pathtools==0.1.2
101-
- protobuf==3.19.6
101+
- protobuf==5.29.6
102102
- psutil==5.9.3
103103
- pyarrow==9.0.0
104104
- pycparser==2.21
@@ -111,7 +111,7 @@ dependencies:
111111
- seaborn==0.12.2
112112
- setuptools==59.5.0
113113
- tabulate==0.9.0
114-
- tensorboardx==2.4.1
114+
- tensorboardx==2.6.1
115115
- threadpoolctl==3.1.0
116116
- tqdm==4.64.1
117117
- types-cryptography==3.3.23.1

‎distributional_graphormer/protein-ligand/src/install.sh‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ pip install lmdb==1.3.0
1010
pip install torch-scatter==2.0.9 -f https://pytorch-geometric.com/whl/torch-1.9.1+cu111.html
1111
pip install torch-sparse==0.6.12 -f https://pytorch-geometric.com/whl/torch-1.9.1+cu111.html
1212
pip install torch-geometric==2.0.4
13-
pip install tensorboardX==2.4.1
13+
pip install protobuf==5.29.6 tensorboardX==2.6.1
1414
pip install ogb==1.3.2
1515
pip install rdkit-pypi==2021.9.3
1616
pip install dgl==0.7.2 -f https://data.dgl.ai/wheels/repo.html

‎distributional_graphormer/protein/requirements.txt‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ click
44
tqdm
55
tabulate
66
pandas
7-
tensorboard
7+
protobuf==5.29.6
8+
tensorboard==2.12.0
89
pyyaml
910
scipy

‎docker/requirements.txt‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ googledrivedownloader==0.4
33
lmdb==2.3.0
44
numpy==1.23.5
55
ogb==1.3.2
6-
protobuf==3.20.3
6+
protobuf==5.29.6
77
rdkit-pypi==2021.9.3
8-
tensorboard==2.11.2
9-
tensorboardX==2.4.1
8+
tensorboard==2.12.0
9+
tensorboardX==2.6.1
1010
torch-geometric==2.3.1

‎install.sh‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ pip install lmdb
1010
pip install torch-scatter==2.0.9 -f https://pytorch-geometric.com/whl/torch-1.9.1+cu111.html
1111
pip install torch-sparse==0.6.12 -f https://pytorch-geometric.com/whl/torch-1.9.1+cu111.html
1212
pip install torch-geometric==1.7.2
13-
pip install tensorboardX==2.4.1
13+
pip install "numpy<2" protobuf==5.29.6 tensorboardX==2.6.1
1414
pip install ogb==1.3.2
1515
pip install rdkit-pypi==2021.9.3
1616
pip install dgl==0.7.2 -f https://data.dgl.ai/wheels/repo.html

0 commit comments

Comments
 (0)