Traceback (most recent call last):


 "/repos/meson/mesonbuild/mtest.py", line 997, in read_decode_lines

while not reader.at_eof():
AttributeError: 'NoneType' object has no attribute 'at_eof'

Traceback (most recent call last):


 "D:\xxx\test\closefigureserror.py", line 19, in <module>

plt.show()


 "d:\***\matplotlib\lib\matplotlib\pyplot.py", line 254, in show

return _show(*args, **kw)


 "d:\***\matplotlib\lib\matplotlib\backend_bases.py", line 3275, in show

cls.mainloop()


 "d:\***\matplotlib\lib\matplotlib\backends\_backend_tk.py", line 1040, in mainloop

Tk.mainloop()


 "D:\***\Miniconda3\envs\mplgit\lib\tkinter\__init__.py", line 557, in mainloop

_default_root.tk.mainloop(n)
AttributeError: 'NoneType' object has no attribute 'tk'
