How severe does this issue affect your experience of using Ray?
- High: It blocks me to complete my task.
Hi all,
I’m trying ray tune for hyperparameter searching with Pytorch Lightning.
I have followed the tutorial of implementing ray tune but I’m facing this error that I have no clue about.
When I set pytorch lightning trainer like below (as suggested in tutorial)
trainer = Trainer(
num_sanity_val_steps=0,
devices="auto",
accelerator="auto",
strategy=RayDDPStrategy(find_unused_parameters=True),
callbacks=[RayTrainReportCallback()],
plugins=[RayLightningEnvironment()],
enable_progress_bar=False,
)
I get the following error
File "/work/chs/ss_lightning/src/utils/tuner.py", line 107, in train_tune
ray_trainer = TorchTrainer(train_func(args), run_config=run_config)
File "/work/chs/ss_lightning/src/utils/tuner.py", line 60, in train_func
callbacks=[RayTrainReportCallback()],
File "/work/downloads/anaconda3/envs/ss/lib/python3.9/site-packages/ray/train/lightning/_lightning_utils.py", line 220, in __init__
self.tmpdir_prefix = os.path.join(tempfile.gettempdir(), self.trial_name)
File "/work/downloads/anaconda3/envs/ss/lib/python3.9/posixpath.py", line 90, in join
genericpath._check_arg_types('join', a, *p)
File "/work/downloads/anaconda3/envs/ss/lib/python3.9/genericpath.py", line 152, in _check_arg_types
raise TypeError(f'{funcname}() argument must be str, bytes, or '
TypeError: join() argument must be str, bytes, or os.PathLike object, not 'NoneType
seems like RayTrainReportCallback() to be the problem but not sure…
I’ve used ray version 2.7.0 and also the nightlies
what could be the problem?