FileNotFoundError with matplotlib and tkinterHow do you change the size of figures drawn with matplotlib?Why do I get “python int too large to convert to C long” errors when I use matplotlib's DateFormatter to format dates on the x axis?Error creating .eps output with matplotlib with LaTex text rendering (usetex)Out of memory with Python but OK with Matlab while displaying the same 2D data as imageMatplotlib - AttributeError: Unknown property makerMatplotlib error, [Errno 2] No such file or directory: 'latex': 'latex'?Running python on A2 hosting - issue with matplotlib and tkinterUpdating Label and Live Graph dynamically using Arduino Data in Tkinter'PathCollection' object has no attribute 'do_3d_projection' in Kivy Matplotlib figure draw method()matplotlib how to plot multiple lines with defined colours?

Detecting if an element is found inside a container

Term for the "extreme-extension" version of a straw man fallacy?

I'm in charge of equipment buying but no one's ever happy with what I choose. How to fix this?

Crossing the line between justified force and brutality

What can we do to stop prior company from asking us questions?

Would a high gravity rocky planet be guaranteed to have an atmosphere?

Is there a good way to store credentials outside of a password manager?

How does the UK government determine the size of a mandate?

Why didn't Theresa May consult with Parliament before negotiating a deal with the EU?

How to Reset Passwords on Multiple Websites Easily?

How to be diplomatic in refusing to write code that breaches the privacy of our users

What is paid subscription needed for in Mortal Kombat 11?

Would this custom Sorcerer variant that can only learn any verbal-component-only spell be unbalanced?

How can a function with a hole (removable discontinuity) equal a function with no hole?

How do scammers retract money, while you can’t?

How does it work when somebody invests in my business?

Pole-zeros of a real-valued causal FIR system

How to safely derail a train during transit?

How do I extract a value from a time formatted value in excel?

Customer Requests (Sometimes) Drive Me Bonkers!

Avoiding estate tax by giving multiple gifts

System.debug(JSON.Serialize(o)) Not longer shows full string

Did Dumbledore lie to Harry about how long he had James Potter's invisibility cloak when he was examining it? If so, why?

How easy is it to start Magic from scratch?



FileNotFoundError with matplotlib and tkinter


How do you change the size of figures drawn with matplotlib?Why do I get “python int too large to convert to C long” errors when I use matplotlib's DateFormatter to format dates on the x axis?Error creating .eps output with matplotlib with LaTex text rendering (usetex)Out of memory with Python but OK with Matlab while displaying the same 2D data as imageMatplotlib - AttributeError: Unknown property makerMatplotlib error, [Errno 2] No such file or directory: 'latex': 'latex'?Running python on A2 hosting - issue with matplotlib and tkinterUpdating Label and Live Graph dynamically using Arduino Data in Tkinter'PathCollection' object has no attribute 'do_3d_projection' in Kivy Matplotlib figure draw method()matplotlib how to plot multiple lines with defined colours?













0















I had been using jupyter and using some codes similar to this tutorial for plotting contours using Getdist.
After that for some other things I have installed GnuParallel and Git-Bash and after that the plotting part of Python has been broken down.
I have two python version with 2.7 I can plot simple tasks but I cannot plot that tutorial. With python 3 I cannot plot anything.



I tried to reinstall tkinter but there is no straightforward way.
I have uninstalled all python packages, git-bash, gnuparallel and manually deleted all folders of them, but still after installing I have this problem.



any help please?



Full error trace:



Exception in Tkinter callback
Traceback (most recent call last):
File "C:Python36-32libtkinter__init__.py", line 1699, in __call__
return self.func(*args)
File "C:Python36-32libsite-packagesmatplotlibbackends_backend_tk.py", line 267, in resize
self.draw()
File "C:Python36-32libsite-packagesmatplotlibbackendsbackend_tkagg.py", line 9, in draw
super(FigureCanvasTkAgg, self).draw()
File "C:Python36-32libsite-packagesmatplotlibbackendsbackend_agg.py", line 402, in draw
self.figure.draw(self.renderer)
File "C:Python36-32libsite-packagesmatplotlibartist.py", line 50, in draw_wrapper
return draw(artist, renderer, *args, **kwargs)
File "C:Python36-32libsite-packagesmatplotlibfigure.py", line 1649, in draw
renderer, self, artists, self.suppressComposite)
File "C:Python36-32libsite-packagesmatplotlibimage.py", line 138, in _draw_list_compositing_images
a.draw(renderer)
File "C:Python36-32libsite-packagesmatplotlibartist.py", line 50, in draw_wrapper
return draw(artist, renderer, *args, **kwargs)
File "C:Python36-32libsite-packagesmatplotlibaxes_base.py", line 2628, in draw
mimage._draw_list_compositing_images(renderer, self, artists)
File "C:Python36-32libsite-packagesmatplotlibimage.py", line 138, in _draw_list_compositing_images
a.draw(renderer)
File "C:Python36-32libsite-packagesmatplotlibartist.py", line 50, in draw_wrapper
return draw(artist, renderer, *args, **kwargs)
File "C:Python36-32libsite-packagesmatplotlibaxis.py", line 1187, in draw
renderer)
File "C:Python36-32libsite-packagesmatplotlibaxis.py", line 1125, in _get_tick_bboxes
extent = tick.label1.get_window_extent(renderer)
File "C:Python36-32libsite-packagesmatplotlibtext.py", line 930, in get_window_extent
bbox, info, descent = self._get_layout(self._renderer)
File "C:Python36-32libsite-packagesmatplotlibtext.py", line 313, in _get_layout
ismath=ismath)
File "C:Python36-32libsite-packagesmatplotlibbackendsbackend_agg.py", line 209, in get_text_width_height_descent
s, fontsize, renderer=self)
File "C:Python36-32libsite-packagesmatplotlibtexmanager.py", line 464, in get_text_width_height_descent
dvifile = self.make_dvi(tex, fontsize)
File "C:Python36-32libsite-packagesmatplotlibtexmanager.py", line 328, in make_dvi
texfile], tex)
File "C:Python36-32libsite-packagesmatplotlibtexmanager.py", line 298, in _run_checked_subprocess
stderr=subprocess.STDOUT)
File "C:Python36-32libsubprocess.py", line 336, in check_output
**kwargs).stdout
File "C:Python36-32libsubprocess.py", line 403, in run
with Popen(*popenargs, **kwargs) as process:
File "C:Python36-32libsubprocess.py", line 709, in __init__
restore_signals, start_new_session)
File "C:Python36-32libsubprocess.py", line 997, in _execute_child
startupinfo)
FileNotFoundError: [WinError 2] The system cannot find the file specified
Exception in Tkinter callback
Traceback (most recent call last):
File "C:Python36-32libtkinter__init__.py", line 1699, in __call__
return self.func(*args)
File "C:Python36-32libtkinter__init__.py", line 745, in callit
func(*args)
File "C:Python36-32libsite-packagesmatplotlibbackends_backend_tk.py", line 346, in idle_draw
self.draw()
File "C:Python36-32libsite-packagesmatplotlibbackendsbackend_tkagg.py", line 9, in draw
super(FigureCanvasTkAgg, self).draw()
File "C:Python36-32libsite-packagesmatplotlibbackendsbackend_agg.py", line 402, in draw
self.figure.draw(self.renderer)
File "C:Python36-32libsite-packagesmatplotlibartist.py", line 50, in draw_wrapper
return draw(artist, renderer, *args, **kwargs)
File "C:Python36-32libsite-packagesmatplotlibfigure.py", line 1649, in draw
renderer, self, artists, self.suppressComposite)
File "C:Python36-32libsite-packagesmatplotlibimage.py", line 138, in _draw_list_compositing_images
a.draw(renderer)
File "C:Python36-32libsite-packagesmatplotlibartist.py", line 50, in draw_wrapper
return draw(artist, renderer, *args, **kwargs)
File "C:Python36-32libsite-packagesmatplotlibaxes_base.py", line 2628, in draw
mimage._draw_list_compositing_images(renderer, self, artists)
File "C:Python36-32libsite-packagesmatplotlibimage.py", line 138, in _draw_list_compositing_images
a.draw(renderer)
File "C:Python36-32libsite-packagesmatplotlibartist.py", line 50, in draw_wrapper
return draw(artist, renderer, *args, **kwargs)
File "C:Python36-32libsite-packagesmatplotlibaxis.py", line 1187, in draw
renderer)
File "C:Python36-32libsite-packagesmatplotlibaxis.py", line 1125, in _get_tick_bboxes
extent = tick.label1.get_window_extent(renderer)
File "C:Python36-32libsite-packagesmatplotlibtext.py", line 930, in get_window_extent
bbox, info, descent = self._get_layout(self._renderer)
File "C:Python36-32libsite-packagesmatplotlibtext.py", line 313, in _get_layout
ismath=ismath)
File "C:Python36-32libsite-packagesmatplotlibbackendsbackend_agg.py", line 209, in get_text_width_height_descent
s, fontsize, renderer=self)
File "C:Python36-32libsite-packagesmatplotlibtexmanager.py", line 464, in get_text_width_height_descent
dvifile = self.make_dvi(tex, fontsize)
File "C:Python36-32libsite-packagesmatplotlibtexmanager.py", line 328, in make_dvi
texfile], tex)
File "C:Python36-32libsite-packagesmatplotlibtexmanager.py", line 298, in _run_checked_subprocess
stderr=subprocess.STDOUT)
File "C:Python36-32libsubprocess.py", line 336, in check_output
**kwargs).stdout
File "C:Python36-32libsubprocess.py", line 403, in run
with Popen(*popenargs, **kwargs) as process:
File "C:Python36-32libsubprocess.py", line 709, in __init__
restore_signals, start_new_session)
File "C:Python36-32libsubprocess.py", line 997, in _execute_child
startupinfo)
FileNotFoundError: [WinError 2] The system cannot find the file specified









