Traceback while generating docs

Gordon Tyler gordon at doxxx.net
Sat Jul 9 13:38:23 UTC 2011


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
 
I'm getting an error when generating the documentation on Mac OS X 10.6:
 
python tools/generate_docs.py -o doc/en/user-reference/index.txt rstx
Traceback (most recent call last):
  File "tools/generate_docs.py", line 106, in <module>
    main(sys.argv)
  File "tools/generate_docs.py", line 93, in main
    infogen_mod.infogen(options, outfile)
  File "bzrlib/doc_generate/autodoc_rstx.py", line 56, in infogen
    outfile.write(_get_body(params, topic_dir))
  File "bzrlib/doc_generate/autodoc_rstx.py", line 69, in _get_body
    result.append(_get_commands_section(registry, output_dir=topic_dir))
  File "bzrlib/doc_generate/autodoc_rstx.py", line 118, in
_get_commands_section
    text = cmd_object.get_help_text(plain=False, see_also_as_links=True)
  File
"/Users/gordon/Projects/bzr-mac-installers/trunk/bazaar.src/bzr/bzrlib/commands.py",
line 492, in get_help_text
    i18n.install()  # Install i18n only for get_help_text for now.
  File
"/Users/gordon/Projects/bzr-mac-installers/trunk/bazaar.src/bzr/bzrlib/i18n.py",
line 80, in install
    languages=lang.split(':'),
AttributeError: 'NoneType' object has no attribute 'split'
make: *** [doc/en/user-reference/index.txt] Error 1
 
I was able to workaround it by setting LANG=en in my shell before
running the build, but I've never had to do that before.
 
I think it would be a reasonable assumption for _get_current_locale() in
bzrlib.i18n to assume 'en' if it cannot find any other locale information.
 
Ciao,
Gordon
 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
 
iQEcBAEBAgAGBQJOGFnPAAoJEIrPJfWinA2ujlkH/jWbx/UX2sl/MhbJyW1PzP+W
9uIaO6o2NvY5auw6QpAiOQa3tOKMItsiSYjG0/1JMbrTvhC5ikG97D6shkonKVZQ
gmw7FSVh9Hnu3tvx5HclZXqyRImwam8DC2vW5+Vab/Gd5lXa2w/puhKlbxuf2Egq
ObdDLUDUoO5OM/ssDarpEEEiqafoAIuva0Z2BfNK2VyZKGzpilkE1qbnXDmM7jSf
L12K8s07odcRCZ53u1mf+NudCvSnTm3dcYFEWO0Ac4x5SjtkuaaptXA4u6IQhf0a
yyR445mwq3o8hJ6YBJICdXR+krIA4YuhTpLQrzgOFQMBXPKOvpzR/O9FeKWEc0U=
=u6G0
-----END PGP SIGNATURE-----




More information about the bazaar mailing list