View previous topic :: View next topic |
Author |
Message |
maverick6664 Guru
Joined: 13 May 2005 Posts: 413 Location: Tokyo / Japan
|
Posted: Sat Oct 17, 2009 10:24 am Post subject: [solved]ImportError: No module named libxml2 ? |
|
|
Hi all,
I'm upgrading gnome according to portage upgrade, and have a trouble building gnome-control-center. During its upgrade, I encountered Code: |
make[2]: Entering directory `/var/tmp/portage/gnome-base/gnome-control-center-2.26.0/work/gnome-control-center-2.26.0/help'
if ! test -d ja/; then mkdir ja/; fi
if [ -f "C/control-center.xml" ]; then d="../"; else d="/var/tmp/portage/gnome-base/gnome-control-center-2.26.0/work/gnome-control-center-2.26.0/help/"; fi; \
(cd ja/ && \
`which xml2po` -e -p \
"${d}ja/ja.po" \
"${d}C/control-center.xml" > control-center.xml.tmp && \
cp control-center.xml.tmp control-center.xml && rm -f control-center.xml.tmp)
xsltproc -o control-center-C.omf --stringparam db2omf.basename control-center --stringparam db2omf.format 'docbook' --stringparam db2omf.dtd "-//OASIS//DTD DocBook XML V4.1.2//EN" --stringparam db2omf.lang C --stringparam db2omf.omf_dir "/usr/share/omf" --stringparam db2omf.help_dir "/usr/share/gnome/help" --stringparam db2omf.omf_in "/var/tmp/portage/gnome-base/gnome-control-center-2.26.0/work/gnome-control-center-2.26.0/help/control-center.omf.in" --stringparam db2omf.scrollkeeper_cl "`scrollkeeper-config --pkgdatadir`/Templates/C/scrollkeeper_cl.xml" `/usr/bin/pkg-config --variable db2omf gnome-doc-utils` C/control-center.xml || { rm -f "control-center-C.omf"; exit 1; }
Traceback (most recent call last):
File "/usr/bin/xml2po", line 35, in <module>
import libxml2
ImportError: No module named libxml2
make[2]: *** [ja/control-center.xml] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/var/tmp/portage/gnome-base/gnome-control-center-2.26.0/work/gnome-control-center-2.26.0/help'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/gnome-base/gnome-control-center-2.26.0/work/gnome-control-center-2.26.0'
make: *** [all] Error 2
|
This is reproducible. dev-libs/libxml2 is installed.
What can I do to solve this?
Thanks in advance! _________________ Tetsuji Rai
a.k.a. Lukiest in the world
Last edited by maverick6664 on Sat Oct 17, 2009 1:54 pm; edited 1 time in total |
|
Back to top |
|
|
Mike Hunt Watchman
Joined: 19 Jul 2009 Posts: 5287
|
Posted: Sat Oct 17, 2009 11:41 am Post subject: |
|
|
Maybe you need to run python-updater ?
Check eselect python list it should be set to python2.6 |
|
Back to top |
|
|
maverick6664 Guru
Joined: 13 May 2005 Posts: 413 Location: Tokyo / Japan
|
Posted: Sat Oct 17, 2009 1:53 pm Post subject: |
|
|
Mike Hunt wrote: | Maybe you need to run python-updater ?
Check eselect python list it should be set to python2.6 |
bingo! Thank you very much.
I upgraded python to 2.6 and eselect python list pointed to 2.6, but forgot to run python-updater. After running python-updater, gnome-control-panel could be built.
Thanks again! _________________ Tetsuji Rai
a.k.a. Lukiest in the world |
|
Back to top |
|
|
Mike Hunt Watchman
Joined: 19 Jul 2009 Posts: 5287
|
Posted: Sat Oct 17, 2009 3:19 pm Post subject: |
|
|
You're vert welcome |
|
Back to top |
|
|
|