FileNotFoundError с matplotlib и tkinter - PullRequest
       16

FileNotFoundError с matplotlib и tkinter

0 голосов
/ 07 марта 2019

Я использовал jupyter и использовал некоторые коды, подобные этого урока для построения контуров с использованием Getdist.После этого для некоторых других вещей я установил GnuParallel и Git-Bash, и после этого часть Python для черчения была разбита.У меня есть две версии Python с 2.7 Я могу строить простые задачи, но я не могу построить этот учебник.С питоном 3 я ничего не могу построить.

Я пытался переустановить tkinter, но прямого пути нет.Я удалил все пакеты Python, git-bash, gnuparallel и вручную удалил все папки из них, но все же после установки у меня возникает эта проблема.

любая помощь, пожалуйста?

Полная трассировка ошибок:

Exception in Tkinter callback
Traceback (most recent call last):
  File "C:\Python36-32\lib\tkinter\__init__.py", line 1699, in __call__
    return self.func(*args)
  File "C:\Python36-32\lib\site-packages\matplotlib\backends\_backend_tk.py", line 267, in resize
    self.draw()
  File "C:\Python36-32\lib\site-packages\matplotlib\backends\backend_tkagg.py", line 9, in draw
    super(FigureCanvasTkAgg, self).draw()
  File "C:\Python36-32\lib\site-packages\matplotlib\backends\backend_agg.py", line 402, in draw
    self.figure.draw(self.renderer)
  File "C:\Python36-32\lib\site-packages\matplotlib\artist.py", line 50, in draw_wrapper
    return draw(artist, renderer, *args, **kwargs)
  File "C:\Python36-32\lib\site-packages\matplotlib\figure.py", line 1649, in draw
    renderer, self, artists, self.suppressComposite)
  File "C:\Python36-32\lib\site-packages\matplotlib\image.py", line 138, in _draw_list_compositing_images
    a.draw(renderer)
  File "C:\Python36-32\lib\site-packages\matplotlib\artist.py", line 50, in draw_wrapper
    return draw(artist, renderer, *args, **kwargs)
  File "C:\Python36-32\lib\site-packages\matplotlib\axes\_base.py", line 2628, in draw
    mimage._draw_list_compositing_images(renderer, self, artists)
  File "C:\Python36-32\lib\site-packages\matplotlib\image.py", line 138, in _draw_list_compositing_images
    a.draw(renderer)
  File "C:\Python36-32\lib\site-packages\matplotlib\artist.py", line 50, in draw_wrapper
    return draw(artist, renderer, *args, **kwargs)
  File "C:\Python36-32\lib\site-packages\matplotlib\axis.py", line 1187, in draw
    renderer)
  File "C:\Python36-32\lib\site-packages\matplotlib\axis.py", line 1125, in _get_tick_bboxes
    extent = tick.label1.get_window_extent(renderer)
  File "C:\Python36-32\lib\site-packages\matplotlib\text.py", line 930, in get_window_extent
    bbox, info, descent = self._get_layout(self._renderer)
  File "C:\Python36-32\lib\site-packages\matplotlib\text.py", line 313, in _get_layout
    ismath=ismath)
  File "C:\Python36-32\lib\site-packages\matplotlib\backends\backend_agg.py", line 209, in get_text_width_height_descent
    s, fontsize, renderer=self)
  File "C:\Python36-32\lib\site-packages\matplotlib\texmanager.py", line 464, in get_text_width_height_descent
    dvifile = self.make_dvi(tex, fontsize)
  File "C:\Python36-32\lib\site-packages\matplotlib\texmanager.py", line 328, in make_dvi
    texfile], tex)
  File "C:\Python36-32\lib\site-packages\matplotlib\texmanager.py", line 298, in _run_checked_subprocess
    stderr=subprocess.STDOUT)
  File "C:\Python36-32\lib\subprocess.py", line 336, in check_output
    **kwargs).stdout
  File "C:\Python36-32\lib\subprocess.py", line 403, in run
    with Popen(*popenargs, **kwargs) as process:
  File "C:\Python36-32\lib\subprocess.py", line 709, in __init__
    restore_signals, start_new_session)
  File "C:\Python36-32\lib\subprocess.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-32\lib\tkinter\__init__.py", line 1699, in __call__
    return self.func(*args)
  File "C:\Python36-32\lib\tkinter\__init__.py", line 745, in callit
    func(*args)
  File "C:\Python36-32\lib\site-packages\matplotlib\backends\_backend_tk.py", line 346, in idle_draw
    self.draw()
  File "C:\Python36-32\lib\site-packages\matplotlib\backends\backend_tkagg.py", line 9, in draw
    super(FigureCanvasTkAgg, self).draw()
  File "C:\Python36-32\lib\site-packages\matplotlib\backends\backend_agg.py", line 402, in draw
    self.figure.draw(self.renderer)
  File "C:\Python36-32\lib\site-packages\matplotlib\artist.py", line 50, in draw_wrapper
    return draw(artist, renderer, *args, **kwargs)
  File "C:\Python36-32\lib\site-packages\matplotlib\figure.py", line 1649, in draw
    renderer, self, artists, self.suppressComposite)
  File "C:\Python36-32\lib\site-packages\matplotlib\image.py", line 138, in _draw_list_compositing_images
    a.draw(renderer)
  File "C:\Python36-32\lib\site-packages\matplotlib\artist.py", line 50, in draw_wrapper
    return draw(artist, renderer, *args, **kwargs)
  File "C:\Python36-32\lib\site-packages\matplotlib\axes\_base.py", line 2628, in draw
    mimage._draw_list_compositing_images(renderer, self, artists)
  File "C:\Python36-32\lib\site-packages\matplotlib\image.py", line 138, in _draw_list_compositing_images
    a.draw(renderer)
  File "C:\Python36-32\lib\site-packages\matplotlib\artist.py", line 50, in draw_wrapper
    return draw(artist, renderer, *args, **kwargs)
  File "C:\Python36-32\lib\site-packages\matplotlib\axis.py", line 1187, in draw
    renderer)
  File "C:\Python36-32\lib\site-packages\matplotlib\axis.py", line 1125, in _get_tick_bboxes
    extent = tick.label1.get_window_extent(renderer)
  File "C:\Python36-32\lib\site-packages\matplotlib\text.py", line 930, in get_window_extent
    bbox, info, descent = self._get_layout(self._renderer)
  File "C:\Python36-32\lib\site-packages\matplotlib\text.py", line 313, in _get_layout
    ismath=ismath)
  File "C:\Python36-32\lib\site-packages\matplotlib\backends\backend_agg.py", line 209, in get_text_width_height_descent
    s, fontsize, renderer=self)
  File "C:\Python36-32\lib\site-packages\matplotlib\texmanager.py", line 464, in get_text_width_height_descent
    dvifile = self.make_dvi(tex, fontsize)
  File "C:\Python36-32\lib\site-packages\matplotlib\texmanager.py", line 328, in make_dvi
    texfile], tex)
  File "C:\Python36-32\lib\site-packages\matplotlib\texmanager.py", line 298, in _run_checked_subprocess
    stderr=subprocess.STDOUT)
  File "C:\Python36-32\lib\subprocess.py", line 336, in check_output
    **kwargs).stdout
  File "C:\Python36-32\lib\subprocess.py", line 403, in run
    with Popen(*popenargs, **kwargs) as process:
  File "C:\Python36-32\lib\subprocess.py", line 709, in __init__
    restore_signals, start_new_session)
  File "C:\Python36-32\lib\subprocess.py", line 997, in _execute_child
    startupinfo)
FileNotFoundError: [WinError 2] The system cannot find the file specified
...