I got the same problem here.
The problem is yum will not work with python 2.5. The solution is install
python 2.4, and patch
yum's source code to let it use python 2.4 instead of python 2.5.
I found the patch and the binary .deb file from ubuntu forum. After that,
yum is working. But ubuntu
update notifier keeps on telling me yum needs be updated. Just skip it.
But I forgot the forum links now. You need google it yourself.
regards,
Guo
On Thu, Aug 28, 2008 at 2:22 AM, axel lin <[EMAIL PROTECTED]> wrote:
> hi list,
> My host is Ubuntu8.04.
> I'm using latest version of moblin-image-creator ( by git )
>
> I got below error messages while adding menlow-lpia-moblin2 platform
>
> Setting new status label: Creating the project chroot environment
> Creating rootstrap directory with yum...
> Exec command: yum -y
> --installroot=/home/axel/moblin/menlow-lpia-moblin2 install yum
> yum-protectbase
> There was a problem importing one of the Python modules
> required to run yum. The error leading to this problem was:
>
> No module named cElementTree
>
> Please install a package which provides this module, or
> verify that the module is installed correctly.
>
> It's possible that the above module doesn't match the
> current version of Python, which is:
> 2.5.2 (r252:60911, Jul 31 2008, 17:28:52)
> [GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)]
>
> If you cannot solve this problem yourself, please send this
> message to <[EMAIL PROTECTED]>.
>
> Traceback (most recent call last):
> File "/usr/share/pdk/lib/gui.py", line 369, in on_new_project_clicked
> proj = self.sdk.create_project(dialog.path, dialog.name,
> dialog.desc, self.sdk.platforms[platformName])
> File "/usr/share/pdk/lib/SDK.py", line 224, in create_project
> if platform.createChroot(install_path, use_rootstrap, callback =
> self.progress_callback) == False:
> File "/usr/share/pdk/lib/Platform.py", line 206, in yumCreateChroot
> self.__yumCreateRootstrap(chroot_dir, rootstrap_file,
> use_rootstrap, callback = callback)
> File "/usr/share/pdk/lib/Platform.py", line 233, in __yumCreateRootstrap
> raise RuntimeError(_("Failed to create Yum based rootstrap"))
> RuntimeError: Failed to create Yum based rootstrap
>
>
> I have python-celementtree installed.
> [EMAIL PROTECTED]:~$ dpkg -l |grep python-celementtree
> ii python-celementtree 1.0.5-9
> Light-weight toolkit for XML processing
>
> [EMAIL PROTECTED]:~$ dpkg -l |grep python2.5
> ii python2.5 2.5.2-2ubuntu4.1
> An interactive high-level object-oriented
> la
> ii python2.5-dev 2.5.2-2ubuntu4.1
> Header files and a static library for
> Python
> ii python2.5-minimal 2.5.2-2ubuntu4.1
> A minimal subset of the Python language
> (ver
>
> I have python2.5 install on my host.
> Why above message shows current version of Python is 2.5.2 ?
>
> Regards,
> Axel
>
> _______________________________________________
> dev mailing list
> [email protected]
> https://www.moblin.org/mailman/listinfo/dev
>
_______________________________________________
dev mailing list
[email protected]
https://www.moblin.org/mailman/listinfo/dev