# \`TypeError: bad argument type for built-in operation\` when Syncing TensorBaord log to wandb

**URL:** <https://community.wandb.ai/t/typeerror-bad-argument-type-for-built-in-operation-when-syncing-tensorbaord-log-to-wandb/5397>\
**Category:** W&B Help\
**Tags:** wandb\
**Created:** [November 13, 2023, 8:03pm UTC](https://community.wandb.ai/t/typeerror-bad-argument-type-for-built-in-operation-when-syncing-tensorbaord-log-to-wandb/5397 "2023-11-13T20:03:15Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![melhoushi](https://avatars.discourse-cdn.com/v4/letter/m/ee59a6/32.png) [@melhoushi](https://community.wandb.ai/u/melhoushi)\
**Post date:** [November 13, 2023, 8:03pm UTC](https://community.wandb.ai/t/typeerror-bad-argument-type-for-built-in-operation-when-syncing-tensorbaord-log-to-wandb/5397/1 "2023-11-13T20:03:16Z")

</div>

I am trying to follow the steps [here](https://docs.wandb.ai/guides/integrations/tensorboard#syncing-previous-tensorboard-runs) to sync a previously trained TensorBoard log to wandb but I am getting this error:

```auto
$ wandb sync <path>
Find logs at: /tmp/debug-cli.melhoushi.log
Found 6 tfevent files in <path>
Exception in thread Thread-1:
Traceback (most recent call last):
  File "<env_path>/lib/python3.9/threading.py", line 980, in _bootstrap_inner
    self.run()
  File "/private/home/melhoushi/.local/lib/python3.9/site-packages/wandb/sync/sync.py", line 264, in run
    self._send_tensorboard(tb_root, tb_logdirs, sm)
  File "/private/home/melhoushi/.local/lib/python3.9/site-packages/wandb/sync/sync.py", line 145, in _send_tensorboard
    proto_run.entity = self._entity
TypeError: bad argument type for built-in operation

```

---

<div class="post-metadata">

**Author:** ![carlo-catimbang](https://avatars.discourse-cdn.com/v4/letter/c/6a8cbe/32.png) [@carlo-catimbang](https://community.wandb.ai/u/carlo-catimbang)\
**Post date:** [November 14, 2023, 2:34am UTC](https://community.wandb.ai/t/typeerror-bad-argument-type-for-built-in-operation-when-syncing-tensorbaord-log-to-wandb/5397/2 "2023-11-14T02:34:05Z")

</div>

Hi @melhoushi ,

Thank you for reaching out for support. I’ll be glad to assist you with your concern. I appreciate you for providing a code snippet and traceback. Can you also provide the following for too please:

- WandB Version that you are using
- debug.log and debig-internal.log. These files are under your local folder `wandb/run-<date>_<time>-<run-id>/logs` in the same directory where you’re running your code.
- are you willing to provide the tfevents file and send it to our support email [support@wandb.com](mailto:support@wandb.com). So that we can try to reattempt and reproduce the issue on our end using your file.

Regards,  
Carlo Argel

---

<div class="post-metadata">

**Author:** ![carlo-catimbang](https://avatars.discourse-cdn.com/v4/letter/c/6a8cbe/32.png) [@carlo-catimbang](https://community.wandb.ai/u/carlo-catimbang)\
**Post date:** [November 16, 2023, 7:43am UTC](https://community.wandb.ai/t/typeerror-bad-argument-type-for-built-in-operation-when-syncing-tensorbaord-log-to-wandb/5397/3 "2023-11-16T07:43:17Z")

</div>

Hi @melhoushi

I just want to follow up if you still need more assistance.

Regards,  
Carlo Argel

---

<div class="post-metadata">

**Author:** ![melhoushi](https://avatars.discourse-cdn.com/v4/letter/m/ee59a6/32.png) [@melhoushi](https://community.wandb.ai/u/melhoushi)\
**Post date:** [November 16, 2023, 5:03pm UTC](https://community.wandb.ai/t/typeerror-bad-argument-type-for-built-in-operation-when-syncing-tensorbaord-log-to-wandb/5397/4 "2023-11-16T17:03:48Z")

</div>

Thanks Carlo for following up. It will take me a while to create a standalone experiment that doesn’t log my company’s internal data.

---

<div class="post-metadata">

**Author:** ![carlo-catimbang](https://avatars.discourse-cdn.com/v4/letter/c/6a8cbe/32.png) [@carlo-catimbang](https://community.wandb.ai/u/carlo-catimbang)\
**Post date:** [November 21, 2023, 12:31am UTC](https://community.wandb.ai/t/typeerror-bad-argument-type-for-built-in-operation-when-syncing-tensorbaord-log-to-wandb/5397/5 "2023-11-21T00:31:26Z")

</div>

Hi @melhoushi,

Gotcha! We’ll standby for this one.

Regards,  
Carlo Argel

---

<div class="post-metadata">

**Author:** ![carlo-catimbang](https://avatars.discourse-cdn.com/v4/letter/c/6a8cbe/32.png) [@carlo-catimbang](https://community.wandb.ai/u/carlo-catimbang)\
**Post date:** [November 28, 2023, 1:58am UTC](https://community.wandb.ai/t/typeerror-bad-argument-type-for-built-in-operation-when-syncing-tensorbaord-log-to-wandb/5397/6 "2023-11-28T01:58:19Z")

</div>

Hi @melhoushi ,

Reaching back from the support team, I just want to follow up if you’re still running into the issue? If so we can continue talking about this on our email [support@wandb.com](mailto:support@wandb.com) and I’ll closed this ticket.

---

<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:** [January 27, 2024, 1:59am UTC](https://community.wandb.ai/t/typeerror-bad-argument-type-for-built-in-operation-when-syncing-tensorbaord-log-to-wandb/5397/7 "2024-01-27T01:59:17Z")

</div>

Closed on January 27, 2024, 1:59am UTC

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