Skip to content

Commit 9da3878

Browse files
committed
Update dependencies: networkx, scipy, scikit-learn.
Python 3.8 introduced some failures in the python pypi dependencies: scipy: $ bazel test //programl/models:rolling_results_test ImportError: dlopen(${bazelroot}/bin/programl/test/benchmarks/benchmark_dataflow_analyses.runfiles/programl_requirements_pypi__scipy_1_2_1/scipy/linalg/cython_lapack.cpython-38-darwin.so, 2): Symbol not found: _cbbcsd_ Referenced from: ${bazelroot}/bin/programl/test/benchmarks/benchmark_dataflow_analyses.runfiles/programl_requirements_pypi__scipy_1_2_1/scipy/linalg/cython_lapack.cpython-38-darwin.so Expected in: flat namespace scikit-learn: $ bazel test //programl/test/benchmarks:benchmark_dataflow_analyses File "${bazelroot}/bin/programl/models/rolling_results_test.runfiles/programl_requirements_pypi__scikit_learn_0_20_3/sklearn/externals/joblib/externals/cloudpickle/cloudpickle.py", line 148, in _make_cell_set_template_code return types.CodeType( TypeError: an integer is required (got type bytes) networkx: $ bazel test //programl/ir/llvm:inst2vec_test ${bazelroot}/bin/programl/cmd/inst2vec.runfiles/programl_requirements_pypi__networkx_2_2/networkx/drawing/nx_pydot.py:210: SyntaxWarning: "is" with a literal. Did you mean "=="? Update those packages to the versions to maintain support on Python 3.8. github.com//issues/76
1 parent d2ffe9d commit 9da3878

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

requirements.txt

+4-3
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@ gast==0.2.2. # Dependency of tensorflow.
44
GPUtil==1.4.0
55
Keras==2.3.1
66
kiwisolver==1.0.1 # Needed by matplotlib.
7+
joblib>=0.16.0 # Needed by scikit-learn
78
matplotlib==2.2.0rc1
8-
networkx==2.2
9+
networkx>=2.4
910
numpy==1.16.4
1011
pandas==0.24.1
1112
pathlib==1.0.1
@@ -15,8 +16,8 @@ pyparsing==2.2.0
1516
python-dateutil==2.6.1
1617
pytz==2018.3
1718
PyYAML==4.2b4
18-
scikit-learn==0.20.3
19-
scipy==1.2.1
19+
scikit-learn>=0.23.2
20+
scipy>=1.5.2
2021
seaborn==0.9.0
2122
tensorflow>=1.14.0
2223
torch>=1.3.0

third_party/py/scikit_learn/BUILD

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ py_library(
1111
srcs = ["//third_party/py:empty.py"],
1212
deps = [
1313
requirement("scikit-learn"),
14+
requirement("joblib"),
1415
"//third_party/py/scipy",
1516
],
1617
)

0 commit comments

Comments
 (0)