[Yum] URLGrabber returns IOError

Michael Stenner mstenner at ece.arizona.edu
Sat Apr 8 19:53:31 UTC 2006

On Thu, Apr 06, 2006 at 12:57:53PM -0500, Dylan Tack wrote:
> I have a new install of Fedora Core 5, and am having some trouble with 
> yum.  Any ideas would be appreciated.
> When I run yum, I get the following error:
> [Errno 4] IOError: <urlopen error (11, 'Resource temporarily 
> unavailable')>

Someone else has been discussing this problem with me on bugzilla.
I'm cc-ing him on this email, but it would be great to have the
disucssion move to bugzilla.  Dylan, please add yourself to that bug
and put future responses there.


I haven't figured out what's going on yet, but disabling keepalive
might help you work around the problem.  I would love to have your
help finding it, though, so if you could poke around in keepalive to
see what's going on, that would be great.  I haven't been able to
reproduce the problem myself so I'm kinda relying on help from others.
This should make Jim happy, though... it probably means it's not
misconfiguration of his system.

> A packet sniffer showed no traffic in our out, so I then suspected a 
> problem with URLGrabber.  A test script confirmed this:
> #!/usr/bin/python
> from urlgrabber.grabber import URLGrabber
> g = URLGrabber()
> data = g.urlread("http://linux.duke.edu/")
> print data
> This test script fails with a similar IOError (the traceback is pasted 
> at the end).  I also have the strace output here, if it's useful:
> http://genome.uiowa.edu/~djtack/URLGrabber-test-strace.txt (233 kb).
>    raise URLGrabError(4, _('IOError: %s') % (e, ))
> urlgrabber.grabber.URLGrabError: [Errno 4] IOError: <urlopen error (2, 
> 'No such file or directory')>

OK, that's crazy.  That's a very different error message and the
strace confuses me.  It looks like it's trying to read grabber.py
itself.  I don't get that at all.  I wonder if it's some sort of
urlparsing problem.  Can you both grab the latest urlgrabber source
and do a "make test"?


  Michael D. Stenner                            mstenner at ece.arizona.edu
  ECE Department and Optical Sciences Center                520-626-1619
  University of Arizona                                         ECE 524G

More information about the Yum mailing list