[Yum] Re: about the urlgrabber

Michael Stenner mstenner at ece.arizona.edu
Tue Sep 7 16:35:57 UTC 2004

On Tue, Sep 07, 2004 at 11:24:44AM -0500, Harry Putnam wrote:
> > 1) test it with urlgrabber directly.  Run "python" from the command
> >    line and then type in these commands:
> >
> >>>> from urlgrabber.grabber import URLGrabber
> >>>> g = URLGrabber()
> >>>> g.urlgrab('ftp://username:passowrd@server.com/path/to/file')
> Michael, hope you are still with me... sorry to reply so late..

I'm not going anywhere :)

> I cannot get past the first line.  When I hit <ENTER> to add the next
> line of input I get this error
>   >>> from urlgrabber.grabber import URLGrabber
>   Traceback (most recent call last):
>     File "<stdin>", line 1, in ?
>   ImportError: No module named urlgrabber.grabber

Hmm.. ok

  rpm -q fedora-release
  rpm -q yum
  rpm -qa python\*
  rpm -ql yum | grep urlgrabber

> Does something else need to be loaded first?  Or am I entering it
> wrong"
>  I typed `python' <ENTER>
> from urlgrabber.grabber import URLGrabber <ENTER>

No.  I think that should work.

> > 2) Try your url with another client.  I know the same syntax won't
> >    work, so remove the username:password part and just enter them the way
> >    that client expects you to.
> The url scheme works ok with ncftp:
> ncftp -u xxxxx -p xxxxx ftp://reader.local.net0:~/no_bak/fedraw
> Lands me inside the /home/reader/no_bak/fedraw directory which is 
> really a symlink to /mnt/pack/fedraw

Ok.  That's good information.  It could still be ftplib being dumb.
When we get direct access to urlgrabber working (above), then try some
different paths - ones without symlinks, etc.

  Michael D. Stenner                            mstenner at ece.arizona.edu
  ECE Department, the University of Arizona                 520-626-1619
  1230 E. Speedway Blvd., Tucson, AZ 85721-0104                 ECE 524G

More information about the Yum mailing list