[Idle-dev] Strange Error
Terry Reedy
tjreedy at udel.edu
Mon Sep 5 13:25:07 EDT 2022
On 9/5/2022 6:42 AM, Francisco Castel wrote:
> ----------------------------------------
> Unhandled exception in user code execution server!'
> File "G:\Python\lib\socketserver.py", line 747, in __init__
> self.handle()
> File "G:\Python\lib\idlelib\run.py", line 532, in handle
> import pydoc # import must be done here to capture i/o binding
> File "G:\Python\lib\pydoc.py", line 73, in <module>
> import urllib.parse
This should import G:\Python\lib\urllib\parse
> File "G:\Python\urllib.py", line 1, in <module>
But it got urllib not in ...\lib. This must be a file you added with
the same 'urllib' name. Change the name.
> import urllib.request
> ModuleNotFoundError: No module named 'urllib.request'; 'urllib' is not a
> package
Because it is not the python stdlib package in G:\Python\lib
--
Terry Jan Reedy
More information about the IDLE-dev
mailing list