Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 162532 - glsa-check reports UnicodeEncodeError
Summary: glsa-check reports UnicodeEncodeError
Status: RESOLVED DUPLICATE of bug 162493
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Tools (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage Tools Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-17 13:19 UTC by Timo
Modified: 2007-01-17 13:24 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***