Python Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming LanguagesPython Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old December 13th, 2012, 05:55 PM
natv natv is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2007
Posts: 4 natv User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 16 m 47 sec
Reputation 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

Reply With Quote
  #2  
Old December 13th, 2012, 09:09 PM
b49P23TIvg's Avatar
b49P23TIvg b49P23TIvg is offline
Contributing User
Dev Shed Loyal (3000 - 3499 posts)
 
Join Date: Aug 2011
Posts: 3,353 b49P23TIvg User rank is Major (30000 - 40000 Reputation Level)b49P23TIvg User rank is Major (30000 - 40000 Reputation Level)b49P23TIvg User rank is Major (30000 - 40000 Reputation Level)b49P23TIvg User rank is Major (30000 - 40000 Reputation Level)b49P23TIvg User rank is Major (30000 - 40000 Reputation Level)b49P23TIvg User rank is Major (30000 - 40000 Reputation Level)b49P23TIvg User rank is Major (30000 - 40000 Reputation Level)b49P23TIvg User rank is Major (30000 - 40000 Reputation Level)b49P23TIvg User rank is Major (30000 - 40000 Reputation Level)b49P23TIvg User rank is Major (30000 - 40000 Reputation Level) 
Time spent in forums: 1 Month 2 Weeks 3 Days 8 h 3 m 36 sec
Reputation Power: 383
$ 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!

Reply With Quote
  #3  
Old December 16th, 2012, 09:16 PM
natv natv is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2007
Posts: 4 natv User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 16 m 47 sec
Reputation Power: 0
Quote:
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:~#

Reply With Quote
  #4  
Old December 16th, 2012, 09:35 PM
b49P23TIvg's Avatar
b49P23TIvg b49P23TIvg is offline
Contributing User
Dev Shed Loyal (3000 - 3499 posts)
 
Join Date: Aug 2011
Posts: 3,353 b49P23TIvg User rank is Major (30000 - 40000 Reputation Level)b49P23TIvg User rank is Major (30000 - 40000 Reputation Level)b49P23TIvg User rank is Major (30000 - 40000 Reputation Level)b49P23TIvg User rank is Major (30000 - 40000 Reputation Level)b49P23TIvg User rank is Major (30000 - 40000 Reputation Level)b49P23TIvg User rank is Major (30000 - 40000 Reputation Level)b49P23TIvg User rank is Major (30000 - 40000 Reputation Level)b49P23TIvg User rank is Major (30000 - 40000 Reputation Level)b49P23TIvg User rank is Major (30000 - 40000 Reputation Level)b49P23TIvg User rank is Major (30000 - 40000 Reputation Level) 
Time spent in forums: 1 Month 2 Weeks 3 Days 8 h 3 m 36 sec
Reputation Power: 383
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

Reply With Quote
  #5  
Old December 17th, 2012, 09:00 PM
natv natv is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2007
Posts: 4 natv User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 16 m 47 sec
Reputation 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.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPython Programming > Using Idle in Ubuntu

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap