954,557 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Python Idle Fedora: Help please

Hello all,

I have python 2.6 installed, i can see it in /usr/bin and I can run it in terminal. I cannot however seem to figure out how to open the Idle, or get the program to show in the redhat drop menu. Kinda new to linux (some ubuntu use, never had a problem that I could not solve reading other threads) but this is over 10 hours of trouble shooting and fedora is too cool to give up.

I am sure that it is just my ultra nube mind set holding me back.

Any thoughts?

moe

my specs

I am using fedora 13 off a 16GB pen drive, on a variety of different machines with different OS's, I have python 2.6 installed (acourding to terminal yum install...) I cant install 3.1 as it give me "configure: error: no acceptable C compiler found in $PATH" when I try to run it. I dont care which will work so long as it works

sial_m
Newbie Poster
6 posts since Aug 2010
Reputation Points: 10
Solved Threads: 0
 

Try this command

python -c "import os, idlelib; execfile(os.path.join(os.path.split(idlelib.__file__)[0], 'idle.py'))"&

It should be a multiplatform command. If you can't import idlelib, it means that you must install the tkinter package.
Note that this simpler command also works

python -c "from idlelib import idle"&
Gribouillis
Posting Maven
Moderator
2,786 posts since Jul 2008
Reputation Points: 1,044
Solved Threads: 691
 

About python 3, you should be able to install it with yum install python3 .

Gribouillis
Posting Maven
Moderator
2,786 posts since Jul 2008
Reputation Points: 1,044
Solved Threads: 691
 

Thanks Griboulillis

The first command gave me a port binding error. Was python trying to go online? The second command got me right into Idle.

and yum installed python 3 no problem.

what command can I use to get to python3? Is there some place eithier online or in my filesystem that can tell me which command will get me to which program?

thanks for you help and patience

sial_m
Newbie Poster
6 posts since Aug 2010
Reputation Points: 10
Solved Threads: 0
 

You will probably find python3 under /usr/bin/python3.

The port binding error is standard in idle: idle uses 2 processes, the first one to run idle GUI, and the second one to run your code. The 2 processes communicate through a port. It means that you cannot run 2 idle's at the same time (in fact there are alternatives to this: idle.py accepts command line options to run without a subprocess or to use another port).

If you are new to linux, most commands are installed in /usr/bin or /usr/local/bin, and administrator commands in /bin , /sbin or /usr/sbin. The first tools to get info about a command are

$ mycommand -h      (or --help)
$ man mycommand

also you can use 'man mycommand' in google's search field :)

Gribouillis
Posting Maven
Moderator
2,786 posts since Jul 2008
Reputation Points: 1,044
Solved Threads: 691
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: