#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2007
    Posts
    4
    Rep Power
    0

    Question Using Idle in Ubuntu


    I'm running the latest version of BackTrack (Backtrack 5R3) with Python 2.6.5 (this is Ubuntu)

    When I try to run idle, I get this error:

    ** IDLE can't import Tkinter. Your Python may not be configured for Tk. **


    I have tried to install this:
    apt-get install python-tk


    I read somewhere to try installing tk-devel but it's not finding it:

    root@bt:~# apt-get install tk-devel
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    E: Couldn't find package tk-devel
    root@bt:~#



    I read somewhere I may need to install something and then re-build python, I'm not really sure what is needed though. Python came preinstalled on BackTrack.


    Can anyone help regarding running Idle (how to configure Python with Tk)


    Thanks
  2. #2
  3. Contributing User
    Devshed Demi-God (4500 - 4999 posts)

    Join Date
    Aug 2011
    Posts
    4,929
    Rep Power
    481
    $ apt-get install idle-python2.7

    or run synaptic package manager. Hope this helps. I do not know why BackTrack would be important. I suppose it is, and my answer is uselessly ignorant.
    [code]Code tags[/code] are essential for python code and Makefiles!
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2007
    Posts
    4
    Rep Power
    0
    Originally Posted by b49P23TIvg
    $ apt-get install idle-python2.7

    or run synaptic package manager. Hope this helps. I do not know why BackTrack would be important. I suppose it is, and my answer is uselessly ignorant.

    Doesn't work for me:

    root@bt:~# apt-get install idle-python2.7
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    E: Couldn't find package idle-python2.7
    root@bt:~#
  6. #4
  7. Contributing User
    Devshed Demi-God (4500 - 4999 posts)

    Join Date
    Aug 2011
    Posts
    4,929
    Rep Power
    481
    content of my /etc/apt/sources.list file without comments
    Code:
    deb http://us.archive.ubuntu.com/ubuntu/ quantal main restricted
    deb http://us.archive.ubuntu.com/ubuntu/ quantal-updates main restricted
    deb http://us.archive.ubuntu.com/ubuntu/ quantal universe
    deb http://us.archive.ubuntu.com/ubuntu/ quantal-updates universe
    deb http://us.archive.ubuntu.com/ubuntu/ quantal multiverse
    deb http://us.archive.ubuntu.com/ubuntu/ quantal-updates multiverse
    deb http://extras.ubuntu.com/ubuntu quantal main
    deb-src http://extras.ubuntu.com/ubuntu quantal main
    deb http://us.archive.ubuntu.com/ubuntu/ quantal-security main restricted
    deb http://us.archive.ubuntu.com/ubuntu/ quantal-security universe
    deb http://us.archive.ubuntu.com/ubuntu/ quantal-security multiverse
    deb http://us.archive.ubuntu.com/ubuntu/ quantal-backports restricted main multiverse universe
    deb-src http://archive.canonical.com/ lucid partner
    deb http://archive.canonical.com/ quantal partner
    deb-src http://archive.canonical.com/ quantal partner
    [code]Code tags[/code] are essential for python code and Makefiles!
  8. #5
  9. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2007
    Posts
    4
    Rep Power
    0
    Thanks, I'll have to research that, I think if I change the sources (since I'm running a specific distro) that may break some things.

    Maybe I'll temporarily change them to update this and then put back the original.

    I'll play around, but thanks for posting this.

IMN logo majestic logo threadwatch logo seochat tools logo