share|improve this question
























  • clearly, the code is looking for a file that doesn't exist. Does part of the omitted stacktrace show what file it is looking for?

    – Bryan Oakley
    Mar 7 at 13:59











  • @BryanOakley no, it mentioned files of Ipython, Matplotlib and tkinter

    – Ma Y
    Mar 7 at 14:31











  • I think nobody will really be able to help you with the information given. Could you please post the full error trace and the part of the code that causes the error?

    – Thomas Kühn
    Mar 7 at 18:40











  • @ThomasKühn updated with full error mesage.

    – Ma Y
    Mar 7 at 22:52






  • 1





    Hmm, it looks like some tool in your system is not installed or set up correctly. It almost looks like this is not directly python related. As the last matplotlib file in the error chain is texmanager.py, could you check what happens if you comment out the line plt.rcParams['text.usetex']=True in the tutorial you are following?

    – Thomas Kühn
    Mar 8 at 7:32
















0















I had been using jupyter and using some codes similar to this tutorial for plotting contours using Getdist.
After that for some other things I have installed GnuParallel and Git-Bash and after that the plotting part of Python has been broken down.
I have two python version with 2.7 I can plot simple tasks but I cannot plot that tutorial. With python 3 I cannot plot anything.



I tried to reinstall tkinter but there is no straightforward way.
I have uninstalled all python packages, git-bash, gnuparallel and manually deleted all folders of them, but still after installing I have this problem.



any help please?



Full error trace:



Exception in Tkinter callback
Traceback (most recent call last):
File "C:Python36-32libtkinter__init__.py", line 1699, in __call__
return self.func(*args)
File "C:Python36-32libsite-packagesmatplotlibbackends_backend_tk.py", line 267, in resize
self.draw()
File "C:Python36-32libsite-packagesmatplotlibbackendsbackend_tkagg.py", line 9, in draw
super(FigureCanvasTkAgg, self).draw()
File "C:Python36-32libsite-packagesmatplotlibbackendsbackend_agg.py", line 402, in draw
self.figure.draw(self.renderer)
File "C:Python36-32libsite-packagesmatplotlibartist.py", line 50, in draw_wrapper
return draw(artist, renderer, *args, **kwargs)
File "C:Python36-32libsite-packagesmatplotlibfigure.py", line 1649, in draw
renderer, self, artists, self.suppressComposite)
File "C:Python36-32libsite-packagesmatplotlibimage.py", line 138, in _draw_list_compositing_images
a.draw(renderer)
File "C:Python36-32libsite-packagesmatplotlibartist.py", line 50, in draw_wrapper
return draw(artist, renderer, *args, **kwargs)
File "C:Python36-32libsite-packagesmatplotlibaxes_base.py", line 2628, in draw
mimage._draw_list_compositing_images(renderer, self, artists)
File "C:Python36-32libsite-packagesmatplotlibimage.py", line 138, in _draw_list_compositing_images
a.draw(renderer)
File "C:Python36-32libsite-packagesmatplotlibartist.py", line 50, in draw_wrapper
return draw(artist, renderer, *args, **kwargs)
File "C:Python36-32libsite-packagesmatplotlibaxis.py", line 1187, in draw
renderer)
File "C:Python36-32libsite-packagesmatplotlibaxis.py", line 1125, in _get_tick_bboxes
extent = tick.label1.get_window_extent(renderer)
File "C:Python36-32libsite-packagesmatplotlibtext.py", line 930, in get_window_extent
bbox, info, descent = self._get_layout(self._renderer)
File "C:Python36-32libsite-packagesmatplotlibtext.py", line 313, in _get_layout
ismath=ismath)
File "C:Python36-32libsite-packagesmatplotlibbackendsbackend_agg.py", line 209, in get_text_width_height_descent
s, fontsize, renderer=self)
File "C:Python36-32libsite-packagesmatplotlibtexmanager.py", line 464, in get_text_width_height_descent
dvifile = self.make_dvi(tex, fontsize)
File "C:Python36-32libsite-packagesmatplotlibtexmanager.py", line 328, in make_dvi
texfile], tex)
File "C:Python36-32libsite-packagesmatplotlibtexmanager.py", line 298, in _run_checked_subprocess
stderr=subprocess.STDOUT)
File "C:Python36-32libsubprocess.py", line 336, in check_output
**kwargs).stdout
File "C:Python36-32libsubprocess.py", line 403, in run
with Popen(*popenargs, **kwargs) as process:
File "C:Python36-32libsubprocess.py", line 709, in __init__
restore_signals, start_new_session)
File "C:Python36-32libsubprocess.py", line 997, in _execute_child
startupinfo)
FileNotFoundError: [WinError 2] The system cannot find the file specified
Exception in Tkinter callback
Traceback (most recent call last):
File "C:Python36-32libtkinter__init__.py", line 1699, in __call__
return self.func(*args)
File "C:Python36-32libtkinter__init__.py", line 745, in callit
func(*args)
File "C:Python36-32libsite-packagesmatplotlibbackends_backend_tk.py", line 346, in idle_draw
self.draw()
File "C:Python36-32libsite-packagesmatplotlibbackendsbackend_tkagg.py", line 9, in draw
super(FigureCanvasTkAgg, self).draw()
File "C:Python36-32libsite-packagesmatplotlibbackendsbackend_agg.py", line 402, in draw
self.figure.draw(self.renderer)
File "C:Python36-32libsite-packagesmatplotlibartist.py", line 50, in draw_wrapper
return draw(artist, renderer, *args, **kwargs)
File "C:Python36-32libsite-packagesmatplotlibfigure.py", line 1649, in draw
renderer, self, artists, self.suppressComposite)
File "C:Python36-32libsite-packagesmatplotlibimage.py", line 138, in _draw_list_compositing_images
a.draw(renderer)
File "C:Python36-32libsite-packagesmatplotlibartist.py", line 50, in draw_wrapper
return draw(artist, renderer, *args, **kwargs)
File "C:Python36-32libsite-packagesmatplotlibaxes_base.py", line 2628, in draw
mimage._draw_list_compositing_images(renderer, self, artists)
File "C:Python36-32libsite-packagesmatplotlibimage.py", line 138, in _draw_list_compositing_images
a.draw(renderer)
File "C:Python36-32libsite-packagesmatplotlibartist.py", line 50, in draw_wrapper
return draw(artist, renderer, *args, **kwargs)
File "C:Python36-32libsite-packagesmatplotlibaxis.py", line 1187, in draw
renderer)
File "C:Python36-32libsite-packagesmatplotlibaxis.py", line 1125, in _get_tick_bboxes
extent = tick.label1.get_window_extent(renderer)
File "C:Python36-32libsite-packagesmatplotlibtext.py", line 930, in get_window_extent
bbox, info, descent = self._get_layout(self._renderer)
File "C:Python36-32libsite-packagesmatplotlibtext.py", line 313, in _get_layout
ismath=ismath)
File "C:Python36-32libsite-packagesmatplotlibbackendsbackend_agg.py", line 209, in get_text_width_height_descent
s, fontsize, renderer=self)
File "C:Python36-32libsite-packagesmatplotlibtexmanager.py", line 464, in get_text_width_height_descent
dvifile = self.make_dvi(tex, fontsize)
File "C:Python36-32libsite-packagesmatplotlibtexmanager.py", line 328, in make_dvi
texfile], tex)
File "C:Python36-32libsite-packagesmatplotlibtexmanager.py", line 298, in _run_checked_subprocess
stderr=subprocess.STDOUT)
File "C:Python36-32libsubprocess.py", line 336, in check_output
**kwargs).stdout
File "C:Python36-32libsubprocess.py", line 403, in run
with Popen(*popenargs, **kwargs) as process:
File "C:Python36-32libsubprocess.py", line 709, in __init__
restore_signals, start_new_session)
File "C:Python36-32libsubprocess.py", line 997, in _execute_child
startupinfo)
FileNotFoundError: [WinError 2] The system cannot find the file specified









share|improve this question
























  • clearly, the code is looking for a file that doesn't exist. Does part of the omitted stacktrace show what file it is looking for?

    – Bryan Oakley
    Mar 7 at 13:59











  • @BryanOakley no, it mentioned files of Ipython, Matplotlib and tkinter

    – Ma Y
    Mar 7 at 14:31











  • I think nobody will really be able to help you with the information given. Could you please post the full error trace and the part of the code that causes the error?

    – Thomas Kühn
    Mar 7 at 18:40











  • @ThomasKühn updated with full error mesage.

    – Ma Y
    Mar 7 at 22:52






  • 1





    Hmm, it looks like some tool in your system is not installed or set up correctly. It almost looks like this is not directly python related. As the last matplotlib file in the error chain is texmanager.py, could you check what happens if you comment out the line plt.rcParams['text.usetex']=True in the tutorial you are following?

    – Thomas Kühn
    Mar 8 at 7:32














