I am trying to use distruct.py of FastStructure, but the following instructions keep appearing after many attempts, but I can't find the problem, could someone help me?()
It is my code: distruct.py -K 3 --input=date --output=distruct.svg
The result is:
Traceback (most recent call last):
File "/opt/service/miniconda3/envs/faststructure_env/bin/distruct.py", line 166, in <module>
figure = plot_admixture(admixture, population_indices, population_labels, title)
File "/opt/service/miniconda3/envs/faststructure_env/bin/distruct.py", line 17, in plot_admixture
figure = plot.figure(figsize=(5,3))
File "/opt/service/miniconda3/envs/faststructure_env/lib/python2.7/site-packages/matplotlib/pyplot.py", line 533, in figure
**kwargs)
File "/opt/service/miniconda3/envs/faststructure_env/lib/python2.7/site-packages/matplotlib/backend_bases.py", line 161, in new_figure_manager
return cls.new_figure_manager_given_figure(num, fig)
File "/opt/service/miniconda3/envs/faststructure_env/lib/python2.7/site-packages/matplotlib/backends/_backend_tk.py", line 1046, in new_figure_manager_given_figure
window = Tk.Tk(className="matplotlib")
File "/opt/service/miniconda3/envs/faststructure_env/lib/python2.7/lib-tk/Tkinter.py", line 1819, in __init__
self.tk = _tkinter.create(screenName, baseName, className, interactive, wantobjects, useTk, sync, use)
_tkinter.TclError: no display name and no $DISPLAY environment variable
no display name and no $DISPLAY environment variable
are you runnning this over SSH ? you need to connect using
ssh -X remoteMachine
command to use Xwindows.