distruct: _tkinter.TclError

234 views
Skip to first unread message

Steven Myers

unread,
Sep 16, 2016, 10:20:06 AM9/16/16
to structure-software
I've run fastStructure and chooseK on my data, and now I'm trying to run distruct on the data that maximizes marginal likelihood, but I'm getting a _tkinter.TclError.

my output looks like this:

file with population labels is not provided or does not exist .... 
creating population labels based on inferred admixture proportions
Traceback (most recent call last):
  File "distruct.py", line 170, in <module>
    figure = plot_admixture(admixture, population_indices, population_labels, title)
  File "distruct.py", line 16, in plot_admixture
    figure = plot.figure(figsize=(5,3))
  File "/usr/lib/python2.7/dist-packages/matplotlib/pyplot.py", line 527, in figure
    **kwargs)
  File "/usr/lib/python2.7/dist-packages/matplotlib/backends/backend_tkagg.py", line 84, in new_figure_manager
    return new_figure_manager_given_figure(num, figure)
  File "/usr/lib/python2.7/dist-packages/matplotlib/backends/backend_tkagg.py", line 92, in new_figure_manager_given_figure
    window = Tk.Tk()
  File "/usr/lib/python2.7/lib-tk/Tkinter.py", line 1818, in __init__
    self.tk = _tkinter.create(screenName, baseName, className, interactive, wantobjects, useTk, sync, use)
_tkinter.TclError: no display name and no $DISPLAY environment variable

Steven Myers

unread,
Sep 19, 2016, 10:16:31 PM9/19/16
to structure-software
okay, I found this:


It suggests it could be an issue with running remotely -- I'm running a VM on a research cloud. I connect to the VM via ssh from a windows PC using putty, but everything I run (e.g. files, scripts, input/output directories) is contained within the VM instance.

Vikram Chhatre

unread,
Sep 19, 2016, 10:27:13 PM9/19/16
to structure-software
Steven:

I have seen this error multiple times when running things remotely as well.  While this is not a solution by any means, distruct does not really need to be run remotely.  The computational overload is minimal and it works well on Mac workstations.  I have no experience with running it on Windows though it should certainly be possible.

V

--
You received this message because you are subscribed to the Google Groups "structure-software" group.
To unsubscribe from this group and stop receiving emails from it, send an email to structure-software+unsub...@googlegroups.com.
To post to this group, send email to structure-software@googlegroups.com.
Visit this group at https://groups.google.com/group/structure-software.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages