Skip to content

Commit c493f6f

Browse files
authored
Remove duplicate aiohttp (#1404)
We seem to be downloading multiple aiohttp version, we which is causing pip error out when installing some packages. we will remove and install again. added small refactor proof of concept: https://screencast.googleplex.com/cast/NDkzOTIxMTcwNTY3OTg3Mnw2Zjc5MjBkYy0wYg
1 parent 6e3ce69 commit c493f6f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Dockerfile.tmpl

+4-4
Original file line numberDiff line numberDiff line change
@@ -424,10 +424,7 @@ RUN pip install annoy \
424424

425425
# b/273059949 The pre-installed nbconvert is slow on html conversions and has to be force-uninstalled.
426426
# b/274619697 learntools also requires a specific nbconvert right now
427-
RUN rm -rf /opt/conda/lib/python3.10/site-packages/nbconvert*
428-
RUN rm -rf /opt/conda/lib/python3.10/site-packages/nbclient*
429-
RUN rm -rf /opt/conda/lib/python3.10/site-packages/mistune*
430-
RUN rm -rf /opt/conda/lib/python3.10/site-packages/platformdirs*
427+
RUN rm -rf /opt/conda/lib/python3.10/site-packages/{nbconvert,nbclient,mistune,platformdirs}*
431428

432429
# Fix qgrid by pinning ipywidgets https://github.com/quantopian/qgrid/issues/376
433430
# allennlp \
@@ -573,6 +570,9 @@ RUN pip install pytorch-ignite \
573570
timm \
574571
torchinfo && \
575572
pip install git+https://github.com/facebookresearch/segment-anything.git && \
573+
# b/343971718: remove duplicate aiohttp installs, and reinstall it
574+
rm -rf /opt/conda/lib/python3.10/site-packages/aiohttp* && \
575+
mamba install --force-reinstall -y aiohttp && \
576576
/tmp/clean-layer.sh
577577

578578
# Download base easyocr models.

0 commit comments

Comments
 (0)