본문 바로가기
기타/오류 뿌수기

[WandB 오류] wandb.sdk.service.service.ServiceStartProcessError: The wandb service process exited with 1. Ensure that `sys.executable` is a valid python interpreter. You can override it with the `_executable` setting or with the `WANDB__EXECUTABLE` en..

by climba 2024. 3. 22.

에러 메시지

Traceback (most recent call last):
  File "/opt/conda/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/opt/conda/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/home/hyunsoo/.local/lib/python3.6/site-packages/wandb/__main__.py", line 3, in <module>
    cli.cli(prog_name="python -m wandb")
  File "/home/hyunsoo/.local/lib/python3.6/site-packages/click/core.py", line 1128, in __call__
    return self.main(*args, **kwargs)
  File "/home/hyunsoo/.local/lib/python3.6/site-packages/click/core.py", line 1034, in main
    _verify_python_env()
  File "/home/hyunsoo/.local/lib/python3.6/site-packages/click/_unicodefun.py", line 100, in _verify_python_env
    raise RuntimeError("\n\n".join(extra))
RuntimeError: Click will abort further execution because Python was configured to use ASCII as encoding for the environment. Consult https://click.palletsprojects.com/unicode-support/ for mitigation steps.

This system supports the C.UTF-8 locale which is recommended. You might be able to resolve your issue by exporting the following environment variables:

    export LC_ALL=C.UTF-8
    export LANG=C.UTF-8

Click discovered that you exported a UTF-8 locale but the locale system could not pick up from it because it does not exist. The exported locale is 'en_US.UTF-8' but it is not supported.
Traceback (most recent call last):
  File "deepinversion_cifar10.py", line 336, in <module>
    sweep_id = wandb.sweep(sweep_config, project="DI_l2_coeff",entity='gustn9609')
  File "/home/hyunsoo/.local/lib/python3.6/site-packages/wandb/sdk/wandb_sweep.py", line 108, in sweep
    wandb_login._login(_silent=True)
  File "/home/hyunsoo/.local/lib/python3.6/site-packages/wandb/sdk/wandb_login.py", line 277, in _login
    wlogin.setup(kwargs)
  File "/home/hyunsoo/.local/lib/python3.6/site-packages/wandb/sdk/wandb_login.py", line 111, in setup
    _logger = wandb.setup()._get_logger()
  File "/home/hyunsoo/.local/lib/python3.6/site-packages/wandb/sdk/wandb_setup.py", line 327, in setup
    ret = _setup(settings=settings)
  File "/home/hyunsoo/.local/lib/python3.6/site-packages/wandb/sdk/wandb_setup.py", line 320, in _setup
    wl = _WandbSetup(settings=settings)
  File "/home/hyunsoo/.local/lib/python3.6/site-packages/wandb/sdk/wandb_setup.py", line 303, in __init__
    _WandbSetup._instance = _WandbSetup__WandbSetup(settings=settings, pid=pid)
  File "/home/hyunsoo/.local/lib/python3.6/site-packages/wandb/sdk/wandb_setup.py", line 114, in __init__
    self._setup()
  File "/home/hyunsoo/.local/lib/python3.6/site-packages/wandb/sdk/wandb_setup.py", line 250, in _setup
    self._setup_manager()
  File "/home/hyunsoo/.local/lib/python3.6/site-packages/wandb/sdk/wandb_setup.py", line 277, in _setup_manager
    self._manager = wandb_manager._Manager(settings=self._settings)
  File "/home/hyunsoo/.local/lib/python3.6/site-packages/wandb/sdk/wandb_manager.py", line 138, in __init__
    self._service.start()
  File "/home/hyunsoo/.local/lib/python3.6/site-packages/wandb/sdk/service/service.py", line 258, in start
    self._launch_server()
  File "/home/hyunsoo/.local/lib/python3.6/site-packages/wandb/sdk/service/service.py", line 252, in _launch_server
    _sentry.reraise(e)
  File "/home/hyunsoo/.local/lib/python3.6/site-packages/wandb/analytics/sentry.py", line 154, in reraise
    raise exc.with_traceback(sys.exc_info()[2])
  File "/home/hyunsoo/.local/lib/python3.6/site-packages/wandb/sdk/service/service.py", line 250, in _launch_server
    self._wait_for_ports(fname, proc=internal_proc)
  File "/home/hyunsoo/.local/lib/python3.6/site-packages/wandb/sdk/service/service.py", line 123, in _wait_for_ports
    context=context,
wandb.sdk.service.service.ServiceStartProcessError: The wandb service process exited with 1. Ensure that `sys.executable` is a valid python interpreter. You can override it with the `_executable` setting or with the `WANDB__EXECUTABLE` environment variable.

 

해결 방법

터미널에 아래 명령어를 입력하면 된다.

export WANDB_DISABLE_SERVICE=True

댓글