Strange Error
Francisco Castel <[email protected]> Mon, 5 Sep 2022 07:42:15 -0300
| Newsgroups | gmane.comp.python.idle |
|---|---|
| Message-ID | <CAARcEWKh5MSqed8f5fokPp9dQS-gzUG+jjk6mqyWJfNjOAtjkA@mail.gmail.com> |
--===============0086527192090156654==
Content-Type: multipart/alternative; boundary="0000000000006e3b9305e7ebbc9a"
--0000000000006e3b9305e7ebbc9a
Content-Type: text/plain; charset="UTF-8"
----------------------------------------
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())
--0000000000006e3b9305e7ebbc9a
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
<div dir=3D"ltr">----------------------------------------<br>Unhandled exce=
ption in user code execution server!'<br>Thread: SockThread<br>IDLE Cli=
ent Address: ('127.0.0.1', 50654)<br>Request: <socket.socket fd=
=3D752, family=3DAddressFamily.AF_INET, type=3DSocketKind.SOCK_STREAM, prot=
o=3D0, laddr=3D('127.0.0.1', 50655), raddr=3D('127.0.0.1', =
50654)><br><br>Traceback (most recent call last):<br>=C2=A0 File "G=
:\Python\lib\socketserver.py", line 316, in _handle_request_noblock<br=
>=C2=A0 =C2=A0 self.process_request(request, client_address)<br>=C2=A0 File=
"G:\Python\lib\socketserver.py", line 347, in process_request<br=
>=C2=A0 =C2=A0 self.finish_request(request, client_address)<br>=C2=A0 File =
"G:\Python\lib\socketserver.py", line 360, in finish_request<br>=
=C2=A0 =C2=A0 self.RequestHandlerClass(request, client_address, self)<br>=
=C2=A0 File "G:\Python\lib\idlelib\rpc.py", line 514, in __init__=
<br>=C2=A0 =C2=A0 socketserver.BaseRequestHandler.__init__(self, sock, addr=
, svr)<br>=C2=A0 File "G:\Python\lib\socketserver.py", line 747, =
in __init__<br>=C2=A0 =C2=A0 self.handle()<br>=C2=A0 File "G:\Python\l=
ib\idlelib\run.py", line 532, in handle<br>=C2=A0 =C2=A0 import pydoc =
# import must be done here to capture i/o binding<br>=C2=A0 File "G:\P=
ython\lib\pydoc.py", line 73, in <module><br>=C2=A0 =C2=A0 impor=
t urllib.parse<br>=C2=A0 File "G:\Python\urllib.py", line 1, in &=
lt;module><br>=C2=A0 =C2=A0 import urllib.request<br>ModuleNotFoundError=
: No module named 'urllib.request'; 'urllib' is not a packa=
ge<br><br>*** Unrecoverable, server exiting!<br><br>Users should never see =
this message; it is likely transient.<br>If this recurs, report this with a=
copy of the message<br>and an explanation of how to make it repeat.<br>---=
-------------------------------------<br><br>------------------------------=
----------<br>Unhandled exception in user code execution server!'<br>Th=
read: SockThread<br>IDLE Client Address: ('127.0.0.1', 50654)<br>Re=
quest: <socket.socket fd=3D744, family=3DAddressFamily.AF_INET, type=3DS=
ocketKind.SOCK_STREAM, proto=3D0, laddr=3D('127.0.0.1', 50656), rad=
dr=3D('127.0.0.1', 50654)><br><br>=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RESTART:=
Shell =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D<br>Python 3.10.4 (tags/v3.10.4:9d38120, Mar =
23 2022, 23:13:41) [MSC v.1929 64 bit (AMD64)] on win32<br>Type "help&=
quot;, "copyright", "credits" or "license()" =
for more information.<br><br>----------------------------------------<br>Un=
handled exception in user code execution server!'<br>Thread: SockThread=
<br>IDLE Client Address: ('127.0.0.1', 50654)<br>Request: <socke=
t.socket fd=3D712, family=3DAddressFamily.AF_INET, type=3DSocketKind.SOCK_S=
TREAM, proto=3D0, laddr=3D('127.0.0.1', 50657), raddr=3D('127.0=
.0.1', 50654)><br><br>Traceback (most recent call last):<br>=C2=A0 F=
ile "G:\Python\lib\socketserver.py", line 316, in _handle_request=
_noblock<br>=C2=A0 =C2=A0 self.process_request(request, client_address)<br>=
=C2=A0 File "G:\Python\lib\socketserver.py", line 347, in process=
_request<br>=C2=A0 =C2=A0 self.finish_request(request, client_address)<br>=
=C2=A0 File "G:\Python\lib\socketserver.py", line 360, in finish_=
request<br>=C2=A0 =C2=A0 self.RequestHandlerClass(request, client_address, =
self)<br>=C2=A0 File "G:\Python\lib\idlelib\rpc.py", line 514, in=
__init__<br>=C2=A0 =C2=A0 socketserver.BaseRequestHandler.__init__(self, s=
ock, addr, svr)<br>=C2=A0 File "G:\Python\lib\socketserver.py", l=
ine 747, in __init__<br>=C2=A0 =C2=A0 self.handle()<br>=C2=A0 File "G:=
\Python\lib\idlelib\run.py", line 532, in handle<br>=C2=A0 =C2=A0 impo=
rt pydoc # import must be done here to capture i/o binding<br>=C2=A0 File &=
quot;G:\Python\lib\pydoc.py", line 73, in <module><br>=C2=A0 =C2=
=A0 import urllib.parse<br>=C2=A0 File "G:\Python\urllib.py", lin=
e 1, in <module><br>=C2=A0 =C2=A0 import urllib.request<br>ModuleNotF=
oundError: No module named 'urllib.request'; 'urllib' is no=
t a package<br><br>*** Unrecoverable, server exiting!<br><br>Users should n=
ever see this message; it is likely transient.<br>If this recurs, report th=
is with a copy of the message<br>and an explanation of how to make it repea=
t.<br>----------------------------------------<br>Hi, im doing a Python cou=
rse in <a href=3D"http://freecodecamp.org">freecodecamp.org</a> and just ru=
n the next example code from <a href=3D"https://www.py4e.com/code3/">https:=
//www.py4e.com/code3/</a> on IDLE:<div><pre style=3D"white-space:pre-wrap">=
<font color=3D"#000000" style=3D"background-color:rgb(255,229,153)">import =
urllib.request
fhand =3D urllib.request.urlopen('<a href=3D"http://data.pr4e.org/romeo=
.txt">http://data.pr4e.org/romeo.txt</a>')
for line in fhand:
print(line.decode().strip())</font></pre></div></div>
--0000000000006e3b9305e7ebbc9a--
--===============0086527192090156654==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
IDLE-dev mailing list
[email protected]
https://mail.python.org/mailman/listinfo/idle-dev
--===============0086527192090156654==--