Re: xml2po (gnome-doc-utils)



Thanks to everyone who responded so promptly and helpfully to my plea for help. I'll try to reply to each here:

On 28/12/2005, at 10:56 AM, Abel Cheung wrote:

The python binding of libxml2 is probably missing from system.
You can search for file named libxml2.py under python install
location (assuming it's /usr/lib/python2.4 here)

Interesting: fink says I have python2.4, but /usr/lib shows a python2.3, not 2.4. Could I be missing a part?

$ find /usr/lib/python2.4 -name 'libxml2.py' -print

If it's not found, indeed you must install the missing part.

Not found (unsurprisingly, since there's no python2.4 dir in /usr/ lib). :(


Simos wrote:

xml2po is a Python script, therefore for libxml2 support you need the "libxml2 Python binding" package.
On Linux this is a package called "libxml2-python". Can you find such a package on OS/X?

No. :(

And fink doesn't list it.

Have a look at http://xmlsoft.org/python.html for some additional help.

dan wrote:

That looks like an error that python could not load the python libxml2
module (libxml2.py). I'm pretty sure OS X does not supply this module,
although it does include python2.3 and many other libxml2 and libxslt
tools.

You are quite right.

What exactly does "have libxml2 in my $PATH" mean?

Actually, I was wrong. The libxml2 directory is in /usr/include, not / usr/bin or similar, which is listed in my PATH:
____
Pearl:~/Vietnamese/Main Projects/Gnome/gnome-doc-utils clytie$ echo $PATH
/sw/bin:/sw/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/ X11R6/bin
____
Do you use
the fink package manager?

Yes, via the FinkCommander GUI, much easier for someone with as little personal RAM as I have. ;)


It doesn't list anything for libxml2-python, only libxml2, libxml2- bin and libxml2-shlibs, my outdated version of which I'm updating as I type.

I haven't started using DarwinPorts, but I've heard good things about it. I had a look under libxml:

http://darwinports.opendarwin.org/ports/? by=name&substr=libxml&Search=Submit

the last one, pyxml2, is that what I need?

I wanted to get into DarwinPorts anyway, so I'm installing it now. Hell hath no fury like a woman who can't install gnome-doc-utils. ;)

Danilo said:

Check your PYTHONPATH (it needs to point to libxml2 Python module, I
don't have a slightest idea where it might be installed on your
system; try searching for libxml2.py and libxml2mod.so, for me, they
are in /usr/lib/python2.4/site-packages/).

With "echo $PYTHONPATH"? I just got a blank line. :S

Do I need to install the whole gnome-doc-utils? Or is there something
else I need to do differently?

It's always better if you install it, since it checks for dependencies for you. You can run xml2po without installing just by accident, or at least every user should think about it that way. :)

Naturally, I want to be a right-thinking user. :)

I just tried installing it, switching to the gnome-doc-utils dir. and typing "./configure" (as usual, and as recommended in the INSTALL doc). I've never got this reaction before:
_____
Pearl:~/Vietnamese/Main Projects/Gnome/gnome-doc-utils clytie$ ./ configure
-bash: ./configure: No such file or directory
_____
There's a configure.in file, and a makefile.am. Do I need to change to a sub-directory? I wondered if I'd missed a file when I checked out the whole dir yesterday, but when I tried again today, cvs only updated a few of the ones I already had.


Somehow, this isn't turning out to be one of those quick, simple processes which let you get on with your translation... <sigh>

from Clytie (vi-VN, Vietnamese free-software translation team / nhÃm Viát hÃa phán mám tá do)
http://groups-beta.google.com/group/vi-VN





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]