Expected str, bytes or os.PathLike object, not bool

Hello everyone, Happy New Year
I am trying to train a model but stuck in this situation

The trainer is defined below
model=CNN_Model(hparams)

trainer = pl.Trainer(max_nb_epochs,
gpus=1,
track_grad_norm,
gradient_clip_val,
early_stop_callback,
train_percent_check = 0.01,
val_percent_check = 0.01,
test_percent_check = 0.01,
overfit_pct,
fast_dev_run=True,
profiler)

###############################
Till here the code is running perfectly fine
###############################

Now when I run this line
“trainer.fit(model)”

I am getting this error: expected str, bytes or os.PathLike object, not bool

I don’t know what fit does exactly, but would assume that the stacktrace would point to the line of code raising the error.
E.g. os.path.join(True) would raise this error so I guess that some internal method is trying to create a path or load a file with a bool input argument instead of a valid path.