Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 29th May 2010, 04:04 PM
Aisthesis Offline
Registered User
 
Join Date: May 2010
Posts: 33
windows_7ie
python3 idle

i've gotten my fedora 12 to the point where i can run python3 scripts from command line and can call up python 2.6.2 idle with the command 'idle' from command line.

what command will call up python3 (3.1.2 to be exact) idle?
Reply With Quote
  #2  
Old 29th May 2010, 05:17 PM
CronoCloud's Avatar
CronoCloud Offline
Registered User
 
Join Date: May 2010
Location: Midwest USA
Posts: 370
linuxfedorafirefox
Re: python3 idle

Quote:
Originally Posted by Aisthesis View Post
what command will call up python3 (3.1.2 to be exact) idle?
idle3, believe it or not, which is provided by python3-tools

Oh, those python developers have a sense of humor, guess what happens when you type:

Code:
import antigravity
into idle3?

Ron Rogers Jr. (CronoCloud)
Reply With Quote
  #3  
Old 29th May 2010, 06:17 PM
Aisthesis Offline
Registered User
 
Join Date: May 2010
Posts: 33
linuxfedorafirefox
Re: python3 idle

ok, that helps a bit further, but when i type idle3 at command line i get:

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

I then did a yum search tkinter and installed both of the packages yum found, but still the same message.

so, i guess i still need to somehow get the python3-tools you mention onto the machine.
Reply With Quote
  #4  
Old 29th May 2010, 06:59 PM
leigh123linux's Avatar
leigh123linux Offline
Retired Administrator
 
Join Date: Oct 2006
Posts: 21,509
linuxfedorafirefox
Re: python3 idle

Quote:
Originally Posted by CronoCloud View Post
idle3, believe it or not, which is provided by python3-tools

Oh, those python developers have a sense of humor, guess what happens when you type:

Code:
import antigravity
into idle3?

Ron Rogers Jr. (CronoCloud)
LOL

http://xkcd.com/353/
Reply With Quote
  #5  
Old 30th May 2010, 12:30 AM
CronoCloud's Avatar
CronoCloud Offline
Registered User
 
Join Date: May 2010
Location: Midwest USA
Posts: 370
linuxfedorafirefox
Re: python3 idle

Quote:
Originally Posted by Aisthesis View Post

so, i guess i still need to somehow get the python3-tools you mention onto the machine.
try

Code:
yum install python3*
That should get everything you need.

Quote:
Originally Posted by leigh123linux View Post
Though Hello World in 3.foo is now:

Code:
print("Hello World!")
rather than the syntax used in the 2.foo versions:

Code:
print "Hello World"

Ron Rogers Jr. (CronoCloud)

Last edited by CronoCloud; 30th May 2010 at 12:37 AM.
Reply With Quote
  #6  
Old 30th May 2010, 01:36 AM
Aisthesis Offline
Registered User
 
Join Date: May 2010
Posts: 33
linuxfedorafirefox
Re: python3 idle

Code:
# yum install python3*
Loaded plugins: presto, refresh-packagekit
Setting up Install Process
No package python3* available.
Nothing to do
i did get my command idle3 to work after running
Code:
yum tk-devel.x86_64
but i'm not very confident that i have the complete python3 package installed, since i've more or less just groped around for one thing or the other until the command finally ran. i found that one on python-forums.org as response when someone else had a similar problem.

i guess i can just start writing code until something that's supposed to run doesn't ...

---------- Post added at 07:36 PM CDT ---------- Previous post was at 07:31 PM CDT ----------

in addition to the syntax different for print ... (2.x) vs. print(...) (3.x), i have the impression that there are a lot of others, although i haven't messed much with 2. i think maybe string.format() works differently judging from some python2 code i've seen.
Reply With Quote
Reply

Tags
idle, python3

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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
PyQt4 for Python3.1? nimrodel Installation and Live Media 0 24th May 2010 03:08 PM
cannot ssh to the box after being idle for a while janes Using Fedora 3 18th December 2009 05:28 PM
using too much cpu at idle 19bab79 Installation and Live Media 4 5th August 2008 04:22 AM
FC4 APM suspend when idle toddbr Hardware & Laptops 0 1st August 2005 08:56 PM
Load at idle is 1.00 Kilo Using Fedora 8 28th May 2004 01:25 PM


Current GMT-time: 15:07 (Wednesday, 22-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat