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

Commit d3cd756

Browse files
Yunqi Shaoyqshao
authored andcommitted
Hotfixs for python 3.10
See: tensorflow/tensorboard#5478
1 parent 7de67ac commit d3cd756

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

notebooks/7_pinn.ipynb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,13 @@
5858
"import warnings, logging\n",
5959
"logging.getLogger(\"tensorflow\").setLevel(logging.ERROR)\n",
6060
"warnings.filterwarnings('ignore', 'Converting sparse IndexedSlices')\n",
61-
"!pip install tensorflow==2.7\n",
61+
"!pip install tensorflow==2.8\n",
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}\n",
66+
"!sed -i s/from\\ collections\\ import/from\\ collections.abc\\ import/g /usr/local/lib/python3.10/dist-packages/tensorboard/_vendor/html5lib/_trie/_base.py\n",
67+
"# ^ hotfix for https://github.com/tensorflow/tensorboard/issues/5478"
6668
]
6769
},
6870
{

0 commit comments

Comments
 (0)