Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 162532

Summary: glsa-check reports UnicodeEncodeError
Product: Portage Development Reporter: Timo <tv>
Component: ToolsAssignee: Portage Tools Team <tools-portage>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Timo 2007-01-17 13:19:02 UTC
My daily glsa-check -t all (which runs after a emerge --sync, which is also run nightly) aborted. I ran it manually an got this:

Traceback (most recent call last):
  File "/usr/bin/glsa-check", line 252, in ?
    myglsa = Glsa(myid, glsaconfig)
  File "/usr/lib/gentoolkit/pym/glsa.py", line 414, in __init__
    self.read()
  File "/usr/lib/gentoolkit/pym/glsa.py", line 432, in read
    self.parse(urllib.urlopen(myurl))
  File "/usr/lib/gentoolkit/pym/glsa.py", line 470, in parse
    self.description = getText(myroot.getElementsByTagName("description")[0], format="xml")
  File "/usr/lib/gentoolkit/pym/glsa.py", line 233, in getText
    return str(rValue)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 8: ordinal not in range(128)

Running glsa-check -l aborts with a similar error message right after GLSA '200701-11 [U] Kronolith: Local file inclusion ( www-apps/horde-kronolith )'

Traceback (most recent call last):
  File "/usr/bin/glsa-check", line 170, in ?
    myglsa = Glsa(myid, glsaconfig)
  File "/usr/lib/gentoolkit/pym/glsa.py", line 414, in __init__
    self.read()
  File "/usr/lib/gentoolkit/pym/glsa.py", line 432, in read
    self.parse(urllib.urlopen(myurl))
  File "/usr/lib/gentoolkit/pym/glsa.py", line 470, in parse
    self.description = getText(myroot.getElementsByTagName("description")[0], format="xml")
  File "/usr/lib/gentoolkit/pym/glsa.py", line 233, in getText
    return str(rValue)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 8: ordinal not in range(128)

I did an emerge --sync on another machine and could reproduce the error. Before the sync it was working.

Reproducible: Always
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-01-17 13:24:12 UTC

*** This bug has been marked as a duplicate of bug 162493 ***