Traceback (most recent call last):


 "/Users/Hendrik/opt/anaconda3/lib/python3.7/site-packages/optuna/study.py", line 331, in optimize

func, n_trials, timeout, catch, callbacks, gc_after_trial, None


 "/Users/Hendrik/opt/anaconda3/lib/python3.7/site-packages/optuna/study.py", line 626, in _optimize_sequential

self._run_trial_and_callbacks(func, catch, callbacks, gc_after_trial)


 "/Users/Hendrik/opt/anaconda3/lib/python3.7/site-packages/optuna/study.py", line 656, in _run_trial_and_callbacks

trial = self._run_trial(func, catch, gc_after_trial)


 "/Users/Hendrik/opt/anaconda3/lib/python3.7/site-packages/optuna/study.py", line 677, in _run_trial

result = func(trial)


 "/Users/Hendrik/Desktop/larry1/min_working.py", line 174, in objective

trainer.fit(model)


 "/Users/Hendrik/opt/anaconda3/lib/python3.7/site-packages/pytorch_lightning/trainer/trainer.py", line 793, in fit

self.run_pretrain_routine(model)


 "/Users/Hendrik/opt/anaconda3/lib/python3.7/site-packages/pytorch_lightning/trainer/trainer.py", line 913, in run_pretrain_routine

self.train()


 "/Users/Hendrik/opt/anaconda3/lib/python3.7/site-packages/pytorch_lightning/trainer/training_loop.py", line 347, in train

self.run_training_epoch()


 "/Users/Hendrik/opt/anaconda3/lib/python3.7/site-packages/pytorch_lightning/trainer/training_loop.py", line 453, in run_training_epoch

self.call_early_stop_callback()


 "/Users/Hendrik/opt/anaconda3/lib/python3.7/site-packages/pytorch_lightning/trainer/training_loop.py", line 793, in call_early_stop_callback

self.early_stop_callback.on_epoch_end(self, self.get_model())


 "/Users/Hendrik/opt/anaconda3/lib/python3.7/site-packages/optuna/integration/pytorch_lightning.py", line 61, in on_epoch_end

self._trial.report(current_score, step=epoch)


 "/Users/Hendrik/opt/anaconda3/lib/python3.7/site-packages/optuna/trial.py", line 597, in report

if step < 0:
TypeError: '<' not supported between instances of 'Trainer' and 'int'

Traceback (most recent call last):


 "/Users/zed/.pyenv/versions/3.5.1/bin/scrapyd", line 9, in <module>

load_entry_point('scrapyd==1.1.1', 'console_scripts', 'scrapyd')()


 "/Users/zed/.pyenv/versions/3.5.1/lib/python3.5/site-packages/pkg_resources/__init__.py", line 558, in load_entry_point

return get_distribution(dist).load_entry_point(group, name)


 "/Users/zed/.pyenv/versions/3.5.1/lib/python3.5/site-packages/pkg_resources/__init__.py", line 2682, in load_entry_point

return ep.load()


 "/Users/zed/.pyenv/versions/3.5.1/lib/python3.5/site-packages/pkg_resources/__init__.py", line 2355, in load

return self.resolve()


 "/Users/zed/.pyenv/versions/3.5.1/lib/python3.5/site-packages/pkg_resources/__init__.py", line 2361, in resolve

module = __import__(self.module_name, fromlist=['__name__'], level=0)


 "/Users/zed/.pyenv/versions/3.5.1/lib/python3.5/site-packages/scrapyd/__init__.py", line 3, in <module>

version_info = tuple(__version__.split('.')[:3])
TypeError: a bytes-like object is required, not 'str'
