Extremely strange problem with httplib/urllib

Gustaf Liljegren gustafl at algonet.se
Wed Jun 20 00:30:08 CEST 2001


Python 2.1 on Win98SE:

I have got some experience with httplib and urllib by now, but suddenly 
both are causing "invalid page fault" errors in Windows. Here's all I need 
to do:

import urllib
f = urllib.urlopen('http://www.google.com')

And the nasty error looks like this:

PYTHON caused an invalid page fault in
module KERNEL32.DLL at 017f:bff7b992.
Registers:
EAX=00000000 CS=017f EIP=bff7b992 EFLGS=00010206
EBX=00f8f044 SS=0187 ESP=0096fbc8 EBP=007b157c
ECX=00f8f028 DS=0187 ESI=00f8f044 FS=4f37
EDX=81943200 ES=0187 EDI=00000000 GS=516e
Bytes at CS:EIP:
80 3e 04 74 0f 33 c0 50 50 50 68 05 00 00 c0 e8 
Stack dump:
00f8f028 1000be7e 00f8f044 00000000 00f8f028 007f5d80 1000b96c 007b2850 
007f5d80 76003481 0096fbf8 007b1570 007f5d80 7600265e 00000000 007b1570 

Same thing happens with httplib, and it doesn't the web page. I have 
reinstalled Python, restarted the computer, and re-established connections, 
but I still have it! It seems like the code is always run to the last line, 
then this happens.

Also, if I write the above script in Idle or on the command line, this 
error don't appear. It's no first time problem -- I have used these modules 
extensively before. Any ideas?

Regards,

Gustaf Liljegren



More information about the Python-list mailing list