Jonners49
Posts: 7
Joined: Fri Dec 12, 2014 11:14 am

Why do I get ImportError:no module named Tkinter when root?

Fri Feb 13, 2015 2:04 pm

Hi-

As my program also uses RPi.GPIO for control of I/O, I need to run as root. However, if I need to use the line:

Code: Select all

from Tkinter import *
when as root, I get the error - ImportError: no module names Tkinter (no problem if I run as a normal user). This must be something others have run up against!

Jon.

Return to “Beginners”