[poky] Error in Python modules dependency for UFW package

chinmaya hoshing cahoshing at gmail.com
Tue Jul 26 07:45:06 PDT 2011


Hi,

I am trying to pull UFW package in poky for sandybrige machine.
I have written a recipe for it and also it is building successfully.
But when I run the binary ufw (after installing the rootfs) I get error
related to python Modules.
(Adding to this I have added python in depends in ufw recipe.)
Error  getting in python modules are for : getttext ,locale,codecs,encodings

The error is follows :
      ImportError: No module named gettext

(same for the said other files)

These files come from python-codecs pacakge which is described in
 recipe-devtools/python/python-2.6-manifest.inc

I have tried including python-codecs in my image recipe as below :
IMAGE_INSTALL = "... python python-codecs ..."
But I get error in building do_rootfs as follows  :
Collected errors:
|  * satisfy_dependencies_for: Cannot satisfy the following dependencies for
python-codecs:
|  * python-lang *
|  * opkg_install_cmd: Cannot install package python-codecs.

After this I tried to include those files in python-core package itself by
editing  python_2.6.6.bb
(I included following line)
FILES_${PN}-core += "${libdir}/python${PYTHON_MAJMIN}/*"
from above line python-core should include all the files in my rootfs .But
still I am not getting the above python-codecs files in it.

I have checked the source for python
i.ebuild/tmp/work/atom-poky-linux/python-2.6.6-nk1.1/image/usr/lib/python2.6
folder the python-codecs files are present in it , and also after
installing rootfs I am not getting these files so I checked in
build/tmp/work/atom-poky-linux/python-2.6.6-nk1.1/packages-split/python-core/usr/lib/python2.6
,here these files are not present ( may be so my  ufw binary is not working
)

So please can you guide me where I am getting wrong or am I missing
something.

Regards
Chinmaya
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/poky/attachments/20110726/6bb8819a/attachment.html>


More information about the poky mailing list