Skip to content

Commit 5d43fcc

Browse files
authored
Fix pip install from git and pin opencv (#1120)
As of yesterday, GitHub no longer supports unauthenticated git:// calls: https://news.ycombinator.com/item?id=29891656 Pinning version of opencv to avoid segfault. See: JaidedAI/EasyOCR#630 http://b/212703016 (opencv segfault) http://b/214044576 (GitHub issue)
1 parent 105123a commit 5d43fcc

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Dockerfile.tmpl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,8 @@ RUN apt-get install -y libfreetype6-dev && \
192192

193193
RUN pip install ibis-framework && \
194194
pip install gluonnlp && \
195+
# b/212703016 4.5.4.62 segfault with readtext.
196+
pip install opencv-contrib-python==4.5.4.60 opencv-python==4.5.4.60 && \
195197
pip install gluoncv && \
196198
/tmp/clean-layer.sh
197199

@@ -215,7 +217,7 @@ RUN pip install scipy && \
215217
apt-get install -y graphviz && pip install graphviz && \
216218
# Pandoc is a dependency of deap
217219
apt-get install -y pandoc && \
218-
pip install git+git://github.com/scikit-learn-contrib/py-earth.git@issue191 && \
220+
pip install git+https://github.com/scikit-learn-contrib/py-earth.git@issue191 && \
219221
pip install essentia && \
220222
/tmp/clean-layer.sh
221223

@@ -455,7 +457,7 @@ RUN pip install flashtext && \
455457
pip install cesium && \
456458
pip install rgf_python && \
457459
# b/205704651 remove install cmd for matrixprofile after version > 1.1.10 is released.
458-
pip install git+git://github.com/matrix-profile-foundation/matrixprofile.git@6bea7d4445284dbd9700a097974ef6d4613fbca7 && \
460+
pip install git+https://github.com/matrix-profile-foundation/matrixprofile.git@6bea7d4445284dbd9700a097974ef6d4613fbca7 && \
459461
pip install tsfresh && \
460462
# b/204442455 unpin once tsfresh is compatible with latest version of statsmodels.
461463
pip install statsmodels==0.12.2 && \

0 commit comments

Comments
 (0)