Skip to content

Commit 0ce0e7a

Browse files
authored
Move graphviz install around (#1410)
Yeah graphviz where's it at doesn't want to be installed. But moving it around helps get it installed
1 parent e0587aa commit 0ce0e7a

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

Dockerfile.tmpl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ RUN sed -i "s/httpredir.debian.org/debian.uchicago.edu/" /etc/apt/sources.list &
8989
apt-get install -y build-essential unzip cmake libboost-dev libboost-system-dev libboost-filesystem-dev p7zip-full && \
9090
# b/182601974: ssh client was removed from the base image but is required for packages such as stable-baselines.
9191
apt-get install -y openssh-client && \
92+
apt-get install -y graphviz && pip install graphviz && \
9293
/tmp/clean-layer.sh
9394

9495
# b/128333086: Set PROJ_LIB to points to the proj4 cartographic library.
@@ -229,12 +230,13 @@ RUN pip install --no-deps "keras>3" keras-cv keras-nlp namex && \
229230
# b/328788268 libpysal 4.10 seems to fail with "module 'shapely' has no attribute 'Geometry'. Did you mean: 'geometry'"
230231
RUN pip install pysal "libpysal==4.9.2"
231232

233+
# b/350573866 xgboost v2.1.0 breaks learntools
232234
RUN apt-get install -y libfreetype6-dev && \
233235
apt-get install -y libglib2.0-0 libxext6 libsm6 libxrender1 libfontconfig1 --fix-missing && \
234236
pip install gensim \
235237
textblob \
236238
wordcloud \
237-
xgboost \
239+
"xgboost==2.0.3" \
238240
pydot \
239241
hep_ml && \
240242
# NLTK Project datasets
@@ -280,7 +282,6 @@ RUN pip install "scipy==1.12.0" \
280282
datashader \
281283
# Boruta (python implementation)
282284
Boruta && \
283-
apt-get install -y graphviz && pip install graphviz && \
284285
# Pandoc is a dependency of deap
285286
apt-get install -y pandoc && \
286287
pip install essentia

tests/test_xgboost.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@ def test_classifier(self):
2121
xgb1.fit(
2222
X_train, y_train,
2323
eval_set=[(X_train, y_train), (X_test, y_test)],
24-
eval_metric='mlogloss',
24+
eval_metric='mlogloss'
2525
)
2626
self.assertIn("validation_0", xgb1.evals_result())

0 commit comments

Comments
 (0)