2017-08-16 15:04 UTC

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0013660Buildsyscentpkgpublic2017-08-11 11:25
ReporterSandro Bonazzola 
PrioritynormalSeverityminorReproducibilityhave not tried
StatusnewResolutionopen 
Summary0013660: yum - UnicodeEncodeError on Could not retrieve mirrorlist
Description

  File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 3455, in searchPackageProvides
    where = self.returnPackagesByDep(arg)
  File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 4281, in returnPackagesByDep
    return self.pkgSack.searchProvides(depstring)
  File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 1074, in <lambda>
    pkgSack = property(fget=lambda self: self._getSacks(),
  File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 778, in _getSacks
    self.repos.populateSack(which=repos)
  File "/usr/lib/python2.7/site-packages/yum/repos.py", line 347, in populateSack
    self.doSetup()
  File "/usr/lib/python2.7/site-packages/yum/repos.py", line 158, in doSetup
    self.ayum.plugins.run('postreposetup')
  File "/usr/lib/python2.7/site-packages/yum/plugins.py", line 188, in run
    func(conduitcls(self, self.base, conf, **kwargs))
  File "/usr/lib/yum-plugins/fastestmirror.py", line 197, in postreposetup_hook
    if downgrade_ftp and _len_non_ftp(repo.urls) == 1:
  File "/usr/lib/python2.7/site-packages/yum/yumRepo.py", line 876, in <lambda>
    urls = property(fget=lambda self: self._geturls(),
  File "/usr/lib/python2.7/site-packages/yum/yumRepo.py", line 873, in _geturls
    self._baseurlSetup()
  File "/usr/lib/python2.7/site-packages/yum/yumRepo.py", line 822, in _baseurlSetup
    mirrorurls.extend(self._getMirrorList())
  File "/usr/lib/python2.7/site-packages/yum/yumRepo.py", line 1974, in _getMirrorList
    print "Could not retrieve mirrorlist %s error was\n%s: %s" % (url, e.args[0], misc.to_unicode(e.args[1]))
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe8' in position 180: ordinal not in range(128)

I was using Italian as system language and accessing directly yum API for oVirt/RHV OTOPI project.

OTOPI detected:
2017-08-11 13:18:21,151+0200 DEBUG otopi.context context.dumpEnvironment:771 ENV BASE/exceptionInfo=list:'[(<type 'exceptions.UnicodeEncodeError'>, UnicodeEncodeError('ascii', u'Could not retrieve mirrorlist htt
p://mirrorlist.centos.org/?release=7&arch=x86_64&repo=os&infra=stock error was\n14: curl#7 - "Failed to connect to 2001:1b48:203::4:10: La rete non \xe8 raggiungibile"', 180, 181, 'ordinal not in range(128)'), <
traceback object at 0x111fb00>)]'

# rpm -qv yum
yum-3.4.3-150.el7.centos.noarch


TagsNo tags attached.
Attached Files

-Relationships
+Relationships

-Notes
There are no notes attached to this issue.
+Notes

-Issue History
Date Modified Username Field Change
2017-08-11 11:25 Sandro Bonazzola New Issue
+Issue History