Bug 691042

Summary: Change ugettext to gettext (for python 2.7 compatibility)
Product: [Fedora] Fedora Reporter: Elad Alfassa <elad>
Component: python-genshiAssignee: Jeffrey C. Ollie <jeff>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 15CC: jeff
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-04-08 06:25:29 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Elad Alfassa 2011-03-26 11:44:23 UTC
When trying to build fedoraproject.org in my local copy:

Traceback (most recent call last):
  File "build/build.py", line 116, in <module>
    main()
  File "build/build.py", line 113, in main
    process(args)
  File "build/build.py", line 35, in process
    process_dir(dirpath, filenames)
  File "build/build.py", line 66, in process_dir
    ).render(method='html', doctype='html')
  File "/usr/lib64/python2.7/site-packages/genshi/core.py", line 183, in render
    return encode(generator, method=method, encoding=encoding, out=out)
  File "/usr/lib64/python2.7/site-packages/genshi/output.py", line 57, in encode
    return _encode(''.join(list(iterator)))
  File "/usr/lib64/python2.7/site-packages/genshi/output.py", line 470, in __call__
    for kind, data, _ in stream:
  File "/usr/lib64/python2.7/site-packages/genshi/output.py", line 826, in __call__
    for kind, data, pos in stream:
  File "/usr/lib64/python2.7/site-packages/genshi/output.py", line 670, in __call__
    for kind, data, pos in stream:
  File "/usr/lib64/python2.7/site-packages/genshi/output.py", line 771, in __call__
    for kind, data, pos in chain(stream, [(None, None, None)]):
  File "/usr/lib64/python2.7/site-packages/genshi/output.py", line 586, in __call__
    for ev in stream:
  File "/usr/lib64/python2.7/site-packages/genshi/core.py", line 272, in _ensure
    event = stream.next()
  File "/usr/lib64/python2.7/site-packages/genshi/template/base.py", line 605, in _include
    for event in stream:
  File "/usr/lib64/python2.7/site-packages/genshi/template/markup.py", line 327, in _match
    for event in stream:
  File "/usr/lib64/python2.7/site-packages/genshi/template/base.py", line 545, in _flatten
    for kind, data, pos in stream:
  File "/usr/lib64/python2.7/site-packages/genshi/filters/i18n.py", line 666, in __call__
    gettext = self.translate.ugettext
AttributeError: 'function' object has no attribute 'ugettext'

See also: http://bugs.python.org/issue8508

Comment 1 Elad Alfassa 2011-04-08 06:25:29 UTC
It was a bug in our build script. sorry.