[issue25514] Improve IDLE's "subprocess didn't make connection" message

2018-09-07 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

Module shadowing can affect either the gui process or the run process.  #34584 
was the latter: debug_obj imports rpc imports socket imports selectors imports 
math, which was shadowed.

Pyshell starts run.  If run starts OK but cannot connect to pyshell, it 
displays a 'subprocess cannot connect' message, which now refers to the new doc 
section, and exits.  If pyshell does does get a connection, it currently 
displays

"Subprocess Startup Error",
"IDLE's subprocess didn't make connection.  Either IDLE can't "
"start a subprocess or personal firewall software is blocking "
"the connection.",

This also needs revision, with a reference to the doc section.  And add 
'math.py' to shadowed modules.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue25514] Improve IDLE's "subprocess didn't make connection" message

2017-06-13 Thread Terry J. Reedy

Terry J. Reedy added the comment:


New changeset 22d909f8c24bd7768df1a5bf0e52c597ea947cfb by terryjreedy in branch 
'3.6':
[3.6]bpo-25514: Improve IDLE's connection refused message (#2177) (#2178)
https://github.com/python/cpython/commit/22d909f8c24bd7768df1a5bf0e52c597ea947cfb


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue25514] Improve IDLE's "subprocess didn't make connection" message

2017-06-13 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
pull_requests: +2231

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue25514] Improve IDLE's "subprocess didn't make connection" message

2017-06-13 Thread Terry J. Reedy

Terry J. Reedy added the comment:


New changeset 188aedf8bb623d41302e10503268b0852ea91134 by terryjreedy in branch 
'master':
bpo-25514: Improve IDLE's connection refused message (#2177)
https://github.com/python/cpython/commit/188aedf8bb623d41302e10503268b0852ea91134


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue25514] Improve IDLE's "subprocess didn't make connection" message

2017-06-13 Thread Terry J. Reedy

Terry J. Reedy added the comment:

I tested (and tweaked) the visible box with this:
from idlelib.run import show_socket_error
show_socket_error(OSError(61, 'connection refused'), ('port', ))
URL was tested with cut-and-paste from run.py.

This should be turned into an htest (human view test).  I did not do so now 
because I wanted get this into 3.6.2, and there is no indication of when the 
grace-period delay will end.

Message boxes do not allow copy to clipboard.  A nice refinement would be a 
[View URL] button.  I believe the code to do so is somewhere in IDLE.  Or the 
F1 Python Docs code, which opens the Windows help version, should be adjustable 
to open to a specific topic.

--
versions: +Python 3.7 -Python 2.7, Python 3.5

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue25514] Improve IDLE's "subprocess didn't make connection" message

2017-06-13 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
pull_requests: +2230

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue25514] Improve IDLE's "subprocess didn't make connection" message

2017-06-13 Thread Terry J. Reedy

Changes by Terry J. Reedy :


Removed file: http://bugs.python.org/file40915/dia2.py

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue25514] Improve IDLE's "subprocess didn't make connection" message

2017-06-13 Thread Terry J. Reedy

Terry J. Reedy added the comment:

Thanks for the reminder to get busy on this ;-). My short notes are 
insufficient for anyone else to write this.

--
assignee: docs@python -> terry.reedy

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue25514] Improve IDLE's "subprocess didn't make connection" message

2017-06-13 Thread Carol Willing

Carol Willing added the comment:

Based on Terry's latest message and recommendation, I've marked this as a 
Documentation issue and suitable for new contributors.

--
assignee:  -> docs@python
components: +Documentation
keywords: +easy
nosy: +docs@python, willingc

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue25514] Improve IDLE's "subprocess didn't make connection" message

2017-06-07 Thread Terry J. Reedy

Terry J. Reedy added the comment:

#26413 is about fixing shadowing problem.

Current thought for this issue: add a section to IDLE doc listing known 
possible causes (message above).  Reference section in message, giving web link.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue25514] Improve IDLE's "subprocess didn't make connection" message

2016-01-17 Thread Terry J. Reedy

Terry J. Reedy added the comment:

I have seen another report that is likely due to masking.  I don't know why 
this has suddenly become seemingly much more common, but I have made fixing the 
problem a priority.  See new issue #26143.

I would like to narrow this issue to the user process, and broaden it to 
reporting all currently plausible causes of non-connection.  I revised the 
title to say this.

I am looking  at 
https://stackoverflow.com/questions/15888186/cant-run-python-via-idle-from-explorer-2013-idles-subprocess-didnt-make-c
 to see what causes people have found or think they have found.

1. Antivirus/firewall (4 people, linux iptables, Windows firewall, antivisus , 
so not a myth ;-)
2. Shadow files, as described above, and in the python directory (about as 
common, tkinter,py, subprocess.py).
3. Registry problem (some people can fix, but most should re-install after 
complete removal).
4. Zombie pythonw process (kill with Windows Task manager).
5. Permissions (run as admin, though should not be needed with proper install)
?. Multiple installed versions clash due to misconfiguration?

https://stackoverflow.com/questions/874757/python-idle-subprocess-error
Add:
?. example program that reads and writes (test)
6. Running after stopping run with ^C (temporary, I believe Restart Shell will 
fix)  Call this a timing issue.
<>
7. Modem rebot (rather obsolete answer for most of us).

There are plenty of miscellaneous possibilities to add even if masking, the 
most common reason, is fixed.

--
title: better startup error messages in IDLE when stdlib modules shadowed -> 
Improve IDLE's  "subprocess didn't make connection" message

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com