Reply
 
Thread Tools Display Modes
  #1  
Old 02-18-2008, 08:50 AM
god god is offline
Junior Member
 
Join Date: Feb 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Can't get Python IDLE to work - Tkinter error
---SUMMARY---
I just downloaded and installed PC-BSD 1.4.1 with Python 2.5.1 installed, and wanted to fire up IDLE (a python IDE which is packaged with the language) by typing 'idle' (minus the quotes) at the terminal. However, it does not work.

I know that I could just use another editor, but IDLE is a cross-platform IDE and *should* work.


---DETAILS---

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


---Steps taken attempting to resolve the issue---
I've installed the ports package, and when I cd to /usr/ports/x-11-toolkits, I see that py-tkinter is indeed installed. I also double checked that TK and TCL are installed, and they both are. Given that all the requisite dependencies are installed, I am puzzled as to why I can't simply import the tkinter module into python when I launch it at the command line and thereby launch IDLE.

I have perused the tkinter wiki on the python website and tried the suggestions there without any success:

http://wiki.python.org/moin/TkInter

I also came across another person having the same unresolved problem, but with a slightly older version of FreeBSD and Python.

http://www.nabble.com/IDLE-Tkinter-on-F ... 87665.html



So any ideas to enable me to use IDLE in PC-BSD will be most appreciated.
Reply With Quote
  #2  
Old 02-20-2008, 04:14 AM
TerryP TerryP is offline
Senior Member
 
Join Date: Nov 2005
Location: Ga. USofA
Posts: 7,906
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to TerryP Send a message via AIM to TerryP Send a message via Yahoo to TerryP
Default Re: Can't get Python IDLE to work - Tkinter error
I am running:

Code:
Terry@dixie$ uname -a; echo ''; PBReg get /PC-BSD/Version                  5:04
FreeBSD dixie.launchmodem.com 6.3-PRERELEASE FreeBSD 6.3-PRERELEASE #2: Wed Nov  7 10:54:48 EST 2007     root@pcbsd:/usr/obj/usr/src/sys/PCBSD  i386

1.4.1.1%                                                                
Terry@dixie$                                                               5:05
Did a sudo pkg_add -r of py25-tkinter (my box is configured to allow me to use sudo pkg_add) followed by a rehash:


idle runs fine

running the python interpreter I can import 'Tkinter' and 'Tix' fine.


Looking at IDLE for the first time in a year or so it looks like it might be a worth while replacement to gvim+cmd.exe on my windows box but I think from the looks of it I'd rather think emacs with the right package would work better then idle (and I'm a Vi man).
Reply With Quote
Reply

Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't import Tkinter tiborcsernay FreeBSD Help 1 05-09-2009 03:35 AM
Python and IDLE JMan General Questions 4 01-07-2007 05:53 AM
Grub error 17 work-around richard.a Drives 0 07-07-2006 06:28 AM
python error ;( neighborlee General Questions 1 02-06-2006 05:57 AM
Intel Onboard Sound...no error...won't work. IcehouseBSD Installing PC-BSD 4 10-05-2005 02:23 PM


All times are GMT. The time now is 05:05 AM.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.

Copyright 2005-2010, The PC-BSD Project. PC-BSD and the PC-BSD logo are registered trademarks of iXsystems.
All other content is freely available for sharing under the terms of the Creative Commons Attribution License.