Ticket #436 (new defect)

Opened 2 years ago

yumdownloader crashes with UnicodeDecodeError

Reported by: goeran Assigned to: skvidal
Priority: minor Milestone:
Component: yum-utils Version:
Keywords: Cc:

Description

Whenever I run yumdownloader in my regular account, I get an exception with this backtrace

Traceback (most recent call last):
  File "/usr/bin/yumdownloader", line 318, in <module>
    util = YumDownloader()
  File "/usr/bin/yumdownloader", line 50, in __init__
    self.main()
  File "/usr/bin/yumdownloader", line 87, in main
    self.downloadPackages(opts)
  File "/usr/bin/yumdownloader", line 247, in downloadPackages
    path = repo.getPackage(download, checkfunc=checkfunc)
  File "/usr/lib/python2.6/site-packages/yum/yumRepo.py", line 840, in getPackage
    if self._preload_pkg_from_system_cache(package):
  File "/usr/lib/python2.6/site-packages/yum/yumRepo.py", line 1712, in _preload_pkg_from_system_cache
    destfn = os.path.join(self.pkgdir, pname)
  File "/usr/lib64/python2.6/posixpath.py", line 70, in join
    path += '/' + b
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 14: ordinal not in range(128)

If I would dare a guess, it would be that this is because my home directory contains non-ASCII characters (/home/göran). But I haven't tried to do any debugging myself.

This happens on a Fedora system with yum-utils-1.1.24-2.fc12.noarch