Rhapsod / sapienz

A Prototype of Sapienz (Out-of-date and no longer supported)
81 stars 49 forks source link

Missing python dependencies #11

Open davidyoung8906 opened 7 years ago

davidyoung8906 commented 7 years ago

When running sapienz against an open-source app, it throws the following errors:

Traceback (most recent call last):
  File "main.py", line 18, in <module>
    from plot import two_d_line
  File "/home/vagrant/issta16_artefact/plot/two_d_line.py", line 6, in <module>
    import matplotlib.pyplot as plt
  File "/usr/local/lib/python2.7/dist-packages/matplotlib/pyplot.py", line 115, in <module>
    _backend_mod, new_figure_manager, draw_if_interactive, _show = pylab_setup()
  File "/usr/local/lib/python2.7/dist-packages/matplotlib/backends/__init__.py", line 32, in pylab_setup
    globals(),locals(),[backend_name],0)
  File "/usr/local/lib/python2.7/dist-packages/matplotlib/backends/backend_tkagg.py", line 6, in <module>
    from six.moves import tkinter as Tk
  File "/usr/local/lib/python2.7/dist-packages/six.py", line 203, in load_module
    mod = mod._resolve()
  File "/usr/local/lib/python2.7/dist-packages/six.py", line 115, in _resolve
    return _import_module(self.mod)
  File "/usr/local/lib/python2.7/dist-packages/six.py", line 82, in _import_module
    __import__(name)
  File "/usr/lib/python2.7/lib-tk/Tkinter.py", line 42, in <module>
    raise ImportError, str(msg) + ', please install the python-tk package'
ImportError: No module named _tkinter, please install the python-tk package

Can you let me know how to resolve this issue?

Thanks!

lucaspelloni2 commented 7 years ago

It seems that you have not installed all the required python dependencies. I had the same problem! I solved this issue in the following way:

Hope it helps!

chinh-tran commented 7 years ago

You need the python-tk package: sudo apt-get install python-tk