Re: [Gimp-docs] No module named libxml2

2012-09-22 Thread Kolbjørn Stuestøl

Den 21.09.2012 21:03, skreiv Ulf-D. Ehlert:

On Thu, Sep 20, 2012 at 10:48:38PM +0200, Kolbjørn Stuestøl wrote:

Den 15.09.2012 23:25, skreiv Kolbjørn Stuestøl:

Den 15.09.2012 20:27, skreiv Ulf-D. Ehlert:

On Sat, Sep 15, 2012 at 06:26:42PM +0200, Kolbjørn Stuestøl wrote:

...

Neither does make check-images-nn works as suggested, but I think
this is another question.
Error messages?

After listing the orphaned images in English and Norwegian (the list
looks normal to me) the following message occurred:
/bin/sh: line 8: 2084 Aborted python
tools/validate_references.py --verbose --broken --orphaned
--imgdir=images/C,images/nn
Makefile: 1611: recipe for target 'check-image-references' failed
make[1]: *** [check-image-references] Error 134
Makefile:1622: recipe for target 'check-images-nn' failed
make: ***  [check-images-nn] Error 2

Yet another strange Cygwin problem? It works fine for me (tested
de and nn).

Do you still get the error message if you call the script directly:

 python tools/validate_references.py -vob -i images/C,images/nn

Ulf
The program acted as before, i.e. listed the 19 orphaned images, and 
then output: Aborted. No further messages.

So, it looks like it is doing what it is intended to do. :-)
I do not know about programming in Python, but it looks like being 
similar to  many other programming languages so perhaps I have a closer 
look at it some day.


I reinstalled Cygwin for the third time and now make html-xx does not work:
*** Making html for nn ...
I/O error : Attempt to load network entity 
http://www.docbook.org/xml/4.3/docbookx.dtd
xml/nn/gimp.xml:2: warning: failed to load external entity 
http://www.docbook.org/xml/4.3/docbookx.dtd;
//OASIS//DTD DocBook XML V4.3//EN 
http://www.docbook.org/xml/4.3/docbookx.dtd;


So still something to do.
This was discussed in this forum some years back but I am not able to 
find it. As I remember gimp-help is using Docbook 4.5. I also have to 
figure out how to set the pointer to a local file.


Kolbjoern


___
gimp-docs-list mailing list
gimp-docs-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gimp-docs-list


Re: [Gimp-docs] No module named libxml2

2012-09-22 Thread Kolbjørn Stuestøl

Den 22.09.2012 17:35, skreiv Kolbjørn Stuestøl:

Den 21.09.2012 21:03, skreiv Ulf-D. Ehlert:

On Thu, Sep 20, 2012 at 10:48:38PM +0200, Kolbjørn Stuestøl wrote:

Den 15.09.2012 23:25, skreiv Kolbjørn Stuestøl:


I reinstalled Cygwin for the third time and now make html-xx does not 
work:

*** Making html for nn ...
I/O error : Attempt to load network entity 
http://www.docbook.org/xml/4.3/docbookx.dtd
xml/nn/gimp.xml:2: warning: failed to load external entity 
http://www.docbook.org/xml/4.3/docbookx.dtd;
//OASIS//DTD DocBook XML V4.3//EN 
http://www.docbook.org/xml/4.3/docbookx.dtd;


So still something to do.
This was discussed in this forum some years back but I am not able to 
find it. As I remember gimp-help is using Docbook 4.5. I also have to 
figure out how to set the pointer to a local file.


Kolbjoern


Solution: Installed Docbook 4.3. Now make html-xx works
Perhaps it is not necessary to use the Docbook 4.5 version?

Kolbjoern


___
gimp-docs-list mailing list
gimp-docs-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gimp-docs-list


Re: [Gimp-docs] No module named libxml2

2012-09-20 Thread Kolbjørn Stuestøl

Error mesages in check-images-xx
Error message in check_image_resolutions.sh

Den 15.09.2012 23:25, skreiv Kolbjørn Stuestøl:

Den 15.09.2012 20:27, skreiv Ulf-D. Ehlert:

On Sat, Sep 15, 2012 at 06:26:42PM +0200, Kolbjørn Stuestøl wrote:

...


Neither does make check-images-nn works as suggested, but I think
this is another question.
Error messages?
After listing the orphaned images in English and Norwegian (the list 
looks normal to me) the following message occurred:
/bin/sh: line 8: 2084 Aborted python tools/validate_references.py 
--verbose --broken --orphaned --imgdir=images/C,images/nn

Makefile: 1611: recipe for target 'check-image-references' failed
make[1]: *** [check-image-references] Error 134
Makefile:1622: recipe for target 'check-images-nn' failed
make: ***  [check-images-nn] Error 2

As far as I have tested them, the other programs like make  and git 
 works as I expects.

Kolbjoern


...

Ulf 


___
gimp-docs-list mailing list
gimp-docs-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gimp-docs-list


[Gimp-docs] No module named libxml2

2012-09-15 Thread Kolbjørn Stuestøl

Moving my work on GIMP to another computer I run into some problems.

