Unable to login

I am unable to login to wandb init. This is the error code:

wandb.init()
Traceback (most recent call last):
  File "/opt/conda/lib/python3.7/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/opt/conda/lib/python3.7/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/opt/conda/lib/python3.7/site-packages/wandb/__main__.py", line 1, in <module>
    from wandb.cli import cli
  File "/opt/conda/lib/python3.7/site-packages/wandb/cli/cli.py", line 932, in <module>
    @display_error
  File "/opt/conda/lib/python3.7/site-packages/click/core.py", line 1234, in decorator
    cmd = command(*args, **kwargs)(f)
  File "/opt/conda/lib/python3.7/site-packages/click/decorators.py", line 115, in decorator
    cmd = _make_command(f, name, attrs, cls)
  File "/opt/conda/lib/python3.7/site-packages/click/decorators.py", line 89, in _make_command
    callback=f, params=params, **attrs)
TypeError: __init__() got an unexpected keyword argument 'no_args_is_help'
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/opt/conda/lib/python3.7/site-packages/wandb/sdk/wandb_init.py", line 1169, in init
    raise e
  File "/opt/conda/lib/python3.7/site-packages/wandb/sdk/wandb_init.py", line 1146, in init
    wi.setup(kwargs)
  File "/opt/conda/lib/python3.7/site-packages/wandb/sdk/wandb_init.py", line 172, in setup
    self._wl = wandb_setup.setup(settings=setup_settings)
  File "/opt/conda/lib/python3.7/site-packages/wandb/sdk/wandb_setup.py", line 327, in setup
    ret = _setup(settings=settings)
  File "/opt/conda/lib/python3.7/site-packages/wandb/sdk/wandb_setup.py", line 320, in _setup
    wl = _WandbSetup(settings=settings)
  File "/opt/conda/lib/python3.7/site-packages/wandb/sdk/wandb_setup.py", line 303, in __init__
    _WandbSetup._instance = _WandbSetup__WandbSetup(settings=settings, pid=pid)
  File "/opt/conda/lib/python3.7/site-packages/wandb/sdk/wandb_setup.py", line 114, in __init__
    self._setup()
  File "/opt/conda/lib/python3.7/site-packages/wandb/sdk/wandb_setup.py", line 250, in _setup
    self._setup_manager()
  File "/opt/conda/lib/python3.7/site-packages/wandb/sdk/wandb_setup.py", line 277, in _setup_manager
    self._manager = wandb_manager._Manager(settings=self._settings)
  File "/opt/conda/lib/python3.7/site-packages/wandb/sdk/wandb_manager.py", line 145, in __init__
    self._service.start()
  File "/opt/conda/lib/python3.7/site-packages/wandb/sdk/service/service.py", line 199, in start
    self._launch_server()
  File "/opt/conda/lib/python3.7/site-packages/wandb/sdk/service/service.py", line 193, in _launch_server
    _sentry.reraise(e)
  File "/opt/conda/lib/python3.7/site-packages/wandb/analytics/sentry.py", line 146, in reraise
    raise exc.with_traceback(sys.exc_info()[2])
  File "/opt/conda/lib/python3.7/site-packages/wandb/sdk/service/service.py", line 191, in _launch_server
    self._wait_for_ports(fname, proc=internal_proc)
  File "/opt/conda/lib/python3.7/site-packages/wandb/sdk/service/service.py", line 121, 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` environmentvariable.

Hi @asking28 thanks for reporting this issue. From the stack trace error it appears it won’t find a python interpreter in your environment. What’s the output of these:

import sys
print(sys.executable)

Could you please also provide some more information, what’s your current wandb client/SDK version? and where are you running this script? What happens if you call wandb.login()?

I am having a similar issue with the latest 0.15.1 version of wandb.
Installing 0.15.0 works fine.

sys.executable for me is /usr/bin/python3

2 Likes

Its same as @anisha-mazumder

Thanks @anisha-mazumder this solutions works for me as well.

Hi @asking28 @anisha-mazumder could you please provide us with more information to help us find the root cause. What’s your current training infrastructure and would you still receive this error after exporting the environment variable WANDB__EXECUTABLE to your Python’s binary path?

Hi @asking28 just checking in here to see if you could provide us further information about your compute infra, and if you could create a new conda virtual environment to install there our latest wandb version and test if you’re still getting this error? Thank you!

The same config does not work with 0.15.1 or 0.15.2
OS

Linux-5.4.0-148-generic-x86_64-with-debian-buster-sid

Python version

3.7.3

Python executable

/opt/conda/bin/python

System Hardware

CPU count 24
GPU count 1
GPU type NVIDIA RTX A6000

W&B CLI Version

0.15.0

Hi @asking28 thanks for the additional information, I have installed the same Linux version in a VM and wasn’t able to reproduce this issue. It might be related with a conflict with your other packages installed in your conda virtual environment. Could you please send us this file with all your dependencies:
conda list --explicit > requirements.txt

Also, can you please try to create a new virtual environment and pip install wandb only, would you run into the same issue there as well?

hi - I am having similar difficulties with the cloud VM’s from Lambda Labs. Downgrading with pip install wandb==0.15.0 allows me to login, but init() fails with
Traceback (most recent call last):
File “/home/ubuntu/.local/lib/python3.8/site-packages/wandb/sdk/internal/internal_util.py”, line 49, in run
self._run()
File “/home/ubuntu/.local/lib/python3.8/site-packages/wandb/sdk/internal/internal_util.py”, line 100, in _run
self._process(record)
File “/home/ubuntu/.local/lib/python3.8/site-packages/wandb/sdk/internal/internal.py”, line 279, in _process
self._hm.handle(record)
File “/home/ubuntu/.local/lib/python3.8/site-packages/wandb/sdk/internal/handler.py”, line 136, in handle
handler(record)
File “/home/ubuntu/.local/lib/python3.8/site-packages/wandb/sdk/internal/handler.py”, line 146, in handle_request
handler(record)
File “/home/ubuntu/.local/lib/python3.8/site-packages/wandb/sdk/internal/handler.py”, line 699, in handle_request_run_start
self._tb_watcher = tb_watcher.TBWatcher(
File “/home/ubuntu/.local/lib/python3.8/site-packages/wandb/sdk/internal/tb_watcher.py”, line 118, in init
wandb.tensorboard.reset_state()
File “/home/ubuntu/.local/lib/python3.8/site-packages/wandb/sdk/lib/lazyloader.py”, line 58, in getattr
module = self._load()
File “/home/ubuntu/.local/lib/python3.8/site-packages/wandb/sdk/lib/lazyloader.py”, line 33, in _load
module = importlib.import_module(self.name)
File “/usr/lib/python3.8/importlib/init.py”, line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File “”, line 1014, in _gcd_import
File “”, line 991, in _find_and_load
File “”, line 975, in _find_and_load_unlocked
File “”, line 671, in _load_unlocked
File “”, line 848, in exec_module
File “”, line 219, in _call_with_frames_removed
File “/home/ubuntu/.local/lib/python3.8/site-packages/wandb/integration/tensorboard/init.py”, line 3, in
from .log import _log, log, reset_state, tf_summary_to_dict # noqa: F401
File “/home/ubuntu/.local/lib/python3.8/site-packages/wandb/integration/tensorboard/log.py”, line 35, in
Summary = pb.Summary if pb else None
File “/usr/lib/python3.8/importlib/util.py”, line 245, in getattribute
self.spec.loader.exec_module(self)
File “/usr/lib/python3/dist-packages/tensorboard/compat/proto/summary_pb2.py”, line 15, in
from tensorboard.compat.proto import histogram_pb2 as tensorboard_dot_compat_dot_proto_dot_histogram__pb2
File “/usr/lib/python3/dist-packages/tensorboard/compat/proto/histogram_pb2.py”, line 34, in
_descriptor.FieldDescriptor(
File “/home/ubuntu/.local/lib/python3.8/site-packages/google/protobuf/descriptor.py”, line 561, in new
_message.Message._CheckCalledFromGeneratedFile()
TypeError: Descriptors cannot not be created directly.
If this call came from a _pb2.py file, your generated code is out of date and must be regenerated with protoc >= 3.19.0.
If you cannot immediately regenerate your protos, some other possible workarounds are:

  1. Downgrade the protobuf package to 3.20.x or lower.
  2. Set PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python (but this will use pure-Python parsing and will be much slower).

More information: Changes made on May 6, 2022 | Protocol Buffers Documentation
wandb: ERROR Internal wandb error: file data was not synced
Problem at: transformer_singleGPU.py 74
wandb: ERROR transport failed
Traceback (most recent call last):
File “transformer_singleGPU.py”, line 74, in
wandb.init(project=wandb_project, name=wandb_run_name, config=config)
File “/home/ubuntu/.local/lib/python3.8/site-packages/wandb/sdk/wandb_init.py”, line 1164, in init
raise e
File “/home/ubuntu/.local/lib/python3.8/site-packages/wandb/sdk/wandb_init.py”, line 1145, in init
run = wi.init()
File “/home/ubuntu/.local/lib/python3.8/site-packages/wandb/sdk/wandb_init.py”, line 794, in init
run_start_result = run_start_handle.wait(timeout=30)
File “/home/ubuntu/.local/lib/python3.8/site-packages/wandb/sdk/lib/mailbox.py”, line 281, in wait
raise MailboxError(“transport failed”)
wandb.sdk.lib.mailbox.MailboxError: transport failed
Traceback (most recent call last):
File “transformer_singleGPU.py”, line 74, in
wandb.init(project=wandb_project, name=wandb_run_name, config=config)
File “/home/ubuntu/.local/lib/python3.8/site-packages/wandb/sdk/wandb_init.py”, line 1164, in init
raise e
File “/home/ubuntu/.local/lib/python3.8/site-packages/wandb/sdk/wandb_init.py”, line 1145, in init
run = wi.init()
File “/home/ubuntu/.local/lib/python3.8/site-packages/wandb/sdk/wandb_init.py”, line 794, in init
run_start_result = run_start_handle.wait(timeout=30)
File “/home/ubuntu/.local/lib/python3.8/site-packages/wandb/sdk/lib/mailbox.py”, line 281, in wait
raise MailboxError(“transport failed”)
wandb.sdk.lib.mailbox.MailboxError: transport failed
wandb: While tearing down the service manager. The following error has occurred: [Errno 32] Broken pipe

1 Like

Hi @arnadu thanks for reporting this issue in Lambda, the team is aware of that case and have created a PR here which is currently merged on main branch but not yet in a release. However, this PR shouldn’t be necessary if you’re specifying all WANDB_ environment variables (here’s how to configure these). I hope this helps, and I will also keep you posted here once we release our next client/SDK version.

I experienced the same error with wandb 0.15.4. Upgrading the “click” module to the latest version fixed it for me.

1 Like

To be clear, the error is the one reported by the OP, which is in the click module:

File "/opt/conda/lib/python3.7/site-packages/click/decorators.py", line 89, in _make_command
    callback=f, params=params, **attrs)
TypeError: __init__() got an unexpected keyword argument 'no_args_is_help'
1 Like

indeed pip install -U click solved it for me on py36, upgrading click v7 to 8.0.4

1 Like

As mentioned by @henrique and @andravin, updating with pip install -U click fix the issue.

Thanks everyone @here for reporting this issue! We have addressed this in our most recent wandb version v0.15.5 (release notes, and relative PR). Please let us know if you’re still experiencing any issue with this, and we will be happy to keep investigating.

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