Skip to content
This repository was archived by the owner on Mar 29, 2024. It is now read-only.

Commit 858159a

Browse files
Yunqi Shaoyqshao
Yunqi Shao
authored andcommitted
Hotfix for import error in python 3.10
See: tensorflow/tensorboard#5478
1 parent 7de67ac commit 858159a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

notebooks/7_pinn.ipynb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,9 @@
6262
"!pip install tensorboard==2.4\n",
6363
"!pip install --quiet git+https://github.com/yqshao/PiNN.git@TF2\n",
6464
"!pip install --quiet git+https://github.com/yqshao/PiNNboard.git@TF2\n",
65-
"!wget -nv https://raw.githubusercontent.com/yqshao/PiNNLab/master/resources/qm9_{train,test}.{yml,tfr}"
65+
"!wget -nv https://raw.githubusercontent.com/yqshao/PiNNLab/master/resources/qm9_{train,test}.{yml,tfr}",
66+
"!sudo sed -i s/from \collections\ import/from\ collections.abc\ import/g /usr/local/lib/python3.10/dist-packages/tensorboard/_vendor/html5lib/_trie/_base.py",
67+
"# ^ hotfix for https://github.com/tensorflow/tensorboard/issues/5478"
6668
]
6769
},
6870
{

0 commit comments

Comments
 (0)