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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 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 [email protected] http://lists.ironpython.com/listinfo.cgi/users-ironpython.com _______________________________________________ users mailing list [email protected] http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
