HIPS / pgmult

Dependent multinomials made easy: stick-breaking with the Pólya-gamma augmentation
MIT License
59 stars 22 forks source link

Python 3 update : Tkinter renamed to tkinter #12

Open mskb01 opened 7 years ago

mskb01 commented 7 years ago

Hi, the Python 3 update of pgmult is causing the 'Import Error: no module named Tkinter'. Turns out it has been renamed to tkinter?

slinderman commented 7 years ago

I don't see any usages of TKinter in the repository. Can you send a stack trace of where it is being imported?

mskb01 commented 7 years ago

Oh sorry, I thought I pasted the stacktrace. It seems to arise from six.py Traceback (most recent call last): File "", line 1, in File "pgmult/lda.py", line 17, in from pybasicbayes.distributions import Gaussian File "pybasicbayes-0.2.1-py2.7-linux-x86_64.egg/pybasicbayes/init.py", line 2, in from . import abstractions, distributions, models, util File "pybasicbayes-0.2.1-py2.7-linux-x86_64.egg/pybasicbayes/abstractions.py", line 9, in from pybasicbayes.util.stats import combinedata File "pybasicbayes-0.2.1-py2.7-linux-x86_64.egg/pybasicbayes/util/init.py", line 3, in from . import general, plot, stats, text File "pybasicbayes-0.2.1-py2.7-linux-x86_64.egg/pybasicbayes/util/plot.py", line 4, in from matplotlib import pyplot as plt File "matplotlib-2.0.0b4-py2.7-linux-x86_64.egg/matplotlib/pyplot.py", line 114, in _backend_mod, new_figure_manager, draw_if_interactive, _show = pylab_setup() File "matplotlib-2.0.0b4-py2.7-linux-x86_64.egg/matplotlib/backends/init.py", line 32, in pylab_setup globals(),locals(),[backend_name],0) File "matplotlib-2.0.0b4-py2.7-linux-x86_64.egg/matplotlib/backends/backend_tkagg.py", line 6, in from six.moves import tkinter as Tk File "six-1.10.0-py2.7.egg/six.py", line 203, in load_module mod = mod._resolve() File "six-1.10.0-py2.7.egg/six.py", line 115, in _resolve return _import_module(self.mod) File "six-1.10.0-py2.7.egg/six.py", line 82, in _import_module import(name) ImportError: No module named Tkinter