[IronPython] urllib.urlopen(url).read() problem

Dino Viehland dinov at exchange.microsoft.com
Wed May 23 17:17:29 CEST 2007


Thanks for the bug report Benjamin.  And thanks for the workaround Seo.  I've opened bug #10518 for this: http://www.codeplex.com/IronPython/WorkItem/View.aspx?WorkItemId=10518.  I haven't had a chance to look at the issue yet though.

-----Original Message-----
From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Benjamin West
Sent: Tuesday, May 22, 2007 6:00 PM
To: Discussion of IronPython
Subject: Re: [IronPython] urllib.urlopen(url).read() problem

> > Am I doing something wrong?  urllib2 works.
> > Thanks,
> > Ben West
>
> I think this is an IronPython bug.
>
> The simplest solution is to use FEPY_OPTIONS=network, which lets IPCE
> to use FePy's version of socket, select, and ssl module. More here:
>
> http://fepy.sourceforge.net/doc/fepy-options.html
>
> --
> Seo Sanghyeon


Whoah.  I was going to mention that I had also tried doing import fepy,
fepy.install_option('fileobject') and fepy.install_option('network') and
that it had still failed.  However, I must have made some mistake,
because fepy.install_option('network') also works.

So evidently, urllib needs fepy's "network" option while urllib2 needs
fepy's "fileobject" option.  Thanks.


-Ben
_______________________________________________
users mailing list
users at lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com



More information about the Ironpython-users mailing list