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

No module named tkinter #1

Open
aitaix opened this issue Jun 26, 2019 · 3 comments
Open

No module named tkinter #1

aitaix opened this issue Jun 26, 2019 · 3 comments

Comments

@aitaix
Copy link

aitaix commented Jun 26, 2019

I'm running Ubuntu 18.04 and coming across this issue when attempting to run the python script.

python src/blynclight.py cycle
Traceback (most recent call last):
File "src/blynclight.py", line 33, in
import tkinter
ImportError: No module named tkinter

@Davidbillingsley
Copy link

@aitaix What version of python are you using? tkinter is python 2 and Tkinter is python 3. This particular code is for python 3.

@dvereb
Copy link

dvereb commented Jan 27, 2021

@aitaix I had the same problem and was in fact using the wrong python version. When I ran python3 blynclight.py it worked, but only after running sudo apt install python3-tk on Ubuntu 16.04.

@satchernet
Copy link

@aitaix What version of python are you using? tkinter is python 2 and Tkinter is python 3. This particular code is for python 3.

but i think it's wrong, tkinter is for python 3 and Tkinter is for python 2

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

4 participants