Traceback error BrokenPipeError: [Errno 32] Broken pipe

Hey guys,

I am getting a Traceback error when I want to run"wandb.log()".Any tips what to do?? Thank you so much.

Traceback (most recent call last):
File “train_spn_voc.py”, line 275, in
main(name=args.name)
File “train_spn_voc.py”, line 180, in main
‘train_acc’: train_acc.avg,
File “/usr/local/lib/python3.6/dist-packages/wandb/sdk/wandb_run.py”, line 371, in wrapper
return func(self, *args, **kwargs)
File “/usr/local/lib/python3.6/dist-packages/wandb/sdk/wandb_run.py”, line 334, in wrapper
return func(self, *args, **kwargs)
File “/usr/local/lib/python3.6/dist-packages/wandb/sdk/wandb_run.py”, line 1713, in log
self._log(data=data, step=step, commit=commit)
File “/usr/local/lib/python3.6/dist-packages/wandb/sdk/wandb_run.py”, line 1495, in _log
self._partial_history_callback(data, step, commit)
File “/usr/local/lib/python3.6/dist-packages/wandb/sdk/wandb_run.py”, line 1370, in _partial_history_callback
publish_step=not_using_tensorboard,
File “/usr/local/lib/python3.6/dist-packages/wandb/sdk/interface/interface.py”, line 586, in publish_partial_history
self._publish_partial_history(partial_history)
File “/usr/local/lib/python3.6/dist-packages/wandb/sdk/interface/interface_shared.py”, line 89, in _publish_partial_history
self._publish(rec)
File “/usr/local/lib/python3.6/dist-packages/wandb/sdk/interface/interface_sock.py”, line 51, in _publish
self._sock_client.send_record_publish(record)
File “/usr/local/lib/python3.6/dist-packages/wandb/sdk/lib/sock_client.py”, line 221, in send_record_publish
self.send_server_request(server_req)
File “/usr/local/lib/python3.6/dist-packages/wandb/sdk/lib/sock_client.py”, line 155, in send_server_request
self._send_message(msg)
File “/usr/local/lib/python3.6/dist-packages/wandb/sdk/lib/sock_client.py”, line 152, in _send_message
self._sendall_with_error_handle(header + data)
File “/usr/local/lib/python3.6/dist-packages/wandb/sdk/lib/sock_client.py”, line 130, in _sendall_with_error_handle
sent = self._sock.send(data)
BrokenPipeError: [Errno 32] Broken pipe
wandb: While tearing down the service manager. The following error has occurred: [Errno 32] Broken pipe

Hi @eveleaf , happy to look into this for you. Could you provide us a few more details about your project.

  • What type of environment are you working in?
  • In your main script, are you executing a single run or spinning up multiple runs (multiprocessing? Distributed Training)
  • What wandb client version are you using?
  • If possible, could you provide us a simple reproducible example we could work through?

Hi @eveleaf , since we have not heard back from you we are going to close this request. If you would like to re-open the conversation, please let us know!

1 Like

Hi, I ran into the same error.

  • What type of environment are you working in?
    google colab + miniconda + packages installed in the base env with conda-environment.yaml
  • In your main script, are you executing a single run or spinning up multiple runs (multiprocessing? Distributed Training)
    a single run (here is the code, cloned from repo wandb/edu)
  • What wandb client version are you using?
    wandb 0.13.11
  • If possible, could you provide us a simple reproducible example we could work through?
    here is the notebook. ENTITY and RAW_DATA_AT values in params.py, entity value in sweep.yaml need to be updated for execution.

Would appreciate any help. Thanks!

Problem at: <ipython-input-13-0fcfc7426e19> 3 train
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/wandb/sdk/wandb_init.py", line 1144, in init
    run = wi.init()
  File "/usr/local/lib/python3.8/site-packages/wandb/sdk/wandb_init.py", line 607, in init
    manager._inform_init(settings=self.settings, run_id=self.settings.run_id)
  File "/usr/local/lib/python3.8/site-packages/wandb/sdk/wandb_manager.py", line 209, in _inform_init
    svc_iface._svc_inform_init(settings=settings, run_id=run_id)
  File "/usr/local/lib/python3.8/site-packages/wandb/sdk/service/service_sock.py", line 38, in _svc_inform_init
    self._sock_client.send(inform_init=inform_init)
  File "/usr/local/lib/python3.8/site-packages/wandb/sdk/lib/sock_client.py", line 211, in send
    self.send_server_request(server_req)
  File "/usr/local/lib/python3.8/site-packages/wandb/sdk/lib/sock_client.py", line 155, in send_server_request
    self._send_message(msg)
  File "/usr/local/lib/python3.8/site-packages/wandb/sdk/lib/sock_client.py", line 152, in _send_message
    self._sendall_with_error_handle(header + data)
  File "/usr/local/lib/python3.8/site-packages/wandb/sdk/lib/sock_client.py", line 130, in _sendall_with_error_handle
    sent = self._sock.send(data)
BrokenPipeError: [Errno 32] Broken pipe
wandb: ERROR Abnormal program exit
---------------------------------------------------------------------------
BrokenPipeError                           Traceback (most recent call last)
/usr/local/lib/python3.8/site-packages/wandb/sdk/wandb_init.py in init(job_type, dir, config, project, entity, reinit, tags, group, name, notes, magic, config_exclude_keys, config_include_keys, anonymous, mode, allow_val_change, resume, force, tensorboard, sync_tensorboard, monitor_gym, save_code, id, settings)
   1143         try:
-> 1144             run = wi.init()
   1145             except_exit = wi.settings._except_exit

9 frames
BrokenPipeError: [Errno 32] Broken pipe

The above exception was the direct cause of the following exception:

Exception                                 Traceback (most recent call last)
/usr/local/lib/python3.8/site-packages/wandb/sdk/wandb_init.py in init(job_type, dir, config, project, entity, reinit, tags, group, name, notes, magic, config_exclude_keys, config_include_keys, anonymous, mode, allow_val_change, resume, force, tensorboard, sync_tensorboard, monitor_gym, save_code, id, settings)
   1179             if except_exit:
   1180                 os._exit(1)
-> 1181             raise Exception("problem") from error_seen
   1182     return run

Exception: problem
1 Like

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