SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
root@riposo:~/works# python
Python 2.7.5 (default, May 29 2013, 02:28:51)
[GCC 4.8.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> quit()
root@riposo:~/works# idle
** IDLE can't import Tkinter. Your Python may not be configured for Tk. **
root@riposo:~/works#
I searched in vain for a solution ...
Regards, Dick
Thank you for the quick response.
Things do not work for a non-root user either.
I run a "selective" install.
Installing all 6 packages from the tcl disk set did not help.
There is nothing related in /var/log/messages.
jbhansen@craven-moorhead:~$ python
Python 2.7.5 (default, May 29 2013, 02:28:51)
[GCC 4.8.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> quit()
jbhansen@craven-moorhead:~$ idle
jbhansen@craven-moorhead:~$
idle launches a python shell containing the following
Code:
Python 2.7.5 (default, May 29 2013, 02:28:51)
[GCC 4.8.0] on linux2
Type "copyright", "credits" or "license()" for more information.
>>>
Seems like you're missing some dependencies (which is why a full install is always recommended).
Anyway, tkinter should be included in the main python package, so I don't know why it wouldn't be on your system.
On a fresh clone of my Current Multilib system I "slackpkg" installed the tcl and tk packages. Now idle starts OK.
Yesterday's failures must have been caused by the fact that the test system was already "contaminated" by previous tests.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.