Skip to content

Commit

Permalink
Pin protobuf version (#13177)
Browse files Browse the repository at this point in the history
  • Loading branch information
akihironitta authored and lexierule committed Jun 1, 2022
1 parent 11bdd6e commit 91003c9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pytorch_lightning/setup_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,10 @@ def _load_requirements(
reqs = []
for ln in lines:
# filer all comments
comment = ""
if comment_char in ln:
comment = ln[ln.index(comment_char) :]
ln = ln[: ln.index(comment_char)]
comment = ln[ln.index(comment_char) :] if comment_char in ln else ""
req = ln.strip()
# skip directly installed dependencies
if not req or req.startswith("http") or "@http" in req:
Expand Down
1 change: 1 addition & 0 deletions requirements/base.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ torchmetrics>=0.4.1, <=0.7.2
pyDeprecate>=0.3.1, <=0.3.2
packaging>=17.0, <=21.3
typing-extensions>=4.0.0, <4.2.1
protobuf<=3.20.1 # strict. TODO: Remove after tensorboard gets compatible https://github.com/tensorflow/tensorboard/issues/5708

0 comments on commit 91003c9

Please sign in to comment.