Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python 3 update : Tkinter renamed to tkinter #12

Open
mskb01 opened this issue Oct 28, 2016 · 2 comments
Open

Python 3 update : Tkinter renamed to tkinter #12

mskb01 opened this issue Oct 28, 2016 · 2 comments

Comments

@mskb01
Copy link

mskb01 commented Oct 28, 2016

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
Copy link
Contributor

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

@mskb01
Copy link
Author

mskb01 commented Oct 28, 2016

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants