# Wandb: WARNING Invalid value for property root\_dir

**URL:** <https://community.wandb.ai/t/wandb-warning-invalid-value-for-property-root-dir/3505>\
**Category:** W&B Help\
**Tags:** wandb\
**Created:** [December 6, 2022, 8:36pm UTC](https://community.wandb.ai/t/wandb-warning-invalid-value-for-property-root-dir/3505 "2022-12-06T20:36:23Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![rcheng](https://avatars.discourse-cdn.com/v4/letter/r/ecd19e/32.png) [@rcheng](https://community.wandb.ai/u/rcheng)\
**Post date:** [December 6, 2022, 8:36pm UTC](https://community.wandb.ai/t/wandb-warning-invalid-value-for-property-root-dir/3505/1 "2022-12-06T20:36:23Z")

</div>

Hello,

I defined wandb\_log\_dir to be another directory than where my code resides and received the following warning: “wandb: WARNING Invalid value for property root\_dir: /home/xx/xxx/experiments. This will raise an error in the future.”

Normally I am not particularly concerned about warnings. But because it said “This will raise an error in the future”, I would like to know what is considered a valid value for property root\_dir (and why)? If defining it the way I did, why will it raise an error done the road?

Many thanks in advance!

---

<div class="post-metadata">

**Author:** ![thanos-wandb](https://avatars.discourse-cdn.com/v4/letter/t/4af34b/32.png) [@thanos-wandb](https://community.wandb.ai/u/thanos-wandb)\
**Post date:** [December 9, 2022, 10:57am UTC](https://community.wandb.ai/t/wandb-warning-invalid-value-for-property-root-dir/3505/2 "2022-12-09T10:57:17Z")

</div>

Hi @rcheng this means that unexpected settings will throw an error in next releases, while for now these `**kwarg` will be ignored in order to initialise the run with the default value instead. It’s coming from [this](https://github.com/wandb/wandb/blob/dea67a1038a1a539be46554cd83a1430a2267fb8/wandb/sdk/wandb_settings.py#L1069) line of our SDK code.

Could you please provide a bit more information, where you set up this parameter, from the environment variables or from wandb.init() call? Would it be possible to share a code snippet of the line that gives this warning, and also what OS you’re using?

---

<div class="post-metadata">

**Author:** ![rcheng](https://avatars.discourse-cdn.com/v4/letter/r/ecd19e/32.png) [@rcheng](https://community.wandb.ai/u/rcheng)\
**Post date:** [December 9, 2022, 3:23pm UTC](https://community.wandb.ai/t/wandb-warning-invalid-value-for-property-root-dir/3505/3 "2022-12-09T15:23:46Z")

</div>

Hi @thanos-wandb , thanks for the info.

I am on 20.04.3 LTS and here is how I set up this parameter :

(from run.py)

```auto
from pytorch_lightning.loggers import WandbLogger

wandb_log_dir = Path(config['logging_params']['save_dir']) / args.run_name
wandb_logger = WandbLogger(save_dir=wandb_log_dir,
                           name=args.run_name,
                           project="beta-vae"
                           )

```

config.yaml file:

```auto
logging_params:
  save_dir: "logs/" # or "/home/xx/xxx/experiments" (the same warning pops up)
  manual_seed: 1265
  name: 'BetaVAE'

```

Actually I realized that the warning pops up, regardless of the save\_dir is under where the code resides or in a completely different directory. (I originally thought the warning showed up because it was expecting the log\_dir to be at the same directory as the code.)

Thanks in advance for further hints!

---

<div class="post-metadata">

**Author:** ![thanos-wandb](https://avatars.discourse-cdn.com/v4/letter/t/4af34b/32.png) [@thanos-wandb](https://community.wandb.ai/u/thanos-wandb)\
**Post date:** [December 22, 2022, 2:49pm UTC](https://community.wandb.ai/t/wandb-warning-invalid-value-for-property-root-dir/3505/4 "2022-12-22T14:49:44Z")

</div>

Hi @rcheng thanks for the additional information, I have tried to reproduce the same issue using your code snippet but I didn’t get the same warning. Could you please to explicitly set `save_dir='.'`or `save_dir=/home/dir1/dir2/experiments`? Would this work for you? also, is `Path` from the `pathlib` package and could you please `print(wandb_log_dir)` and post the output here as well?

---

<div class="post-metadata">

**Author:** ![thanos-wandb](https://avatars.discourse-cdn.com/v4/letter/t/4af34b/32.png) [@thanos-wandb](https://community.wandb.ai/u/thanos-wandb)\
**Post date:** [December 28, 2022, 3:19pm UTC](https://community.wandb.ai/t/wandb-warning-invalid-value-for-property-root-dir/3505/5 "2022-12-28T15:19:17Z")

</div>

Hi @rcheng I wanted to follow up with you on this issue, and see if it still occurs for you? Would any of the above work for you? thanks!

---

<div class="post-metadata">

**Author:** ![thanos-wandb](https://avatars.discourse-cdn.com/v4/letter/t/4af34b/32.png) [@thanos-wandb](https://community.wandb.ai/u/thanos-wandb)\
**Post date:** [December 29, 2022, 4:29pm UTC](https://community.wandb.ai/t/wandb-warning-invalid-value-for-property-root-dir/3505/6 "2022-12-29T16:29:13Z")

</div>

Hi @rcheng since we haven’t heard back from you in a while, I will go ahead and close this ticket for now. If this warning still occurs for you, please let us know and we will be happy to keep investigating!

---

<div class="post-metadata">

**Author:** ![rcheng](https://avatars.discourse-cdn.com/v4/letter/r/ecd19e/32.png) [@rcheng](https://community.wandb.ai/u/rcheng)\
**Post date:** [December 29, 2022, 4:41pm UTC](https://community.wandb.ai/t/wandb-warning-invalid-value-for-property-root-dir/3505/7 "2022-12-29T16:41:56Z")

</div>

Hi @thanos-wandb ,

Sorry for the delayed response. Somehow the warning went away. I will report here if it shows up again in the coming days. Many thanks for the hints.

---

<div class="post-metadata">

**Author:** ![thanos-wandb](https://avatars.discourse-cdn.com/v4/letter/t/4af34b/32.png) [@thanos-wandb](https://community.wandb.ai/u/thanos-wandb)\
**Post date:** [December 29, 2022, 5:06pm UTC](https://community.wandb.ai/t/wandb-warning-invalid-value-for-property-root-dir/3505/8 "2022-12-29T17:06:23Z")

</div>

Hi @rcheng glad to hear that, and thanks a lot for the update! Sure, please let us know if that pops up again and we can take it from there.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/wandb/original/1X/366b649231631dbab896843020da0056074ac79d.png) [@system](https://community.wandb.ai/u/system)\
**Post date:** [February 27, 2023, 5:06pm UTC](https://community.wandb.ai/t/wandb-warning-invalid-value-for-property-root-dir/3505/9 "2023-02-27T17:06:39Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