0












0








0








I had been using jupyter and using some codes similar to this tutorial for plotting contours using Getdist.
After that for some other things I have installed GnuParallel and Git-Bash and after that the plotting part of Python has been broken down.
I have two python version with 2.7 I can plot simple tasks but I cannot plot that tutorial. With python 3 I cannot plot anything.



I tried to reinstall tkinter but there is no straightforward way.
I have uninstalled all python packages, git-bash, gnuparallel and manually deleted all folders of them, but still after installing I have this problem.



any help please?



Full error trace:



Exception in Tkinter callback
Traceback (most recent call last):
File "C:Python36-32libtkinter__init__.py", line 1699, in __call__
return self.func(*args)
File "C:Python36-32libsite-packagesmatplotlibbackends_backend_tk.py", line 267, in resize
self.draw()
File "C:Python36-32libsite-packagesmatplotlibbackendsbackend_tkagg.py", line 9, in draw
super(FigureCanvasTkAgg, self).draw()
File "C:Python36-32libsite-packagesmatplotlibbackendsbackend_agg.py", line 402, in draw
self.figure.draw(self.renderer)
File "C:Python36-32libsite-packagesmatplotlibartist.py", line 50, in draw_wrapper
return draw(artist, renderer, *args, **kwargs)
File "C:Python36-32libsite-packagesmatplotlibfigure.py", line 1649, in draw
renderer, self, artists, self.suppressComposite)
File "C:Python36-32libsite-packagesmatplotlibimage.py", line 138, in _draw_list_compositing_images
a.draw(renderer)
File "C:Python36-32libsite-packagesmatplotlibartist.py", line 50, in draw_wrapper
return draw(artist, renderer, *args, **kwargs)
File "C:Python36-32libsite-packagesmatplotlibaxes_base.py", line 2628, in draw
mimage._draw_list_compositing_images(renderer, self, artists)
File "C:Python36-32libsite-packagesmatplotlibimage.py", line 138, in _draw_list_compositing_images
a.draw(renderer)
File "C:Python36-32libsite-packagesmatplotlibartist.py", line 50, in draw_wrapper
return draw(artist, renderer, *args, **kwargs)
File "C:Python36-32libsite-packagesmatplotlibaxis.py", line 1187, in draw
renderer)
File "C:Python36-32libsite-packagesmatplotlibaxis.py", line 1125, in _get_tick_bboxes
extent = tick.label1.get_window_extent(renderer)
File "C:Python36-32libsite-packagesmatplotlibtext.py", line 930, in get_window_extent
bbox, info, descent = self._get_layout(self._renderer)
File "C:Python36-32libsite-packagesmatplotlibtext.py", line 313, in _get_layout
ismath=ismath)
File "C:Python36-32libsite-packagesmatplotlibbackendsbackend_agg.py", line 209, in get_text_width_height_descent
s, fontsize, renderer=self)
File "C:Python36-32libsite-packagesmatplotlibtexmanager.py", line 464, in get_text_width_height_descent
dvifile = self.make_dvi(tex, fontsize)
File "C:Python36-32libsite-packagesmatplotlibtexmanager.py", line 328, in make_dvi
texfile], tex)
File "C:Python36-32libsite-packagesmatplotlibtexmanager.py", line 298, in _run_checked_subprocess
stderr=subprocess.STDOUT)
File "C:Python36-32libsubprocess.py", line 336, in check_output
**kwargs).stdout
File "C:Python36-32libsubprocess.py", line 403, in run
with Popen(*popenargs, **kwargs) as process:
File "C:Python36-32libsubprocess.py", line 709, in __init__
restore_signals, start_new_session)
File "C:Python36-32libsubprocess.py", line 997, in _execute_child
startupinfo)
FileNotFoundError: [WinError 2] The system cannot find the file specified
Exception in Tkinter callback
Traceback (most recent call last):
File "C:Python36-32libtkinter__init__.py", line 1699, in __call__
return self.func(*args)
File "C:Python36-32libtkinter__init__.py", line 745, in callit
func(*args)
File "C:Python36-32libsite-packagesmatplotlibbackends_backend_tk.py", line 346, in idle_draw
self.draw()
File "C:Python36-32libsite-packagesmatplotlibbackendsbackend_tkagg.py", line 9, in draw
super(FigureCanvasTkAgg, self).draw()
File "C:Python36-32libsite-packagesmatplotlibbackendsbackend_agg.py", line 402, in draw
self.figure.draw(self.renderer)
File "C:Python36-32libsite-packagesmatplotlibartist.py", line 50, in draw_wrapper
return draw(artist, renderer, *args, **kwargs)
File "C:Python36-32libsite-packagesmatplotlibfigure.py", line 1649, in draw
renderer, self, artists, self.suppressComposite)
File "C:Python36-32libsite-packagesmatplotlibimage.py", line 138, in _draw_list_compositing_images
a.draw(renderer)
File "C:Python36-32libsite-packagesmatplotlibartist.py", line 50, in draw_wrapper
return draw(artist, renderer, *args, **kwargs)
File "C:Python36-32libsite-packagesmatplotlibaxes_base.py", line 2628, in draw
mimage._draw_list_compositing_images(renderer, self, artists)
File "C:Python36-32libsite-packagesmatplotlibimage.py", line 138, in _draw_list_compositing_images
a.draw(renderer)
File "C:Python36-32libsite-packagesmatplotlibartist.py", line 50, in draw_wrapper
return draw(artist, renderer, *args, **kwargs)
File "C:Python36-32libsite-packagesmatplotlibaxis.py", line 1187, in draw
renderer)
File "C:Python36-32libsite-packagesmatplotlibaxis.py", line 1125, in _get_tick_bboxes
extent = tick.label1.get_window_extent(renderer)
File "C:Python36-32libsite-packagesmatplotlibtext.py", line 930, in get_window_extent
bbox, info, descent = self._get_layout(self._renderer)
File "C:Python36-32libsite-packagesmatplotlibtext.py", line 313, in _get_layout
ismath=ismath)
File "C:Python36-32libsite-packagesmatplotlibbackendsbackend_agg.py", line 209, in get_text_width_height_descent
s, fontsize, renderer=self)
File "C:Python36-32libsite-packagesmatplotlibtexmanager.py", line 464, in get_text_width_height_descent
dvifile = self.make_dvi(tex, fontsize)
File "C:Python36-32libsite-packagesmatplotlibtexmanager.py", line 328, in make_dvi
texfile], tex)
File "C:Python36-32libsite-packagesmatplotlibtexmanager.py", line 298, in _run_checked_subprocess
stderr=subprocess.STDOUT)
File "C:Python36-32libsubprocess.py", line 336, in check_output
**kwargs).stdout
File "C:Python36-32libsubprocess.py", line 403, in run
with Popen(*popenargs, **kwargs) as process:
File "C:Python36-32libsubprocess.py", line 709, in __init__
restore_signals, start_new_session)
File "C:Python36-32libsubprocess.py", line 997, in _execute_child
startupinfo)
FileNotFoundError: [WinError 2] The system cannot find the file specified









