After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 334256 - cvs fails to build -- 'list' object has no attribute 'split'
cvs fails to build -- 'list' object has no attribute 'split'
Status: RESOLVED NOTGNOME
Product: gnome-doc-utils
Classification: Deprecated
Component: build utils
CVS HEAD
Other Linux
: Normal normal
: ---
Assigned To: Danilo Segan
gnome-doc-utils maintainers
Depends on:
Blocks:
 
 
Reported: 2006-03-11 21:46 UTC by Elijah Newren
Modified: 2006-03-11 23:20 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Remove plural forms header from es.po (589 bytes, patch)
2006-03-11 22:56 UTC, Danilo Segan
none Details | Review
Fix for gettext.py (448 bytes, patch)
2006-03-11 23:02 UTC, Danilo Segan
none Details | Review

Description Elijah Newren 2006-03-11 21:46:37 UTC
Looks like the spanish translation borks the build:

Making all in gnome2-user-guide
/export/home/b/newrenTemp/gnome/gnome-user-docs/gnome2-user-guide
make[1]: Entering directory `/export/home/b/newrenTemp/gnome/gnome-user-docs/gnome2-user-guide'
if ! test -d es/; then mkdir es/; fi
case "." in /*) sd=".";; *) sd="../.";; esac; \
if [ -f "C/user-guide.xml" ]; then d="../"; else d="$sd/"; fi; \
(cd es/ && \
  `which xml2po` -e -p \
    "${d}es/es.po" \
    "${d}C/user-guide.xml" > user-guide.xml.tmp && \
    cp user-guide.xml.tmp user-guide.xml && rm -f user-guide.xml.tmp)
/export/home/b/newrenTemp/gnome/gnome-user-docs/gnome2-user-guide/es
Traceback (most recent call last):
  • File "/opt/gnome2/bin/xml2po", line 724 in ?
    doSerialize(doc)
  • File "/opt/gnome2/bin/xml2po", line 482 in doSerialize
    outtxt += doSerialize(child)
  • File "/opt/gnome2/bin/xml2po", line 476 in doSerialize
    (starttag, content, endtag, translation) = processElementTag(node, repl, 1)
  • File "/opt/gnome2/bin/xml2po", line 395 in processElementTag
    myrepl.append(processElementTag(child, myrepl, 1))
  • File "/opt/gnome2/bin/xml2po", line 407 in processElementTag
    translation = getTranslation(outtxt, isSpacePreserveNode(node))
  • File "/opt/gnome2/bin/xml2po", line 221 in getTranslation
    gt = gettext.GNUTranslations(file)
  • File "/opt/gnome2/lib/python2.4/gettext.py", line 177 in __init__
    self._parse(fp)
  • File "/opt/gnome2/lib/python2.4/gettext.py", line 300 in _parse
    v = v.split(';')
AttributeError: 'list' object has no attribute 'split'
make[1]: *** [es/user-guide.xml] Error 1
make[1]: Leaving directory `/export/home/b/newrenTemp/gnome/gnome-user-docs/gnome2-user-guide'
Comment 1 Brent Smith (smitten) 2006-03-11 22:01:08 UTC
I'm disabling spanish translations for now to get past this.  I actually just ran into this too.
Comment 2 Danilo Segan 2006-03-11 22:56:53 UTC
Created attachment 61106 [details] [review]
Remove plural forms header from es.po

Ugh, this is a Python gettext.py bug. The problem is with Plural-Forms header.  

Simply removing it from PO file should work, eg. I'm attaching a patch for es.po.
Comment 3 Danilo Segan 2006-03-11 23:02:12 UTC
Created attachment 61107 [details] [review]
Fix for gettext.py

This is a fix for gettext.py that fixes things. I'll submit it upstream. I may even consider including gettext.py in xml2po instead.