Skip to content

Commit 5b37fe2

Browse files
authored
Fix bq_stats error at startup
http://b/291102990
1 parent cf60eda commit 5b37fe2

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Dockerfile.tmpl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -661,6 +661,12 @@ RUN sed -i '/from tensorflow_hub import uncompressed_module_resolver/a from tens
661661
# jupyter-serverextension disable nb_conda --py --sys-prefix && \
662662
# python -m nb_conda_kernels.install --disable
663663

664+
# Disable preloaded jupyter modules (they add to startup, and break when they are missing)
665+
RUN sed -i /bq_stats/d /etc/ipython/ipython_kernel_config.py && \
666+
sed -i /beatrix/d /etc/ipython/ipython_kernel_config.py && \
667+
sed -i /bigquery/d /etc/ipython/ipython_kernel_config.py && \
668+
sed -i /sql/d /etc/ipython/ipython_kernel_config.py
669+
664670
# Force only one libcusolver
665671
{{ if eq .Accelerator "gpu" }}
666672
RUN rm /opt/conda/bin/../lib/libcusolver.so.11 && ln -s /usr/local/cuda/lib64/libcusolver.so.11 /opt/conda/bin/../lib/libcusolver.so.11

0 commit comments

Comments
 (0)