[IronPython] URLLIB Issue

Davy Mitchell daftspaniel at gmail.com
Fri Apr 4 23:40:37 CEST 2008


Hello List,

Has this been covered before? Trailed Codeplex and mailing list :-)

import encodings
import twitter
api = twitter.Api()
statuses = api.GetPublicTimeline()
print [s.user.name for s in statuses]

Produces:

Traceback (most recent call last):
  File it.py, line 4, in Initialize
  File C:\Code\OSProjects\twitter.py, line 923, in GetPublicTimeline
  File C:\Code\OSProjects\twitter.py, line 1435, in _FetchUrl
  File C:\python25\lib\urllib2.py, line 381, in open
  File C:\python25\lib\urllib2.py, line 398, in _open
  File Snippets.debug, line unknown, in _call_chain
  File C:\python25\lib\urllib2.py, line 360, in _call_chain
  File C:\python25\lib\urllib2.py, line 1107, in http_open
  File C:\python25\lib\urllib2.py, line 1096, in do_open
TypeError: _fileobject() got an unexpected keyword argument 'close'

CPython works as expected.

Thanks,
Davy

-- 
Davy Mitchell
Blog - http://www.latedecember.co.uk/sites/personal/davy/
Twitter - http://twitter.com/daftspaniel
Skype - daftspaniel http://needgod.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20080404/7a97aaff/attachment.html>


More information about the Ironpython-users mailing list