[Idle-dev] idle 1.0.2 cannot bind (again) to port 8833 w/python 2.3.3

Al Schapira a.d.schapira at worldnet.att.net
Thu Feb 26 14:50:54 EST 2004


Thanks, Kurt,

I did try to kill all python processes, but that did not help.  Of
course, shutting down and restarting linux cleared the port, as
expected.

Subsequently, idle had been working okay through many sequential
invokations, until just now!
I have attached the error output and ps aux output as requested.

Is there anyway to clear the port without shutting down?

	-Al

On Wed, 2004-02-25 at 16:04, Kurt B. Kaiser wrote:
> Al Schapira <a.d.schapira at worldnet.att.net> writes:
> 
> > I downloaded and installed python 2.3.3 source, built, and installed
> > it with idle 1.0.2 under RH linux 9 w/kernel 2.4.20-28.9.
> >
> > The first time I ran idle, it worked fine, and I selected the default
> > fonts, etc.  Subsequently, idle won't start in subproces mode.  I get
> > the error output below every time.  Using -n as suggested works ok.
> >
> > How do I clear the port in use?
> > How do I prevent this from happening again?
> 
> Make sure that there is only one instance of the IDLE GUI running on
> your system.  The current design can only support one, though there
> are plans to change that in the future.  I want to be sure that IDLE
> is robust with one instance, especially on Windows, before I add more
> ports.
> 
> On Linux or the BSDs, if you do  
> 
>      ps aux
> 
> you should see no python processes when IDLE isn't running, and two
> when it is.  (On Windows, you'll see three.)  Kill any extra ones and
> try again:
> 
>      kill -KILL xxxx
> 
> where xxxx is the pid of the python process.
> 
> Let me know if you have further problems.  Save any error messages and
> a    ps aux   trace.
-------------- next part --------------
USER       PID %CPU %MEM   VSZ  RSS TTY      STAT START   TIME COMMAND
root         1  0.0  0.0  1384   80 ?        S    Feb25   0:03 init
root         2  0.0  0.0     0    0 ?        SW   Feb25   0:00 [keventd]
root         3  0.0  0.0     0    0 ?        SW   Feb25   0:00 [kapmd]
root         4  0.0  0.0     0    0 ?        SWN  Feb25   0:00 [ksoftirqd_CPU0]
root         9  0.0  0.0     0    0 ?        SW   Feb25   0:00 [bdflush]
root         5  0.0  0.0     0    0 ?        SW   Feb25   0:00 [kswapd]
root         6  0.0  0.0     0    0 ?        SW   Feb25   0:00 [kscand/DMA]
root         7  0.0  0.0     0    0 ?        SW   Feb25   0:33 [kscand/Normal]
root         8  0.0  0.0     0    0 ?        SW   Feb25   0:00 [kscand/HighMem]
root        10  0.0  0.0     0    0 ?        SW   Feb25   0:00 [kupdated]
root        11  0.0  0.0     0    0 ?        SW   Feb25   0:00 [mdrecoveryd]
root        15  0.0  0.0     0    0 ?        SW   Feb25   0:00 [kjournald]
root        73  0.0  0.0     0    0 ?        SW   Feb25   0:00 [khubd]
root       214  0.0  0.0     0    0 ?        SW   Feb25   0:00 [kjournald]
root       215  0.0  0.0     0    0 ?        SW   Feb25   0:00 [kjournald]
root       216  0.0  0.0     0    0 ?        SW   Feb25   0:00 [kjournald]
root       217  0.0  0.0     0    0 ?        SW   Feb25   0:00 [kjournald]
root       218  0.0  0.0     0    0 ?        SW   Feb25   0:00 [kjournald]
root       219  0.0  0.0     0    0 ?        SW   Feb25   0:00 [kjournald]
root       220  0.0  0.0     0    0 ?        SW   Feb25   0:00 [kjournald]
root       221  0.0  0.0     0    0 ?        SW   Feb25   0:00 [kjournald]
root       290  0.0  0.0     0    0 ?        SW   Feb25   0:00 [knodemgrd]
root       611  0.0  0.0  1456  168 ?        S    Feb25   0:00 syslogd -m 0
root       615  0.0  0.0  1380  104 ?        S    Feb25   0:00 klogd -x
rpc        641  0.0  0.0  1552  120 ?        S    Feb25   0:00 portmap
rpcuser    660  0.0  0.0  1528    4 ?        S    Feb25   0:00 rpc.statd
root       716  0.0  0.0  1496    4 ?        S    Feb25   0:00 /sbin/cardmgr
root       740  0.0  0.0  1372  244 ?        S    Feb25   0:00 /usr/sbin/apmd -p 10 -w 5 -W -P /etc/sysconfig/apm-scripts/apmscript
root       777  0.0  0.0  3436    4 ?        S    Feb25   0:00 /usr/sbin/sshd
root       791  0.0  0.0  2076    4 ?        S    Feb25   0:00 xinetd -stayalive -pidfile /var/run/xinetd.pid
root       817  0.0  0.0  5980  432 ?        S    Feb25   0:00 sendmail: accepting connections
smmsp      826  0.0  0.0  5740  328 ?        S    Feb25   0:00 sendmail: Queue runner at 01:00:00 for /var/spool/clientmqueue
root       836  0.0  0.0 19340    4 ?        S    Feb25   0:00 /usr/bin/spamd -d -c -a              
root       845  0.0  0.0  1416   56 ?        S    Feb25   0:00 gpm -t imps2 -m /dev/mouse
bin        855  0.0  0.0  1928   44 ?        S    Feb25   0:00 /usr/sbin/cannaserver -syslog -u bin
root       866  0.0  0.0  1432  140 ?        S    Feb25   0:00 crond
root       877  0.0  0.4 10100 2400 ?        S    Feb25   0:00 cupsd
wnn        922  0.0  0.0  5172    4 ?        S    Feb25   0:00 /usr/bin/jserver
xfs        999  0.0  0.6  7940 3520 ?        S    Feb25   0:26 xfs -droppriv -daemon
root      1008  0.0  0.0  5800    4 ?        S    Feb25   0:00 smbd -D
daemon    1030  0.0  0.0  1424  152 ?        S    Feb25   0:00 /usr/sbin/atd
root      1039  0.0  2.5 17320 13312 ?       S    Feb25   0:30 /usr/sbin/rcd
root      1049  0.0  0.0  3412   48 ?        S    Feb25   0:00 rhnsd --interval 240
root      1069  0.0  0.0  1360    4 tty1     S    Feb25   0:00 /sbin/mingetty tty1
root      1070  0.0  0.0  1360    4 tty2     S    Feb25   0:00 /sbin/mingetty tty2
root      1071  0.0  0.0  1360    4 tty3     S    Feb25   0:00 /sbin/mingetty tty3
root      1072  0.0  0.0  1360    4 tty4     S    Feb25   0:00 /sbin/mingetty tty4
root      1073  0.0  0.0  1360    4 tty5     S    Feb25   0:00 /sbin/mingetty tty5
root      1074  0.0  0.0  1360    4 tty6     S    Feb25   0:00 /sbin/mingetty tty6
root      1075  0.0  0.0 14128    4 ?        S    Feb25   0:00 /usr/bin/gdm-binary -nodaemon
root      1125  0.0  0.0 14940    4 ?        S    Feb25   0:00 /usr/bin/gdm-binary -nodaemon
root      1126  3.0  3.4 94180 17756 ?       R    Feb25  29:04 /usr/X11R6/bin/X :0 -auth /var/gdm/:0.Xauth vt7
ads       1135  0.0  0.2 18716 1128 ?        S    Feb25   0:04 /usr/bin/gnome-session
ads       1188  0.0  0.0  3068   72 ?        S    Feb25   0:00 /usr/bin/ssh-agent /etc/X11/xinit/Xclients
ads       1193  0.0  0.6 11512 3520 ?        S    Feb25   0:01 /usr/libexec/gconfd-2 11
ads       1195  0.0  0.0  1724   80 ?        S    Feb25   0:00 esd -terminate -nobeeps -as 2 -spawnfd 15
ads       1204  0.0  0.1  6192  944 ?        S    Feb25   0:00 /usr/libexec/bonobo-activation-server --ac-activate --ior-output-fd=17
ads       1206  0.0  0.0 17148  476 ?        S    Feb25   0:04 gnome-settings-daemon --oaf-activate-iid=OAFIID:GNOME_SettingsDaemon --oaf-ior-fd=14
ads       1211  0.0  0.1  2680  592 ?        S    Feb25   0:00 fam
ads       1216  0.0  0.1  3980  856 ?        S    Feb25   0:07 xscreensaver -nosplash
ads       1219  0.2  0.8 13580 4516 ?        S    Feb25   2:07 metacity --sm-save-file 1061262377-1193-1749723746.ms
ads       1221  0.0  0.6 110144 3324 ?       S    Feb25   0:14 nautilus --sm-config-prefix /nautilus-8j5l2n/ --sm-client-id 117f000001000105732525900000015530003 --screen 0 file:///home
ads       1223  0.1  0.0 16228  468 ?        S    Feb25   1:31 magicdev --sm-config-prefix /magicdev-xqDdi3/ --sm-client-id 117f000001000105732525800000015530002 --screen 0
ads       1225  0.1  1.5 25156 8200 ?        S    Feb25   1:52 gnome-panel --sm-config-prefix /gnome-panel-mL4I2D/ --sm-client-id 117f000001000105732525800000015530001 --screen 0 --profile default
ads       1229  0.1  1.1 23384 6160 ?        S    Feb25   1:17 gnome-terminal --sm-config-prefix /gnome-terminal-Dohifr/ --sm-client-id 117f000001000105768246200000010960000 --screen 0 --use-factory --window-with-profile-internal-id=Default --show-menubar --role=gnome-terminal-1198--858941015-1057682463 --title ads at ADS
ads       1231  0.0  0.4 16612 2060 ?        S    Feb25   0:04 eggcups --sm-config-prefix /eggcups-DiMlP1/ --sm-client-id 117f000001000105732525900000015530004 --screen 0
ads       1233  0.0  0.9 26692 4684 ?        S    Feb25   0:06 /usr/bin/python /usr/bin/rhn-applet-gui --sm-config-prefix /rhn-applet-xXXSvO/ --sm-client-id 117f000001000106125884000000011250001 --screen 0
ads       1246  0.0  0.0  1860    4 ?        S    Feb25   0:00 gnome-pty-helper
ads       1250  0.0  0.0  4388    4 pts/1    S    Feb25   0:00 bash
ads       1282  0.0  0.2 11608 1412 ?        S    Feb25   0:01 /usr/bin/pam-panel-icon --sm-client-id 117f000001000105732526000000015530005
root      1315  0.0  0.0  1412  132 ?        S    Feb25   0:00 /sbin/pam_timestamp_check -d root
ads       1317  0.0  0.4 17300 2300 ?        S    Feb25   0:06 /usr/libexec/battstat-applet-2 --oaf-activate-iid=OAFIID:GNOME_BattstatApplet_Factory --oaf-ior-fd=24
ads       1319  0.0  0.3 16832 1756 ?        S    Feb25   0:02 /usr/libexec/notification-area-applet --oaf-activate-iid=OAFIID:GNOME_NotificationAreaApplet_Factory --oaf-ior-fd=26
ads       1375  0.0  0.0 12296  412 ?        S    Feb25   0:03 kppp
root      1376  0.0  0.0  4920    4 ?        S    Feb25   0:00 /usr/sbin/userhelper -w kppp
root      1379  0.0  2.9 38064 15132 ?       S    Feb25   0:10 kppp
root      1380  0.0  0.0 19860  308 ?        S    Feb25   0:00 kppp
root      1382  0.0  0.0 19600    4 ?        S    Feb25   0:00 kdeinit: Running...       
root      1385  0.0  0.0 21788    4 ?        S    Feb25   0:00 kdeinit: dcopserver --nosid --suicide
root      1388  0.0  0.0 21824    4 ?        S    Feb25   0:00 kdeinit: klauncher        
root      1390  0.0  0.2 23300 1144 ?        S    Feb25   0:05 kdeinit: kded             
root     13150  0.0  0.0  4152    4 pts/1    S    00:33   0:00 su
root     13153  0.0  0.0  4384   88 pts/1    S    00:33   0:00 bash
ads      13728  0.3  4.6 125232 23836 ?      S    01:32   2:58 evolution
ads      13730  0.0  0.2 26292 1176 ?        S    01:32   0:00 /usr/libexec/evolution/1.4/evolution-wombat --oaf-activate-iid=OAFIID:GNOME_Evolution_Wombat_InterfaceCheck --oaf-ior-fd=30
ads      13732  0.0  0.1 23448  648 ?        S    01:33   0:02 /usr/libexec/evolution/1.4/evolution-alarm-notify --oaf-activate-iid=OAFIID:GNOME_Evolution_Calendar_AlarmNotify_Factory --oaf-ior-fd=32
ads      13842  1.2 14.0 166544 72148 ?      S    02:11   9:05 /usr/lib/mozilla-1.2.1/mozilla-bin -UILocale en-US
ads      14957  0.0  0.0 20192   24 ?        S    03:39   0:00 camel-lock-helper
ads      16193  0.0  0.1  4492  876 pts/2    S    06:38   0:00 bash
ads      27375  0.0  0.1  4380  848 pts/0    S    08:46   0:00 bash
ads      29930  0.2  1.0 18188 5376 ?        S    11:38   0:28 gnome-system-monitor
root     30546  0.0  0.1  1908  684 ?        S    13:19   0:00 pppd 230400 -detach crtscts defaultroute usepeerdns user xxxxxxxx at worldnet.att.net
ads      30657  0.0  0.3  5312 1844 ?        S    13:52   0:00 oafd --ac-activate --ior-output-fd=12
ads      30881  0.0  0.1  2696  756 pts/0    R    14:46   0:00 ps aux
-------------- next part --------------
[ads at ADS1 examples]$ idle
IDLE socket error: Address already in use, retrying...
IDLE socket error: Address already in use, retrying...
IDLE socket error: Address already in use, retrying...
 
IDLE cannot run.
 
IDLE needs to use a specific TCP/IP port (8833) in order to communicate with
its Python execution server.  IDLE is unable to bind to this port, and so
cannot start. Here are some possible causes of this problem:
 
  1. TCP/IP networking is not installed or not working on this computer
  2. Another program (another IDLE?) is running that uses this port
  3. Personal firewall software is preventing IDLE from using this port
 
Run IDLE with the -n command line switch to start without a subprocess
and refer to Help/IDLE Help "Running without a subprocess" for further
details.


More information about the IDLE-dev mailing list