unable to launch python3.8 -m idlelib.idle

Chris Angelico rosuav at gmail.com
Fri Dec 25 23:44:28 EST 2020


On Sat, Dec 26, 2020 at 2:32 PM Terry Reedy <tjreedy at udel.edu> wrote:
>
> On 12/25/2020 8:26 PM, stackf... at 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 <module>
> >      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


More information about the Python-list mailing list