Sweep error - AttributeError: 'SettingsStatic' object has no attribute 'git_root'

When trying to make a new sweep I get the following error
AttributeError: 'SettingsStatic' object has no attribute 'git_root'

Seems to be repeated no matter what I try.
The full log from debug-internal.log

2022-10-27 21:15:00,236 INFO    StreamThr :3165542 [internal.py:wandb_internal():88] W&B internal server running at pid: 3165542, started at: 2022-10-27 21:15:00.235637
2022-10-27 21:15:00,237 DEBUG   HandlerThread:3165542 [handler.py:handle_request():138] handle_request: status
2022-10-27 21:15:00,374 DEBUG   SenderThread:3165542 [sender.py:send_request():317] send_request: status
2022-10-27 21:15:00,376 DEBUG   SenderThread:3165542 [sender.py:send():303] send: header
2022-10-27 21:15:00,376 INFO    WriterThread:3165542 [datastore.py:open_for_write():75] open: /home/cin/Projects/MotionLatentSpace/wandb/run-20221027_211500-xj06c5a6/run-xj06c5a6.wandb
2022-10-27 21:15:00,376 DEBUG   SenderThread:3165542 [sender.py:send():303] send: run
2022-10-27 21:15:00,760 INFO    SenderThread:3165542 [dir_watcher.py:__init__():216] watching files in: /home/cin/Projects/MotionLatentSpace/wandb/run-20221027_211500-xj06c5a6/files
2022-10-27 21:15:00,760 INFO    SenderThread:3165542 [sender.py:_start_run_threads():928] run started: xj06c5a6 with start time 1666905300.0
2022-10-27 21:15:00,760 DEBUG   SenderThread:3165542 [sender.py:send():303] send: summary
2022-10-27 21:15:00,760 INFO    SenderThread:3165542 [sender.py:_save_file():1171] saving file wandb-summary.json with policy end
2022-10-27 21:15:00,761 DEBUG   HandlerThread:3165542 [handler.py:handle_request():138] handle_request: check_version
2022-10-27 21:15:00,761 DEBUG   SenderThread:3165542 [sender.py:send_request():317] send_request: check_version
2022-10-27 21:15:01,040 DEBUG   HandlerThread:3165542 [handler.py:handle_request():138] handle_request: run_start
2022-10-27 21:15:01,044 DEBUG   HandlerThread:3165542 [meta.py:__init__():34] meta init
2022-10-27 21:15:01,381 INFO    WriterThread:3165542 [datastore.py:close():279] close: /home/cin/Projects/MotionLatentSpace/wandb/run-20221027_211500-xj06c5a6/run-xj06c5a6.wandb
2022-10-27 21:15:01,761 INFO    Thread-14 :3165542 [dir_watcher.py:_on_file_created():275] file/dir created: /home/cin/Projects/MotionLatentSpace/wandb/run-20221027_211500-xj06c5a6/files/wandb-summary.json
2022-10-27 21:15:02,031 INFO    SenderThread:3165542 [sender.py:finish():1331] shutting down sender
2022-10-27 21:15:02,031 INFO    SenderThread:3165542 [dir_watcher.py:finish():362] shutting down directory watcher
2022-10-27 21:15:02,762 INFO    SenderThread:3165542 [dir_watcher.py:finish():392] scan: /home/cin/Projects/MotionLatentSpace/wandb/run-20221027_211500-xj06c5a6/files
2022-10-27 21:15:02,762 INFO    SenderThread:3165542 [dir_watcher.py:finish():406] scan save: /home/cin/Projects/MotionLatentSpace/wandb/run-20221027_211500-xj06c5a6/files/wandb-summary.json wandb-summary.json
2022-10-27 21:15:02,762 INFO    SenderThread:3165542 [dir_watcher.py:finish():406] scan save: /home/cin/Projects/MotionLatentSpace/wandb/run-20221027_211500-xj06c5a6/files/config.yaml config.yaml
2022-10-27 21:15:02,762 INFO    SenderThread:3165542 [file_pusher.py:finish():168] shutting down file pusher
2022-10-27 21:15:02,764 INFO    SenderThread:3165542 [file_pusher.py:join():173] waiting for file pusher
2022-10-27 21:15:04,333 INFO    Thread-19 :3165542 [upload_job.py:push():143] Uploaded file /home/cin/Projects/MotionLatentSpace/wandb/run-20221027_211500-xj06c5a6/files/config.yaml
2022-10-27 21:15:04,349 INFO    Thread-18 :3165542 [upload_job.py:push():143] Uploaded file /home/cin/Projects/MotionLatentSpace/wandb/run-20221027_211500-xj06c5a6/files/wandb-summary.json
2022-10-27 21:15:04,954 ERROR   StreamThr :3165542 [internal.py:wandb_internal():163] Thread HandlerThread:
Traceback (most recent call last):
  File "/home/cin/.local/lib/python3.8/site-packages/wandb/sdk/internal/internal_util.py", line 50, in run
    self._run()
  File "/home/cin/.local/lib/python3.8/site-packages/wandb/sdk/internal/internal_util.py", line 101, in _run
    self._process(record)
  File "/home/cin/.local/lib/python3.8/site-packages/wandb/sdk/internal/internal.py", line 263, in _process
    self._hm.handle(record)
  File "/home/cin/.local/lib/python3.8/site-packages/wandb/sdk/internal/handler.py", line 130, in handle
    handler(record)
  File "/home/cin/.local/lib/python3.8/site-packages/wandb/sdk/internal/handler.py", line 140, in handle_request
    handler(record)
  File "/home/cin/.local/lib/python3.8/site-packages/wandb/sdk/internal/handler.py", line 672, in handle_request_run_start
    run_meta = meta.Meta(settings=self._settings, interface=self._interface)
  File "/home/cin/.local/lib/python3.8/site-packages/wandb/sdk/internal/meta.py", line 40, in __init__
    root=self._settings.git_root,
AttributeError: 'SettingsStatic' object has no attribute 'git_root'

Hi Christian, thank you for writing in! Based on your post, it seems that you had run sweeps before without this problem. Can you tell me if there was anything that had changed between the last time you ran sweeps to when you ran into this error? For example, did you connect your project to GitHub? Also, can you send me a link to your sweep runs where you are running into this?

Hi Leslie,

Found the issue! I was even though I had the correct conda env activated running the wandb sweep command with my local new version of wandb while the python code and env where running with and old 12.XX version.

I changed it to use the same install for both and now it works.

Hi Christian! I’m glad you were able to find a fix for this :slight_smile: I’m going to close this ticket out now, but I hope you have a beautiful rest of the week