[Idle-dev] Strange Error
Francisco Castel
castelpachi123 at gmail.com
Mon Sep 5 06:42:15 EDT 2022
----------------------------------------
Unhandled exception in user code execution server!'
Thread: SockThread
IDLE Client Address: ('127.0.0.1', 50654)
Request: <socket.socket fd=752, family=AddressFamily.AF_INET,
type=SocketKind.SOCK_STREAM, proto=0, laddr=('127.0.0.1', 50655),
raddr=('127.0.0.1', 50654)>
Traceback (most recent call last):
File "G:\Python\lib\socketserver.py", line 316, in _handle_request_noblock
self.process_request(request, client_address)
File "G:\Python\lib\socketserver.py", line 347, in process_request
self.finish_request(request, client_address)
File "G:\Python\lib\socketserver.py", line 360, in finish_request
self.RequestHandlerClass(request, client_address, self)
File "G:\Python\lib\idlelib\rpc.py", line 514, in __init__
socketserver.BaseRequestHandler.__init__(self, sock, addr, svr)
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
File "G:\Python\urllib.py", line 1, in <module>
import urllib.request
ModuleNotFoundError: No module named 'urllib.request'; 'urllib' is not a
package
*** Unrecoverable, server exiting!
Users should never see this message; it is likely transient.
If this recurs, report this with a copy of the message
and an explanation of how to make it repeat.
----------------------------------------
----------------------------------------
Unhandled exception in user code execution server!'
Thread: SockThread
IDLE Client Address: ('127.0.0.1', 50654)
Request: <socket.socket fd=744, family=AddressFamily.AF_INET,
type=SocketKind.SOCK_STREAM, proto=0, laddr=('127.0.0.1', 50656),
raddr=('127.0.0.1', 50654)>
================================ RESTART: Shell
================================
Python 3.10.4 (tags/v3.10.4:9d38120, Mar 23 2022, 23:13:41) [MSC v.1929 64
bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license()" for more information.
----------------------------------------
Unhandled exception in user code execution server!'
Thread: SockThread
IDLE Client Address: ('127.0.0.1', 50654)
Request: <socket.socket fd=712, family=AddressFamily.AF_INET,
type=SocketKind.SOCK_STREAM, proto=0, laddr=('127.0.0.1', 50657),
raddr=('127.0.0.1', 50654)>
Traceback (most recent call last):
File "G:\Python\lib\socketserver.py", line 316, in _handle_request_noblock
self.process_request(request, client_address)
File "G:\Python\lib\socketserver.py", line 347, in process_request
self.finish_request(request, client_address)
File "G:\Python\lib\socketserver.py", line 360, in finish_request
self.RequestHandlerClass(request, client_address, self)
File "G:\Python\lib\idlelib\rpc.py", line 514, in __init__
socketserver.BaseRequestHandler.__init__(self, sock, addr, svr)
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
File "G:\Python\urllib.py", line 1, in <module>
import urllib.request
ModuleNotFoundError: No module named 'urllib.request'; 'urllib' is not a
package
*** Unrecoverable, server exiting!
Users should never see this message; it is likely transient.
If this recurs, report this with a copy of the message
and an explanation of how to make it repeat.
----------------------------------------
Hi, im doing a Python course in freecodecamp.org and just run the next
example code from https://www.py4e.com/code3/ on IDLE:
import urllib.request
fhand = urllib.request.urlopen('http://data.pr4e.org/romeo.txt')
for line in fhand:
print(line.decode().strip())
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.python.org/pipermail/idle-dev/attachments/20220905/f8ae19aa/attachment.html>
More information about the IDLE-dev
mailing list