Example:
make validate-nn
Result:
[XML] xml/nn/filters/alpha-to-logo.xml
Traceback (most recent call last):
File .tools/xml2po.py, line 191, in module
mainsys.argv[1:]
File .tools/xml2po.py, line 88, in Main
from xml2po import Main
File /bin/GIMP/gimp-help-2/tools/xml2po/__init__.py, line 27, in 
module

import libxml2
ImportError: No module named libxml2

Running python 2.6.
I do not know about programming in Python.
I do have a libxml2/libxml directory installed ( in usr/include/libxml2) 
but no separate files with this name.

Question: Where is __init__.py looking for includes?
How to fix this?
Other fixes needed?

Neither does make check-images-nn works as suggested, but I think this 
is another question.

I am running Cygwin on Windows 7.

By now I am running Cygwin on another computer, and it works. I know 
that I could copy the complete Cygwin directory from this computer, but 
choosed to install from scratch to learn a bit about how to do it.


Some years ago there was a thread in this forum about installing the 
programs needed for translating GIMP Help, also on Cygwin, but alas I am 
not able to find it.


Kolbjoern Stuestoel
___
gimp-docs-list mailing list
gimp-docs-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gimp-docs-list


Re: [Gimp-docs] No module named libxml2

2012-09-15 Thread Ulf-D. Ehlert
On Sat, Sep 15, 2012 at 06:26:42PM +0200, Kolbj�rn Stuest�l wrote:
 Moving my work on GIMP to another computer I run into some problems.
 
 Example:
 make validate-nn
 Result:
 [XML] xml/nn/filters/alpha-to-logo.xml
 Traceback (most recent call last):
 File .tools/xml2po.py, line 191, in module
 mainsys.argv[1:]
 File .tools/xml2po.py, line 88, in Main
 from xml2po import Main
 File /bin/GIMP/gimp-help-2/tools/xml2po/__init__.py, line 27,
 in module
 import libxml2
 ImportError: No module named libxml2
 
 Running python 2.6.
 I do not know about programming in Python.
 I do have a libxml2/libxml directory installed ( in
 usr/include/libxml2) but no separate files with this name.
 Question: Where is __init__.py looking for includes?

Usually Python is looking for
/usr/lib*/python*/site-packages/libxml2.py
(try python -c import sysconfig; print sysconfig.get_path('sitelib')).

 How to fix this?

Install package libxml2-python (or similar, I don't know Cygwin).

 Other fixes needed?
 
 Neither does make check-images-nn works as suggested, but I think
 this is another question.

Error messages?

 I am running Cygwin on Windows 7.

This (Windows) *is* a bug... ;-)

Ulf

-- 
Wer beleidigt, braucht nicht unrecht haben; es gibt Köpfe, denen
man erst Verstand liefern müßte, um sie überzeugen zu können.
-- Karlheinz Deschner
___
gimp-docs-list mailing list
gimp-docs-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gimp-docs-list


Re: [Gimp-docs] No module named libxml2

2012-09-15 Thread Kolbjørn Stuestøl

Den 15.09.2012 20:27, skreiv Ulf-D. Ehlert:

On Sat, Sep 15, 2012 at 06:26:42PM +0200, Kolbj�rn Stuest�l wrote:

Moving my work on GIMP to another computer I run into some problems.

Example:
make validate-nn
Result:
[XML] xml/nn/filters/alpha-to-logo.xml
Traceback (most recent call last):
 File .tools/xml2po.py, line 191, in module
 mainsys.argv[1:]
 File .tools/xml2po.py, line 88, in Main
 from xml2po import Main
 File /bin/GIMP/gimp-help-2/tools/xml2po/__init__.py, line 27,
in module
 import libxml2
ImportError: No module named libxml2

Running python 2.6.
I do not know about programming in Python.
I do have a libxml2/libxml directory installed ( in
usr/include/libxml2) but no separate files with this name.
Question: Where is __init__.py looking for includes?

Usually Python is looking for
/usr/lib*/python*/site-packages/libxml2.py
(try python -c import sysconfig; print sysconfig.get_path('sitelib')).

The prog. did not found sysconfig


How to fix this?

Install package libxml2-python (or similar, I don't know Cygwin).

Did it, but same error message.

Other fixes needed?

Neither does make check-images-nn works as suggested, but I think
this is another question.

Error messages?
I deleted all Cygwin installations to clean it up and to give it a new 
try. Do not remember the messages. Will be back as soon as I finished 
reinstalling. I.e. next week. Some other things to do this weekend.

I am running Cygwin on Windows 7.

This (Windows) *is* a bug... ;-)
Well, I really do not disagree, but I had to use DOS and later Windows 
because of my job.

Kolbjoern


Ulf




--
Kolbjørn Stuestøl, Stuestøl, 4580 Lyngdal
Telefon: (47) 38 34 78 62,  (47) 917 81 125
Stuestøl heimesider:http://www.stuestoel.no
Sjå også
Lyngdal hagelag:http://www.stuestoel.no/hagelag/hagelag.php
Mandal og Lister pyntegrøntlag:http://www.mlpynt.no
GIMP på norsk:http://www.gimp.no

___
gimp-docs-list mailing list
gimp-docs-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gimp-docs-list