[Sugar-devel] Generating a pot file without the setup script ?

laurent bernabe laurent.bernabe at gmail.com
Wed May 25 02:08:55 EDT 2011


It worked :) ! Thank you

2011/5/25 James Cameron <quozl at laptop.org>

> On Sat, May 21, 2011 at 07:30:04PM +0200, laurent bernabe wrote:
> > I tried generating pot from sugar image, but i had a python error (i went
> in ~/
> > Activities/LearningActivity.activity/ folder)
> > $ ./setup.py genpot
> > => errors :
> >  Traceback (most recent call last):
> >   File "./setup.py", line 24, in <module>
> >     bundlebuilder.start()
> >   File "/opt/sweets/sugar-toolkit/src/sugar/activity/bundlebuilder.py",
> line
> > 382, in start
> >     globals()['cmd_' + args[0]](config, args[1:])
> >   File "/opt/sweets/sugar-toolkit/src/sugar/activity/bundlebuilder.py",
> line
> > 344, in cmd_genpot
> >     retcode = subprocess.call(args)
> >   File "/usr/lib/python2.6/subprocess.py", line 480, in call
> >     return Popen(*popenargs, **kwargs).wait()
> >   File "/usr/lib/python2.6/subprocess.py", line 633, in __init__
> >     errread, errwrite)
> >   File "/usr/lib/python2.6/subprocess.py", line 1139, in _execute_child
> >     raise child_exception
> > OSError: [Errno 2] No such file or directory
> >
> > So, how could i correct it ?
>
> Install the gettext package.
>
> (The error shows that xgettext binary cannot be called by the
> subprocess.  I looked at line 382 in
> sugar-toolkit/src/sugar/activity/bundlebuilder.py to find out what it
> was doing and saw xgettext was referenced, so it is likely that you
> haven't got it installed.)
>
> --
> James Cameron
> http://quozl.linux.org.au/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20110525/71c09fd9/attachment.html>


More information about the Sugar-devel mailing list