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

Benjamin West bewest at gmail.com
Tue May 22 18:00:01 PDT 2007


> > 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


More information about the users mailing list