share|improve this question
















I had been using jupyter and using some codes similar to this tutorial for plotting contours using Getdist.
After that for some other things I have installed GnuParallel and Git-Bash and after that the plotting part of Python has been broken down.
I have two python version with 2.7 I can plot simple tasks but I cannot plot that tutorial. With python 3 I cannot plot anything.



I tried to reinstall tkinter but there is no straightforward way.
I have uninstalled all python packages, git-bash, gnuparallel and manually deleted all folders of them, but still after installing I have this problem.



any help please?



Full error trace:



Exception in Tkinter callback
Traceback (most recent call last):
File "C:Python36-32libtkinter__init__.py", line 1699, in __call__
return self.func(*args)
File "C:Python36-32libsite-packagesmatplotlibbackends_backend_tk.py", line 267, in resize
self.draw()
File "C:Python36-32libsite-packagesmatplotlibbackendsbackend_tkagg.py", line 9, in draw
super(FigureCanvasTkAgg, self).draw()
File "C:Python36-32libsite-packagesmatplotlibbackendsbackend_agg.py", line 402, in draw
self.figure.draw(self.renderer)
File "C:Python36-32libsite-packagesmatplotlibartist.py", line 50, in draw_wrapper
return draw(artist, renderer, *args, **kwargs)
File "C:Python36-32libsite-packagesmatplotlibfigure.py", line 1649, in draw
renderer, self, artists, self.suppressComposite)
File "C:Python36-32libsite-packagesmatplotlibimage.py", line 138, in _draw_list_compositing_images
a.draw(renderer)
File "C:Python36-32libsite-packagesmatplotlibartist.py", line 50, in draw_wrapper
return draw(artist, renderer, *args, **kwargs)
File "C:Python36-32libsite-packagesmatplotlibaxes_base.py", line 2628, in draw
mimage._draw_list_compositing_images(renderer, self, artists)
File "C:Python36-32libsite-packagesmatplotlibimage.py", line 138, in _draw_list_compositing_images
a.draw(renderer)
File "C:Python36-32libsite-packagesmatplotlibartist.py", line 50, in draw_wrapper
return draw(artist, renderer, *args, **kwargs)
File "C:Python36-32libsite-packagesmatplotlibaxis.py", line 1187, in draw
renderer)
File "C:Python36-32libsite-packagesmatplotlibaxis.py", line 1125, in _get_tick_bboxes
extent = tick.label1.get_window_extent(renderer)
File "C:Python36-32libsite-packagesmatplotlibtext.py", line 930, in get_window_extent
bbox, info, descent = self._get_layout(self._renderer)
File "C:Python36-32libsite-packagesmatplotlibtext.py", line 313, in _get_layout
ismath=ismath)
File "C:Python36-32libsite-packagesmatplotlibbackendsbackend_agg.py", line 209, in get_text_width_height_descent
s, fontsize, renderer=self)
File "C:Python36-32libsite-packagesmatplotlibtexmanager.py", line 464, in get_text_width_height_descent
dvifile = self.make_dvi(tex, fontsize)
File "C:Python36-32libsite-packagesmatplotlibtexmanager.py", line 328, in make_dvi
texfile], tex)
File "C:Python36-32libsite-packagesmatplotlibtexmanager.py", line 298, in _run_checked_subprocess
stderr=subprocess.STDOUT)
File "C:Python36-32libsubprocess.py", line 336, in check_output
**kwargs).stdout
File "C:Python36-32libsubprocess.py", line 403, in run
with Popen(*popenargs, **kwargs) as process:
File "C:Python36-32libsubprocess.py", line 709, in __init__
restore_signals, start_new_session)
File "C:Python36-32libsubprocess.py", line 997, in _execute_child
startupinfo)
FileNotFoundError: [WinError 2] The system cannot find the file specified
Exception in Tkinter callback
Traceback (most recent call last):
File "C:Python36-32libtkinter__init__.py", line 1699, in __call__
return self.func(*args)
File "C:Python36-32libtkinter__init__.py", line 745, in callit
func(*args)
File "C:Python36-32libsite-packagesmatplotlibbackends_backend_tk.py", line 346, in idle_draw
self.draw()
File "C:Python36-32libsite-packagesmatplotlibbackendsbackend_tkagg.py", line 9, in draw
super(FigureCanvasTkAgg, self).draw()
File "C:Python36-32libsite-packagesmatplotlibbackendsbackend_agg.py", line 402, in draw
self.figure.draw(self.renderer)
File "C:Python36-32libsite-packagesmatplotlibartist.py", line 50, in draw_wrapper
return draw(artist, renderer, *args, **kwargs)
File "C:Python36-32libsite-packagesmatplotlibfigure.py", line 1649, in draw
renderer, self, artists, self.suppressComposite)
File "C:Python36-32libsite-packagesmatplotlibimage.py", line 138, in _draw_list_compositing_images
a.draw(renderer)
File "C:Python36-32libsite-packagesmatplotlibartist.py", line 50, in draw_wrapper
return draw(artist, renderer, *args, **kwargs)
File "C:Python36-32libsite-packagesmatplotlibaxes_base.py", line 2628, in draw
mimage._draw_list_compositing_images(renderer, self, artists)
File "C:Python36-32libsite-packagesmatplotlibimage.py", line 138, in _draw_list_compositing_images
a.draw(renderer)
File "C:Python36-32libsite-packagesmatplotlibartist.py", line 50, in draw_wrapper
return draw(artist, renderer, *args, **kwargs)
File "C:Python36-32libsite-packagesmatplotlibaxis.py", line 1187, in draw
renderer)
File "C:Python36-32libsite-packagesmatplotlibaxis.py", line 1125, in _get_tick_bboxes
extent = tick.label1.get_window_extent(renderer)
File "C:Python36-32libsite-packagesmatplotlibtext.py", line 930, in get_window_extent
bbox, info, descent = self._get_layout(self._renderer)
File "C:Python36-32libsite-packagesmatplotlibtext.py", line 313, in _get_layout
ismath=ismath)
File "C:Python36-32libsite-packagesmatplotlibbackendsbackend_agg.py", line 209, in get_text_width_height_descent
s, fontsize, renderer=self)
File "C:Python36-32libsite-packagesmatplotlibtexmanager.py", line 464, in get_text_width_height_descent
dvifile = self.make_dvi(tex, fontsize)
File "C:Python36-32libsite-packagesmatplotlibtexmanager.py", line 328, in make_dvi
texfile], tex)
File "C:Python36-32libsite-packagesmatplotlibtexmanager.py", line 298, in _run_checked_subprocess
stderr=subprocess.STDOUT)
File "C:Python36-32libsubprocess.py", line 336, in check_output
**kwargs).stdout
File "C:Python36-32libsubprocess.py", line 403, in run
with Popen(*popenargs, **kwargs) as process:
File "C:Python36-32libsubprocess.py", line 709, in __init__
restore_signals, start_new_session)
File "C:Python36-32libsubprocess.py", line 997, in _execute_child
startupinfo)
FileNotFoundError: [WinError 2] The system cannot find the file specified






python matplotlib tkinter git-bash gnu-parallel






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 8 at 6:49









Kamal

1,175619




1,175619










asked Mar 7 at 12:56









Ma YMa Y

1579




1579












  • clearly, the code is looking for a file that doesn't exist. Does part of the omitted stacktrace show what file it is looking for?

    – Bryan Oakley
    Mar 7 at 13:59











  • @BryanOakley no, it mentioned files of Ipython, Matplotlib and tkinter

    – Ma Y
    Mar 7 at 14:31











  • I think nobody will really be able to help you with the information given. Could you please post the full error trace and the part of the code that causes the error?

    – Thomas Kühn
    Mar 7 at 18:40











  • @ThomasKühn updated with full error mesage.

    – Ma Y
    Mar 7 at 22:52






  • 1





    Hmm, it looks like some tool in your system is not installed or set up correctly. It almost looks like this is not directly python related. As the last matplotlib file in the error chain is texmanager.py, could you check what happens if you comment out the line plt.rcParams['text.usetex']=True in the tutorial you are following?

    – Thomas Kühn
    Mar 8 at 7:32


















  • clearly, the code is looking for a file that doesn't exist. Does part of the omitted stacktrace show what file it is looking for?

    – Bryan Oakley
    Mar 7 at 13:59











  • @BryanOakley no, it mentioned files of Ipython, Matplotlib and tkinter

    – Ma Y
    Mar 7 at 14:31











  • I think nobody will really be able to help you with the information given. Could you please post the full error trace and the part of the code that causes the error?

    – Thomas Kühn
    Mar 7 at 18:40











  • @ThomasKühn updated with full error mesage.

    – Ma Y
    Mar 7 at 22:52






  • 1





    Hmm, it looks like some tool in your system is not installed or set up correctly. It almost looks like this is not directly python related. As the last matplotlib file in the error chain is texmanager.py, could you check what happens if you comment out the line plt.rcParams['text.usetex']=True in the tutorial you are following?

    – Thomas Kühn
    Mar 8 at 7:32

















