Traceback (most recent call last):


 "/usr/lib/python3/dist-packages/pip/basecommand.py", line 209, in main

status = self.run(options, args)


 "/usr/lib/python3/dist-packages/pip/commands/install.py", line 328, in run

wb.build(autobuilding=True)


 "/usr/lib/python3/dist-packages/pip/wheel.py", line 748, in build

self.requirement_set.prepare_files(self.finder)


 "/usr/lib/python3/dist-packages/pip/req/req_set.py", line 360, in prepare_files

ignore_dependencies=self.ignore_dependencies))


 "/usr/lib/python3/dist-packages/pip/req/req_set.py", line 577, in _prepare_file

session=self.session, hashes=hashes)


 "/usr/lib/python3/dist-packages/pip/download.py", line 810, in unpack_url

hashes=hashes


 "/usr/lib/python3/dist-packages/pip/download.py", line 649, in unpack_http_url

hashes)


 "/usr/lib/python3/dist-packages/pip/download.py", line 842, in _download_http_url

stream=True,


 "/usr/share/python-wheels/requests-2.9.1-py2.py3-none-any.whl/requests/sessions.py", line 480, in get

return self.request('GET', url, **kwargs)


 "/usr/lib/python3/dist-packages/pip/download.py", line 378, in request

return super(PipSession, self).request(method, url, *args, **kwargs)


 "/usr/share/python-wheels/requests-2.9.1-py2.py3-none-any.whl/requests/sessions.py", line 468, in request

resp = self.send(prep, **send_kwargs)


 "/usr/share/python-wheels/requests-2.9.1-py2.py3-none-any.whl/requests/sessions.py", line 576, in send

r = adapter.send(request, **kwargs)


 "/usr/share/python-wheels/CacheControl-0.11.5-py2.py3-none-any.whl/cachecontrol/adapter.py", line 46, in send

resp = super(CacheControlAdapter, self).send(request, **kw)


 "/usr/share/python-wheels/requests-2.9.1-py2.py3-none-any.whl/requests/adapters.py", line 376, in send

timeout=timeout


 "/usr/share/python-wheels/urllib3-1.13.1-py2.py3-none-any.whl/urllib3/connectionpool.py", line 610, in urlopen

_stacktrace=sys.exc_info()[2])


 "/usr/share/python-wheels/urllib3-1.13.1-py2.py3-none-any.whl/urllib3/util/retry.py", line 228, in increment

total -= 1
TypeError: unsupported operand type(s) for -=: 'Retry' and 'int'

Traceback (most recent call last):


 "src/main.py", line 236, in <module>

main(cfg, train_ns_cfg)


 "src/main.py", line 149, in main

trainer.fit(model, datamodule=data_module)


 "/cw/liir/NoCsBack/testliir/rubenc/miniconda3/envs/alienv/lib/python3.8/site-packages/pytorch_lightning/trainer/trainer.py", line 499, in fit

self.dispatch()


 "/cw/liir/NoCsBack/testliir/rubenc/miniconda3/envs/alienv/lib/python3.8/site-packages/pytorch_lightning/trainer/trainer.py", line 546, in dispatch

self.accelerator.start_training(self)


 "/cw/liir/NoCsBack/testliir/rubenc/miniconda3/envs/alienv/lib/python3.8/site-packages/pytorch_lightning/accelerators/accelerator.py", line 73, in start_training

self.training_type_plugin.start_training(trainer)


 "/cw/liir/NoCsBack/testliir/rubenc/miniconda3/envs/alienv/lib/python3.8/site-packages/pytorch_lightning/plugins/training_type/training_type_plugin.py", line 114, in start_training

self._results = trainer.run_train()


 "/cw/liir/NoCsBack/testliir/rubenc/miniconda3/envs/alienv/lib/python3.8/site-packages/pytorch_lightning/trainer/trainer.py", line 637, in run_train

self.train_loop.run_training_epoch()


 "/cw/liir/NoCsBack/testliir/rubenc/miniconda3/envs/alienv/lib/python3.8/site-packages/pytorch_lightning/trainer/training_loop.py", line 560, in run_training_epoch

self.trainer.logger_connector.log_train_epoch_end_metrics(


 "/cw/liir/NoCsBack/testliir/rubenc/miniconda3/envs/alienv/lib/python3.8/site-packages/pytorch_lightning/trainer/connectors/logger_connector/logger_connector.py", line 439, in log_train_epoch_end_metrics

self.log_metrics(epoch_log_metrics, {})


 "/cw/liir/NoCsBack/testliir/rubenc/miniconda3/envs/alienv/lib/python3.8/site-packages/pytorch_lightning/trainer/connectors/logger_connector/logger_connector.py", line 236, in log_metrics

self.trainer.logger.save()


 "/cw/liir/NoCsBack/testliir/rubenc/miniconda3/envs/alienv/lib/python3.8/site-packages/pytorch_lightning/loggers/base.py", line 304, in save

self._finalize_agg_metrics()


 "/cw/liir/NoCsBack/testliir/rubenc/miniconda3/envs/alienv/lib/python3.8/site-packages/pytorch_lightning/loggers/base.py", line 145, in _finalize_agg_metrics

self.log_metrics(metrics=metrics_to_log, step=agg_step)


 "/cw/liir/NoCsBack/testliir/rubenc/miniconda3/envs/alienv/lib/python3.8/site-packages/pytorch_lightning/utilities/distributed.py", line 42, in wrapped_fn

return fn(*args, **kwargs)


 "/cw/liir/NoCsBack/testliir/rubenc/miniconda3/envs/alienv/lib/python3.8/site-packages/pytorch_lightning/loggers/wandb.py", line 192, in log_metrics

self.experiment.log({**metrics, 'trainer/global_step': step})


 "/cw/liir/NoCsBack/testliir/rubenc/miniconda3/envs/alienv/lib/python3.8/site-packages/wandb/sdk/wandb_run.py", line 1055, in log

self.history._row_add(data)


 "/cw/liir/NoCsBack/testliir/rubenc/miniconda3/envs/alienv/lib/python3.8/site-packages/wandb/sdk/wandb_history.py", line 44, in _row_add

self._flush()


 "/cw/liir/NoCsBack/testliir/rubenc/miniconda3/envs/alienv/lib/python3.8/site-packages/wandb/sdk/wandb_history.py", line 59, in _flush

self._callback(row=self._data, step=self._step)


 "/cw/liir/NoCsBack/testliir/rubenc/miniconda3/envs/alienv/lib/python3.8/site-packages/wandb/sdk/wandb_run.py", line 805, in _history_callback

self._backend.interface.publish_history(


 "/cw/liir/NoCsBack/testliir/rubenc/miniconda3/envs/alienv/lib/python3.8/site-packages/wandb/sdk/interface/interface.py", line 226, in publish_history

item.value_json = json_dumps_safer_history(v)
# type: ignore


 "/cw/liir/NoCsBack/testliir/rubenc/miniconda3/envs/alienv/lib/python3.8/site-packages/wandb/util.py", line 655, in json_dumps_safer_history

return json.dumps(obj, cls=WandBHistoryJSONEncoder, **kwargs)


 "/cw/liir/NoCsBack/testliir/rubenc/miniconda3/envs/alienv/lib/python3.8/json/__init__.py", line 234, in dumps

return cls(


 "/cw/liir/NoCsBack/testliir/rubenc/miniconda3/envs/alienv/lib/python3.8/json/encoder.py", line 199, in encode

chunks = self.iterencode(o, _one_shot=True)


 "/cw/liir/NoCsBack/testliir/rubenc/miniconda3/envs/alienv/lib/python3.8/json/encoder.py", line 257, in iterencode

return _iterencode(o, 0)


 "/cw/liir/NoCsBack/testliir/rubenc/miniconda3/envs/alienv/lib/python3.8/site-packages/wandb/util.py", line 622, in default

return json.JSONEncoder.default(self, obj)


 "/cw/liir/NoCsBack/testliir/rubenc/miniconda3/envs/alienv/lib/python3.8/json/encoder.py", line 179, in default

raise TypeError(f'Object of type {o.__class__.__name__} '
TypeError: Object of type Figure is not JSON serializable
