py3-scikit-optimize broken tests
Without py3-pillow installed:
================================================================================================ test session starts =================================================================================================
platform linux -- Python 3.8.5, pytest-6.0.1, py-1.9.0, pluggy-0.13.1
rootdir: /home/builder/aports/testing/py3-scikit-optimize/src/scikit-optimize-0.7.4, configfile: setup.cfg
collected 6 items / 1 error / 5 selected
======================================================================================================= ERRORS =======================================================================================================
__________________________________________________________________________________________ ERROR collecting skopt/plots.py ___________________________________________________________________________________________
skopt/plots.py:17: in <module>
import matplotlib.pyplot as plt
/usr/lib/python3.8/site-packages/matplotlib/pyplot.py:36: in <module>
import matplotlib.colorbar
/usr/lib/python3.8/site-packages/matplotlib/colorbar.py:44: in <module>
import matplotlib.contour as contour
/usr/lib/python3.8/site-packages/matplotlib/contour.py:17: in <module>
import matplotlib.text as text
/usr/lib/python3.8/site-packages/matplotlib/text.py:16: in <module>
from .textpath import TextPath # Unused, but imported by others.
/usr/lib/python3.8/site-packages/matplotlib/textpath.py:11: in <module>
from matplotlib.mathtext import MathTextParser
/usr/lib/python3.8/site-packages/matplotlib/mathtext.py:27: in <module>
from PIL import Image
E ModuleNotFoundError: No module named 'PIL'
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
============================================================================================ 3 warnings, 1 error in 1.42s ============================================================================================
>>> ERROR: py3-scikit-optimize: check failed
With py3-pillow:
================================================================================================ test session starts =================================================================================================
platform linux -- Python 3.8.5, pytest-6.0.1, py-1.9.0, pluggy-0.13.1
rootdir: /home/builder/aports/testing/py3-scikit-optimize/src/scikit-optimize-0.7.4, configfile: setup.cfg
collected 6 items
skopt/callbacks.py . [ 16%]
skopt/searchcv.py F [ 33%]
skopt/utils.py ...F [100%]
====================================================================================================== FAILURES ======================================================================================================
_______________________________________________________________________________________ [doctest] skopt.searchcv.BayesSearchCV _______________________________________________________________________________________
180 ... 'gamma': Real(1e-6, 1e+1, prior='log-uniform'),
181 ... 'degree': Integer(1,8),
182 ... 'kernel': Categorical(['linear', 'poly', 'rbf']),
183 ... },
184 ... n_iter=32,
185 ... random_state=0
186 ... )
187 >>>
188 >>> # executes bayesian optimization
189 >>> _ = opt.fit(X_train, y_train)
UNEXPECTED EXCEPTION: TypeError("'<' not supported between instances of 'Version' and 'tuple'")
Traceback (most recent call last):
File "/usr/lib/python3.8/doctest.py", line 1336, in __run
exec(compile(example.source, filename, "single",
File "<doctest skopt.searchcv.BayesSearchCV[8]>", line 1, in <module>
File "/home/builder/aports/testing/py3-scikit-optimize/src/scikit-optimize-0.7.4/skopt/searchcv.py", line 678, in fit
optim_result = self._step(
File "/home/builder/aports/testing/py3-scikit-optimize/src/scikit-optimize-0.7.4/skopt/searchcv.py", line 552, in _step
params = optimizer.ask(n_points=n_points)
File "/home/builder/aports/testing/py3-scikit-optimize/src/scikit-optimize-0.7.4/skopt/optimizer/optimizer.py", line 360, in ask
x = opt.ask()
File "/home/builder/aports/testing/py3-scikit-optimize/src/scikit-optimize-0.7.4/skopt/optimizer/optimizer.py", line 332, in ask
return self._ask()
File "/home/builder/aports/testing/py3-scikit-optimize/src/scikit-optimize-0.7.4/skopt/optimizer/optimizer.py", line 398, in _ask
return self.space.rvs(random_state=self.rng)[0]
File "/home/builder/aports/testing/py3-scikit-optimize/src/scikit-optimize-0.7.4/skopt/space/space.py", line 764, in rvs
if sp_version < (0, 16):
TypeError: '<' not supported between instances of 'Version' and 'tuple'
/home/builder/aports/testing/py3-scikit-optimize/src/scikit-optimize-0.7.4/skopt/searchcv.py:189: UnexpectedException
________________________________________________________________________________________ [doctest] skopt.utils.use_named_args ________________________________________________________________________________________
677 >>> # `my_objective_function(x)` where `x` is a list of unnamed arguments,
678 >>> # which then wraps your objective function that is callable as
679 >>> # `my_objective_function(foo, bar, baz)`.
680 >>> # The conversion from a list `x` to named parameters `foo`,
681 >>> # `bar`, `baz`
682 >>> # is done automatically.
683 >>>
684 >>> # Run the optimizer on the wrapped objective function which is called
685 >>> # as `my_objective_function(x)` as expected by `forest_minimize()`.
686 >>> result = forest_minimize(func=my_objective_function,
UNEXPECTED EXCEPTION: TypeError("'<' not supported between instances of 'Version' and 'tuple'")
Traceback (most recent call last):
File "/usr/lib/python3.8/doctest.py", line 1336, in __run
exec(compile(example.source, filename, "single",
File "<doctest skopt.utils.use_named_args[8]>", line 1, in <module>
File "/home/builder/aports/testing/py3-scikit-optimize/src/scikit-optimize-0.7.4/skopt/optimizer/forest.py", line 169, in forest_minimize
return base_minimize(func, dimensions, base_estimator,
File "/home/builder/aports/testing/py3-scikit-optimize/src/scikit-optimize-0.7.4/skopt/optimizer/base.py", line 271, in base_minimize
next_x = optimizer.ask()
File "/home/builder/aports/testing/py3-scikit-optimize/src/scikit-optimize-0.7.4/skopt/optimizer/optimizer.py", line 332, in ask
return self._ask()
File "/home/builder/aports/testing/py3-scikit-optimize/src/scikit-optimize-0.7.4/skopt/optimizer/optimizer.py", line 398, in _ask
return self.space.rvs(random_state=self.rng)[0]
File "/home/builder/aports/testing/py3-scikit-optimize/src/scikit-optimize-0.7.4/skopt/space/space.py", line 764, in rvs
if sp_version < (0, 16):
TypeError: '<' not supported between instances of 'Version' and 'tuple'
/home/builder/aports/testing/py3-scikit-optimize/src/scikit-optimize-0.7.4/skopt/utils.py:686: UnexpectedException
====================================================================================== 2 failed, 4 passed, 4 warnings in 1.18s =======================================================================================