unable to launch python3.8 -m idlelib.idle

2020-12-25 Thread stackf...@gmail.com
unable to launch python3.8 -m idlelib.idle. getting below error msg. I am new 
to python. kindly help.

python3.8 -m idlelib.idle

Traceback (most recent call last):
  File 
"/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/runpy.py", 
line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
  File 
"/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/runpy.py", 
line 87, in _run_code
exec(code, run_globals)
  File 
"/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/idlelib/idle.py",
 line 13, in 
from idlelib.pyshell import main  # This is subject to change
  File 
"/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/idlelib/pyshell.py",
 line 56, in 
from idlelib import rpc
  File 
"/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/idlelib/rpc.py",
 line 73, in 
class RPCServer(socketserver.TCPServer):
AttributeError: module 'socketserver' has no attribute 'TCPServer'
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: unable to launch python3.8 -m idlelib.idle

2020-12-25 Thread Terry Reedy

On 12/25/2020 8:26 PM, stackf...@gmail.com wrote:

unable to launch python3.8 -m idlelib.idle. getting below error msg. I am new 
to python. kindly help.


One should include OS with failure questions and perhaps how installed. 
 Appears to be macOS, installed with ???



python3.8 -m idlelib.idle


For 3.x, '.idle' is not needed.


   File 
"/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/idlelib/rpc.py", 
line 73, in 
 class RPCServer(socketserver.TCPServer):
AttributeError: module 'socketserver' has no attribute 'TCPServer'


https://docs.python.org/3.8/library/socketserver.html#socketserver.TCPServer
It is very much supposed to, so you installation seems faulty.  I am 
running IDLE on macOS with 3.8, 3.9, and 3.10, installed with the 
python.org installer.


This is one of the few circumstances for which I suggest re-installing.

--
Terry Jan Reedy

--
https://mail.python.org/mailman/listinfo/python-list


Re: unable to launch python3.8 -m idlelib.idle

2020-12-25 Thread Chris Angelico
On Sat, Dec 26, 2020 at 2:32 PM Terry Reedy  wrote:
>
> On 12/25/2020 8:26 PM, stackf...@gmail.com wrote:
> > unable to launch python3.8 -m idlelib.idle. getting below error msg. I am 
> > new to python. kindly help.
>
> One should include OS with failure questions and perhaps how installed.
>   Appears to be macOS, installed with ???
>
> > python3.8 -m idlelib.idle
>
> For 3.x, '.idle' is not needed.
>
> >File 
> > "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/idlelib/rpc.py",
> >  line 73, in 
> >  class RPCServer(socketserver.TCPServer):
> > AttributeError: module 'socketserver' has no attribute 'TCPServer'
>
> https://docs.python.org/3.8/library/socketserver.html#socketserver.TCPServer
> It is very much supposed to, so you installation seems faulty.  I am
> running IDLE on macOS with 3.8, 3.9, and 3.10, installed with the
> python.org installer.
>
> This is one of the few circumstances for which I suggest re-installing.
>

Or seeing if you have a socketserver.py in the current directory.

ChrisA
-- 
https://mail.python.org/mailman/listinfo/python-list