I'm trying to run a python app, with needs TKinter to create a gui, apparently.
The problem is that I have set the "tk" flag and re-emerged python. In fact, I have /usr/lib/python3.1/lib-dynload/_tkinter.so in my system, but I still get

Code:

ImportError: No module named TKinter

when trying to run an app.

I also ran python-updater after re-emerge, and even tried to run the *.py program with phyton3.1directly intead of the default one. Always the same error.

I know it's an old thread, so I hope everyone has already figured it out by now. If you haven't, here is something that worked for me.

Code:

/etc/portage/package.use
dev-lang/python tk

Code:

emerge -v --newuse python

Now, "import tkinter" (for Python 3.x) should work, but if it gives you "ImportError: No module named tkinter", make sure you are using the right Python version. For my case, I had v2.7, v3.1 (as default), and v3.2.