Suppose the following: #! /usr/bin/python import librepo MIRROR="""https://mirrors.fedoraproject.org/metalink?repo=fedora-17&arch=x86_64""" PKG="Packages/p/pakchois-0.4-5.x86_64.rpm" if __name__ == "__main__": h = librepo.Handle() destdir="./out" h.setopt(librepo.LRO_MIRRORLIST, MIRROR) h.setopt(librepo.LRO_REPOTYPE, librepo.LR_YUMREPO) h.setopt(librepo.LRO_DESTDIR, destdir) h.download(PKG) It is going to download PKG into the "out" directory below the current working directory. If this directory exists, the .rpm is downloaded there. If the directory doesn't exist or if the current user doesn't have the necessary rights to it, librepo fails in both cases with: Traceback (most recent call last): File "./download.py", line 15, in <module> h.download(PKG) File "/home/akozumpl/repos/librepo/build/librepo/python/librepo/__init__.py", line 708, in download self.download_package(url, dest, checksum_type, checksum, base_url, resume) _librepo.Exception: (14, 'Input/Output error', None) And it is very hard for the client programmer to debug what the exact cause is. Could you please provide the more detailed I/O error in the error message too?
This bug appears to have been reported against 'rawhide' during the Fedora 19 development cycle. Changing version to '19'. (As we did not run this process for some time, it could affect also pre-Fedora 19 development cycle bugs. We are very sorry. It will help us with cleanup during Fedora 19 End Of Life. Thank you.) More information and reason for this action is here: https://fedoraproject.org/wiki/BugZappers/HouseKeeping/Fedora19
Librepo 1.0.0 has a more detailed error messages. Moreover since 1.0.0 there is possibility to set a own debug log handler https://github.com/Tojaj/librepo/wiki/Debugging-applications-using-Librepo
librepo-1.0.0-1.fc19 has been submitted as an update for Fedora 19. https://admin.fedoraproject.org/updates/librepo-1.0.0-1.fc19
Package librepo-1.0.0-1.fc19, dnf-0.3.11-2.git54f55e0.fc19: * should fix your issue, * was pushed to the Fedora 19 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing librepo-1.0.0-1.fc19 dnf-0.3.11-2.git54f55e0.fc19' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2013-15734/dnf-0.3.11-2.git54f55e0.fc19,librepo-1.0.0-1.fc19 then log in and leave karma (feedback).
librepo-1.0.0-1.fc19, dnf-0.3.11-2.git54f55e0.fc19 has been pushed to the Fedora 19 stable repository. If problems still persist, please make note of it in this bug report.