[Scons-users] error with gettext (translate) on some systems

Philipp Kraus philipp.kraus at flashpixx.de
Fri Oct 5 08:57:39 EDT 2012


Hi,

I have reinstalled my Scons version and set Gentoos default python
version with eselect to the 2.7.
After this, Scons works fine and find the gettext installation.
I can not determine why this problem exists, I think it can be a
problem with the two Python version on
the system. IMHO another solution can be a virtuel environment for
scons like http://pypi.python.org/pypi/virtualenv

Phil



On 2012-09-24 11:20:21 +0200, Kraus Philipp said:


>

> Am 23.09.2012 um 22:37 schrieb Gary Oberbrunner:

> You can say:

> env.Tool("gettext")

> after you construct the environment. But if gettext is in the standard

> path, this probably won't help.

>

> it won't help, than I need a look to the GetText script. It is a little

> bit strange

>

>

> On Sep 23, 2012 4:18 PM, "Kraus Philipp" <philipp.kraus at flashpixx.de> wrote:

>

> Am 23.09.2012 um 22:06 schrieb Gary Oberbrunner:

>

> > On Sun, Sep 23, 2012 at 6:49 AM, Kraus Philipp

> > <philipp.kraus at flashpixx.de> wrote:

> >> Hello,

> >>

> >> I'm using the translate builder for creating translation file. On some

> >> systems it works fine, but on other (my Linux) the

> >>

> >> env = Environment( variables=vars, tools = ["default", "gettext"], BUILDERS

> >> = { ... } )

> >>

> >> creates an error: EnvironmentError No tool named 'gettext' not a Zip file

> >>

> >> On my OSX gettext / msginit is found and works, on my Linux the error is

> >> shown, but gettext and its tools are installed.

> >>

> >> How can I solve the problem, so the gettext files are found or can I check

> >> if the tools exists and modify the env = Environment call, so that no error

> >> is occurs

> >

> > Where is your gettext executable?

>

> on the system which does not work on the default path "/usr/bin/"

> (default path)

>

>

> > Look in Tools/GettextCommon.py to

> > see how it looks for gettext; you might need to set env['ENV']['PATH']

> > to include your dir if it's in an unusual place.

>

> I can not push the path to env, because the constructor of env creates

> the error message.

> After the constructor call I set the PATH, but I can not construct env,

> because the if I set

>

> tools = ["default", "gettext"]

>

> the constructor crashs, if I remove it, env is created and I can work

> with them, but then I can not

> call the Translate builder etc

>

> Phil

>

> _______________________________________________

> Scons-users mailing list

> Scons-users at scons.org

> http://four.pairlist.net/mailman/listinfo/scons-users

> _______________________________________________

> Scons-users mailing list

> Scons-users at scons.org

> http://four.pairlist.net/mailman/listinfo/scons-users

>

> _______________________________________________

> Scons-users mailing list

> Scons-users at scons.org

> http://four.pairlist.net/mailman/listinfo/scons-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://four.pairlist.net/pipermail/scons-users/attachments/20121005/8f7985e9/attachment.htm>


More information about the Scons-users mailing list