# Mesh Plotter Error

**URL:** <https://openmc.discourse.group/t/mesh-plotter-error/890>\
**Category:** User Support\
**Created:** [December 12, 2020, 1:27pm UTC](https://openmc.discourse.group/t/mesh-plotter-error/890 "2020-12-12T13:27:27Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Artur](https://yyz2.discourse-cdn.com/free1/user_avatar/openmc.discourse.group/artur/32/3020_2.png) [@Artur](https://openmc.discourse.group/u/Artur)\
**Post date:** [December 12, 2020, 1:27pm UTC](https://openmc.discourse.group/t/mesh-plotter-error/890/1 "2020-12-12T13:27:27Z")

</div>

Greetings,

When i run the openmc-plot-mesh-tally command and select the statepoint file i get the following error message:

```
Traceback (most recent call last):
File "/home/ssartur/miniconda3/envs/montecarlo/bin/openmc-plot-mesh-tally", line 327, in <module>
  app = MeshPlotter(root, filename)
File "/home/ssartur/miniconda3/envs/montecarlo/bin/openmc-plot-mesh-tally", line 29, in __init__
  super(). __init__ (self, parent)
File "/home/ssartur/miniconda3/envs/montecarlo/lib/python3.7/tkinter/ __init__.py", line 2744, in __init__
  Widget. __init__ (self, master, 'frame', cnf, {}, extra)
File "/home/ssartur/miniconda3/envs/montecarlo/lib/python3.7/tkinter/ __init__.py", line 2292, in __init__
  BaseWidget._setup(self, master, cnf)
File "/home/ssartur/miniconda3/envs/montecarlo/lib/python3.7/tkinter/ __init__.py", line 2262, in _setup
  self.tk = master.tk
AttributeError: 'MeshPlotter' object has no attribute 'tk'

```

I just updated OpenMC to version 0.12 and i was not getting this error in the previous version. I am using Ubuntu 16.04, Conda 4.7.12, Python 3.7.9 and an environment with all the packages installed with Conda.  
Could somebody help me with this issue?

Thanks in advance,  
Artur Souza

---

<div class="post-metadata">

**Author:** ![Pranto](https://yyz2.discourse-cdn.com/free1/user_avatar/openmc.discourse.group/pranto/32/489_2.png) [@Pranto](https://openmc.discourse.group/u/Pranto)\
**Post date:** [December 12, 2020, 2:26pm UTC](https://openmc.discourse.group/t/mesh-plotter-error/890/2 "2020-12-12T14:26:08Z")

</div>

Hi @Artur,

@RonRahamanANL fixed this issue [#1644](https://github.com/openmc-dev/openmc/pull/1644).

> [@Tally plotting error](https://openmc.discourse.group/t/tally-plotting-error/582/4):
>
> Just an update – @RonRahamanANL submitted a patch for this issue, so this should be fixed for the next version. I’d also encourage people to check out our [plotter application](https://github.com/openmc-dev/plotter) which has a lot more features than just mesh tally plotting.

---

<div class="post-metadata">

**Author:** ![Artur](https://yyz2.discourse-cdn.com/free1/user_avatar/openmc.discourse.group/artur/32/3020_2.png) [@Artur](https://openmc.discourse.group/u/Artur)\
**Post date:** [December 12, 2020, 6:28pm UTC](https://openmc.discourse.group/t/mesh-plotter-error/890/3 "2020-12-12T18:28:23Z")

</div>

Thanks very much @Pranto. I fixed the code and the plot-mesh-tally worked.

---

<div class="post-metadata">

**Author:** ![Chenwenjie](https://avatars.discourse-cdn.com/v4/letter/c/a9a28c/32.png) [@Chenwenjie](https://openmc.discourse.group/u/Chenwenjie)\
**Post date:** [March 16, 2021, 8:07am UTC](https://openmc.discourse.group/t/mesh-plotter-error/890/5 "2021-03-16T08:07:54Z")

</div>

How did you do it? Just update OpenMC? I have update the code to v0.12.0, but the problem still exist.

---

<div class="post-metadata">

**Author:** ![younes](https://avatars.discourse-cdn.com/v4/letter/y/d6d6ee/32.png) [@younes](https://openmc.discourse.group/u/younes)\
**Post date:** [May 10, 2021, 2:14pm UTC](https://openmc.discourse.group/t/mesh-plotter-error/890/6 "2021-05-10T14:14:11Z")

</div>

me too, still have the problem
