Tensorboard with Pytorch SummaryWritter

Vatsal_Malaviya: <p>I am trying to open an event file, but an error popped out, can help to solve these error</p>
<p>KeyError: “Couldn’t find field google.protobuf.FieldDescriptorProto.proto3_optional”</p>
<p><div class="lightbox-wrapper"><a class="lightbox" href="https://discuss.pytorch.org/uploads/default/original/3X/1/c/1c6253045f58b763a1dd87d0b5fbfe35d9bebc53.png" data-download-href="https://discuss.pytorch.org/uploads/default/1c6253045f58b763a1dd87d0b5fbfe35d9bebc53" title="image"><img src="https://discuss.pytorch.org/uploads/default/original/3X/1/c/1c6253045f58b763a1dd87d0b5fbfe35d9bebc53.png" alt="image" data-base62-sha1="4361Jz2UkQaJep4c4xWCJsL5AC7" width="690" height="307" data-dominant-color="0D190C"><div class="meta"><svg class="fa d-icon d-icon-far-image svg-icon" aria-hidden="true"><use href="#far-image"></use></svg><span class="filename">image</span><span class="informations">1691×754 61.7 KB</span><svg class="fa d-icon d-icon-discourse-expand svg-icon" aria-hidden="true"><use href="#discourse-expand"></use></svg></div></a></div></p>
<p>i had previously successfully used tensorboard but due to some reasons i had reinstall tensorboard this from conda package but these error has popped out</p>

ptrblck: <p>Your current tensorboard installation might be incompatible with your installed <code>protobuf</code> version.<br>
You could try to create a new virtual environment, install tensorboard, and check which <code>protobuf</code> version is used there (and could either install this version in your original environment or just use the new one).</p>

Vatsal_Malaviya: <p><div class="lightbox-wrapper"><a class="lightbox" href="https://discuss.pytorch.org/uploads/default/original/3X/3/2/32dc15d72bd21a042556a0bb5290a95c480ad112.png" data-download-href="https://discuss.pytorch.org/uploads/default/32dc15d72bd21a042556a0bb5290a95c480ad112" title="image"><img src="https://discuss.pytorch.org/uploads/default/original/3X/3/2/32dc15d72bd21a042556a0bb5290a95c480ad112.png" alt="image" data-base62-sha1="7fVp3utcfnQAWI0islnGXmsxIQi" width="690" height="190" data-dominant-color="0D150C"><div class="meta"><svg class="fa d-icon d-icon-far-image svg-icon" aria-hidden="true"><use href="#far-image"></use></svg><span class="filename">image</span><span class="informations">824×228 7.08 KB</span><svg class="fa d-icon d-icon-discourse-expand svg-icon" aria-hidden="true"><use href="#discourse-expand"></use></svg></div></a></div><br>
here it is showing both<br>
I am new in this part, I use</p>
<pre><code class="lang-auto">tensorboard --logdir PATH
</code></pre>
<p>What shall I do next?</p>

ptrblck: <p>You could create a new virtual environment, reinstall PyTorch with tensorboard, and check if it’s running.<br>
I don’t know, if TensorFlow ships with its own <code>protobuf</code> and installs another version etc., so I would start with creating a minimal working environment.<br>
If you are using <code>conda</code>, have a look at <a href="https://docs.conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html">this doc</a> for more information about virtual environments.</p>

Vatsal_Malaviya: <p>tensorboard or tensorboardx ? Actually since i installed Tensorboard X in the vir env in conda many things are messed up among those, this is the only problem i am not able to solve.</p>

ptrblck: <p>You don’t need <code>tensorboardX</code>, as PyTorch can use <code>tensorboard</code> directly.<br>
Could you try to uninstall it and use <code>tensorboard</code> only?</p>

Vatsal_Malaviya: <p>Actually reinstalling pytorch, tensorflow and tensorboard with it to the latest version some how worked, still error remains but Tensorboard is working condition so no problem now<br>
<div class="lightbox-wrapper"><a class="lightbox" href="https://discuss.pytorch.org/uploads/default/original/3X/0/3/031ae96514262bae787b89f792cb2975eaf16a9a.png" data-download-href="https://discuss.pytorch.org/uploads/default/031ae96514262bae787b89f792cb2975eaf16a9a" title="image"><img src="https://discuss.pytorch.org/uploads/default/original/3X/0/3/031ae96514262bae787b89f792cb2975eaf16a9a.png" alt="image" data-base62-sha1="rt5BJ4i3eF72h5KfrtENqj09Gq" width="690" height="145" data-dominant-color="0D1A0C"><div class="meta"><svg class="fa d-icon d-icon-far-image svg-icon" aria-hidden="true"><use href="#far-image"></use></svg><span class="filename">image</span><span class="informations">1022×215 9.84 KB</span><svg class="fa d-icon d-icon-discourse-expand svg-icon" aria-hidden="true"><use href="#discourse-expand"></use></svg></div></a></div><br>
Anyway thanks for your help !!</p>

shaibagon: <p>removing and re-installing tensorboard solved this problem for me:</p>
<pre><code class="lang-auto">pip uninstall tensorboard
pip install tensorboard
</code></pre>
<p>This upgraded tensorboard from 2.1.0 to 2.5.0</p>