Platform: Fedora 16 i686
I hope you guys are doing well. Here is my error: ** IDLE can't import Tkinter. Your Python may not be configured for Tk. **
this is what I get when I run idle from shell. I have been using Linux for a while now; however, Im still learning about it. I did try to uninstall Python2.7 which is the one that comes with Fedora 16 but it has a lot of dependencies that will screw my OS big time. I know Tkinter is installed, cause yesterday I managed to make it run, but I dont remember how now(I was following the instructions of a google search) but the fix was temp as its not working now.
Anyway, there must be a way to make Python search for the tkinter library which is what I think the problem is. Any help will be much appreciated. Any ideas why this bug hasnt been fixed by the Fedora group?
---------- Post added at 12:22 PM ---------- Previous post was at 11:27 AM ----------
Righto, so this is how I fixed it yesterday. I created a file called idle2 on /usr/bin/ directory and copy this function from the web.
from idlelib.PyShell import main
if __name__ == "__main__":
------------------------------ Solved. So, the function must declare something like this(correct me if you think Im saying the wrong answer): from method idlelib.Pyshel import main function, and then the conditional if name == main then call main(). If you know of any other way of have more info, please let me know.