Try running the script when python is running as root. I has issues like this also!<br><br><div class="gmail_quote">On Sun, Feb 24, 2008 at 8:57 PM, mark <<a href="mailto:me@privacy.net">me@privacy.net</a>> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">I've recently switched from Ubuntu to OS X Leopard. I have some python<br>
scripts which download info from the web. The scripts were working fine<br>
before on Ubuntu, but urllib seems to work really slowly on Leopard.<br>
<br>
I tried an example from the docs:<br>
<br>
>>> import urllib2<br>
>>> f = urllib2.urlopen('<a href="http://www.python.org/%27" target="_blank">http://www.python.org/'</a>)<br>
>>> print f.read(100)<br>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"<br>
"<a href="http://www.w3.org/TR/xhtml1/DTD/xhtm" target="_blank">http://www.w3.org/TR/xhtml1/DTD/xhtm</a><br>
>>><br>
<br>
The line f = ... takes about a minute to return - but otherwise returns<br>
the predicted result. My web connection seems fine, so has anyone got<br>
any ideas as to what the problem might be?<br>
<font color="#888888">--<br>
<a href="http://mail.python.org/mailman/listinfo/python-list" target="_blank">http://mail.python.org/mailman/listinfo/python-list</a><br>
</font></blockquote></div><br><br clear="all"><br>-- <br><a href="http://search.goldwatches.com/?Search=Movado+Watches">http://search.goldwatches.com/?Search=Movado+Watches</a> <br><a href="http://www.jewelerslounge.com">http://www.jewelerslounge.com</a><br>
<a href="http://www.goldwatches.com">http://www.goldwatches.com</a>