[IronPython] urllib.urlretrieve with IronPython 2a8

Dino Viehland dinov at exchange.microsoft.com
Mon Feb 18 15:20:07 PST 2008


I'll re-activate it (I'm currently getting a CodePlex is undergoing some upgrade message, so it may take a little while).  I agree, we should definitely make sure this is working.  I thought urllib was working better in 2.0, and there are some improvements that should make 1.1.1 better, but it's not good enough yet.

From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Michael Foord
Sent: Monday, February 18, 2008 3:11 PM
To: Discussion of IronPython
Subject: Re: [IronPython] urllib.urlretrieve with IronPython 2a8


On 18/02/2008, Curt Hagenlocher <curt at hagenlocher.org<mailto:curt at hagenlocher.org>> wrote:
I should amend this to say that I can *inconsistently* reproduce it.  The URL in the original sample always fails with that error, but http://www.microsoft.com<http://www.microsoft.com/> has been succeeding for me more often than not.


Hmmm... could be a difference in the default socket timeout, or when the socket object is created (?). Whatever the cause I think the bug should be reopened.

Michael


On Feb 18, 2008 2:38 PM, Curt Hagenlocher <curt at hagenlocher.org<mailto:curt at hagenlocher.org>> wrote:
This is in Codeplex as work item 10518
http://www.codeplex.com/IronPython/WorkItem/View.aspx?WorkItemId=10518

The item was marked as a duplicate of 10825, which has been marked as resolved in 1.1.1.  However, I am able to reproduce the problem with 1.1, 1.1.1 and alpha 8.
On Feb 18, 2008 10:54 AM, Dino Viehland <dinov at exchange.microsoft.com<mailto:dinov at exchange.microsoft.com>> wrote:
Certainly sounds like a bug - did this work before alpha 8?

-----Original Message-----
From: users-bounces at lists.ironpython.com<mailto:users-bounces at lists.ironpython.com> [mailto:users-bounces at lists.ironpython.com<mailto:users-bounces at lists.ironpython.com>] On Behalf Of Michael Foord
Sent: Sunday, February 17, 2008 6:27 AM
To: Discussion of IronPython
Subject: [IronPython] urllib.urlretrieve with IronPython 2a8

IronPython 2.0 Alpha (2.0.0.800) on .NET 2.0.50727.1433
Copyright (c) Microsoft Corporation. All rights reserved.
 >>> import urllib
 >>>
urllib.urlretrieve('http://python-twitter.googlecode.com/files/python-twitte
r-0.5.tar.gz<http://python-twitter.googlecode.com/files/python-twitter-0.5.tar.gz>', 'python-twitter.tar.gz')
Traceback (most recent call last):
 File System, line unknown, in Read
 File System, line unknown, in Receive
 File System, line unknown, in Receive
 File c:\Python24\Lib\urllib.py, line 248, in retrieve
 File System, line unknown, in Read
 File , line unknown, in ##269
 File c:\Python24\Lib\urllib.py, line 89, in urlretrieve
IOError: Unable to read data from the transport connection: Cannot
access a disp
osed object.
Object name: 'System.Net.Sockets.Socket'..



Python 2.5.1 (r251:54863, Apr 18 2007, 08:51:08) [MSC v.1310 32 bit
(Intel)] on
win32
Type "help", "copyright", "credits" or "license" for more information.
 >>> import urllib
 >>>
urllib.urlretrieve('http://python-twitter.googlecode.com/files/python-twitte
r-0.5.tar.gz<http://python-twitter.googlecode.com/files/python-twitter-0.5.tar.gz>', 'python-twitter.tar.gz')
('python-twitter.tar.gz', <httplib.HTTPMessage instance at 0x01864E40>)
 >>>

_______________________________________________
Users mailing list
Users at lists.ironpython.com<mailto:Users at lists.ironpython.com>
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
_______________________________________________
Users mailing list
Users at lists.ironpython.com<mailto:Users at lists.ironpython.com>
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com



_______________________________________________
Users mailing list
Users at lists.ironpython.com<mailto:Users at lists.ironpython.com>
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com



--
http://www.manning.com/foord
http://www.voidspace.org.uk
http://www.ironpython.info
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ironpython.com/pipermail/users-ironpython.com/attachments/20080218/aae08bac/attachment.html 


More information about the Users mailing list