All of lore.kernel.org
 help / color / mirror / Atom feed
* Error in Python modules dependency for UFW package
@ 2011-07-26 14:45 chinmaya hoshing
  2011-07-27  5:37 ` chinmaya hoshing
  2011-07-27 15:52 ` Joshua Lock
  0 siblings, 2 replies; 5+ messages in thread
From: chinmaya hoshing @ 2011-07-26 14:45 UTC (permalink / raw)
  To: poky

[-- Attachment #1: Type: text/plain, Size: 1831 bytes --]

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

[-- Attachment #2: Type: text/html, Size: 2924 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Error in Python modules dependency for UFW package
  2011-07-26 14:45 Error in Python modules dependency for UFW package chinmaya hoshing
@ 2011-07-27  5:37 ` chinmaya hoshing
  2011-07-27 15:52 ` Joshua Lock
  1 sibling, 0 replies; 5+ messages in thread
From: chinmaya hoshing @ 2011-07-27  5:37 UTC (permalink / raw)
  To: poky

[-- Attachment #1: Type: text/plain, Size: 13 bytes --]

-
Chinmaya

[-- Attachment #2: Type: text/html, Size: 102 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Error in Python modules dependency for UFW package
  2011-07-26 14:45 Error in Python modules dependency for UFW package chinmaya hoshing
  2011-07-27  5:37 ` chinmaya hoshing
@ 2011-07-27 15:52 ` Joshua Lock
  2011-07-27 16:04   ` Koen Kooi
  1 sibling, 1 reply; 5+ messages in thread
From: Joshua Lock @ 2011-07-27 15:52 UTC (permalink / raw)
  To: poky

On Tue, 2011-07-26 at 20:15 +0530, chinmaya hoshing wrote:
> 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 
> 

You could try adding the required python packages to the runtime
dependencies of your UFW recipe:

RDEPENDS += "python-codecs python-blah"

Joshua

-- 
Joshua Lock
        Yocto Project "Johannes factotum"
        Intel Open Source Technology Centre



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Error in Python modules dependency for UFW package
  2011-07-27 15:52 ` Joshua Lock
@ 2011-07-27 16:04   ` Koen Kooi
  2011-07-27 16:16     ` Joshua Lock
  0 siblings, 1 reply; 5+ messages in thread
From: Koen Kooi @ 2011-07-27 16:04 UTC (permalink / raw)
  To: Joshua Lock; +Cc: poky


Op 27 jul. 2011, om 17:52 heeft Joshua Lock het volgende geschreven:

> On Tue, 2011-07-26 at 20:15 +0530, chinmaya hoshing wrote:
>> 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 
>> 
> 
> You could try adding the required python packages to the runtime
> dependencies of your UFW recipe:
> 
> RDEPENDS += "python-codecs python-blah"

RDEPENDS_${PN} += bla

> 
> Joshua
> 
> -- 
> Joshua Lock
>        Yocto Project "Johannes factotum"
>        Intel Open Source Technology Centre
> 
> _______________________________________________
> poky mailing list
> poky@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/poky



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Error in Python modules dependency for UFW package
  2011-07-27 16:04   ` Koen Kooi
@ 2011-07-27 16:16     ` Joshua Lock
  0 siblings, 0 replies; 5+ messages in thread
From: Joshua Lock @ 2011-07-27 16:16 UTC (permalink / raw)
  To: Koen Kooi; +Cc: poky

On Wed, 2011-07-27 at 18:04 +0200, Koen Kooi wrote:
> Op 27 jul. 2011, om 17:52 heeft Joshua Lock het volgende geschreven:
> 
> > On Tue, 2011-07-26 at 20:15 +0530, chinmaya hoshing wrote:
> >> 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 
> >> 
> > 
> > You could try adding the required python packages to the runtime
> > dependencies of your UFW recipe:
> > 
> > RDEPENDS += "python-codecs python-blah"
> 
> RDEPENDS_${PN} += bla

Thanks Koen!

*drinks coffee*

Joshua
-- 
Joshua Lock
        Yocto Project "Johannes factotum"
        Intel Open Source Technology Centre



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-07-27 16:17 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-26 14:45 Error in Python modules dependency for UFW package chinmaya hoshing
2011-07-27  5:37 ` chinmaya hoshing
2011-07-27 15:52 ` Joshua Lock
2011-07-27 16:04   ` Koen Kooi
2011-07-27 16:16     ` Joshua Lock

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.