clearly, the code is looking for a file that doesn't exist. Does part of the omitted stacktrace show what file it is looking for?

– Bryan Oakley
Mar 7 at 13:59





clearly, the code is looking for a file that doesn't exist. Does part of the omitted stacktrace show what file it is looking for?

– Bryan Oakley
Mar 7 at 13:59













@BryanOakley no, it mentioned files of Ipython, Matplotlib and tkinter

– Ma Y
Mar 7 at 14:31





@BryanOakley no, it mentioned files of Ipython, Matplotlib and tkinter

– Ma Y
Mar 7 at 14:31













I think nobody will really be able to help you with the information given. Could you please post the full error trace and the part of the code that causes the error?

– Thomas Kühn
Mar 7 at 18:40





I think nobody will really be able to help you with the information given. Could you please post the full error trace and the part of the code that causes the error?

– Thomas Kühn
Mar 7 at 18:40













@ThomasKühn updated with full error mesage.

– Ma Y
Mar 7 at 22:52





@ThomasKühn updated with full error mesage.

– Ma Y
Mar 7 at 22:52




1




1





Hmm, it looks like some tool in your system is not installed or set up correctly. It almost looks like this is not directly python related. As the last matplotlib file in the error chain is texmanager.py, could you check what happens if you comment out the line plt.rcParams['text.usetex']=True in the tutorial you are following?

– Thomas Kühn
Mar 8 at 7:32






Hmm, it looks like some tool in your system is not installed or set up correctly. It almost looks like this is not directly python related. As the last matplotlib file in the error chain is texmanager.py, could you check what happens if you comment out the line plt.rcParams['text.usetex']=True in the tutorial you are following?

– Thomas Kühn
Mar 8 at 7:32













0






active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55044343%2ffilenotfounderror-with-matplotlib-and-tkinter%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes















draft saved

draft discarded
















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55044343%2ffilenotfounderror-with-matplotlib-and-tkinter%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

1928 у кіно

Захаров Федір Захарович

Ель Греко