Bug 1004639

Summary: [abrt] python-tools-2.7.5-4.fc19: rpc.py:532:accept:error
Product: [Fedora] Fedora Reporter: Kevin.B.W.lee <gaeran>
Component: pythonAssignee: Bohuslav "Slavek" Kabrda <bkabrda>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 19CC: bkabrda, dmalcolm, ivazqueznet, jonathansteffan, mstuchli, tomspur
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:abb2f212b8639602c7a51e544bdc92146747be59
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-09-17 08:28:26 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
File: backtrace
none
File: environ none

Description Kevin.B.W.lee 2013-09-05 06:33:33 UTC
Description of problem:
I just have installed pyhon-tools
and open a terminal.
run idle.

and get below messages 
[kevin@kevdev ~]$ idle
** Invalid host:  ('192.168.44.119', 58422)
Traceback (most recent call last):
  File "/usr/bin/idle", line 5, in <module>
    main()
  File "/usr/lib64/python2.7/idlelib/PyShell.py", line 1523, in main
    shell = flist.open_shell()
  File "/usr/lib64/python2.7/idlelib/PyShell.py", line 300, in open_shell
    if not self.pyshell.begin():
  File "/usr/lib64/python2.7/idlelib/PyShell.py", line 1027, in begin
    client = self.interp.start_subprocess()
  File "/usr/lib64/python2.7/idlelib/PyShell.py", line 432, in start_subprocess
    self.rpcclt.accept()
  File "/usr/lib64/python2.7/idlelib/rpc.py", line 532, in accept
    raise socket.error
socket.error

idle gui is not run

Version-Release number of selected component:
python-tools-2.7.5-4.fc19

Additional info:
reporter:       libreport-2.1.6
cmdline:        /usr/bin/python2.7 /usr/bin/idle
dso_list:       python-libs-2.7.5-4.fc19.x86_64
executable:     /usr/bin/idle
kernel:         3.10.9-200.fc19.x86_64
runlevel:       N 5
type:           Python
uid:            1000

Truncated backtrace:
rpc.py:532:accept:error

Traceback (most recent call last):
  File "/usr/bin/idle", line 5, in <module>
    main()
  File "/usr/lib64/python2.7/idlelib/PyShell.py", line 1523, in main
    shell = flist.open_shell()
  File "/usr/lib64/python2.7/idlelib/PyShell.py", line 300, in open_shell
    if not self.pyshell.begin():
  File "/usr/lib64/python2.7/idlelib/PyShell.py", line 1027, in begin
    client = self.interp.start_subprocess()
  File "/usr/lib64/python2.7/idlelib/PyShell.py", line 432, in start_subprocess
    self.rpcclt.accept()
  File "/usr/lib64/python2.7/idlelib/rpc.py", line 532, in accept
    raise socket.error
error

Local variables in innermost frame:
working_sock: <socket._socketobject object at 0x111d980>
self: <idlelib.PyShell.MyRPCClient object at 0x155c850>
address: ('192.168.56.1', 56613)

Comment 1 Kevin.B.W.lee 2013-09-05 06:33:42 UTC
Created attachment 793990 [details]
File: backtrace

Comment 2 Kevin.B.W.lee 2013-09-05 06:33:46 UTC
Created attachment 793991 [details]
File: environ

Comment 3 Bohuslav "Slavek" Kabrda 2013-09-17 08:28:26 UTC
It seems that a similar issue has already been brought up at [1]. During startup, Idle tries to connect to some localhost sockets - and if they're for example blocked by Firewall, Idle fails to start.

I'm closing this as notabug, but feel free to reopen if the socket is reachable and the cause seems to be something else.

[1] http://bugs.python.org/issue6941