All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jens Lucius <jenslucius@freenet.de>
To: Gary Thomas <gary@mlbassoc.com>, yocto@yoctoproject.org
Subject: Re: Is Python Tkinter available for Yocto
Date: Fri, 04 Apr 2014 17:36:47 +0200	[thread overview]
Message-ID: <533ED18F.9050604@freenet.de> (raw)
In-Reply-To: <533EC4F1.1020305@mlbassoc.com>

Am 04.04.2014 16:42, schrieb Gary Thomas:
> On 2014-04-04 08:34, Jens Lucius wrote:
>>> I am a little bit confused if Python Tkinter is included as a package for python in the Yocto system.
>>>
>>> - There is a patch for python recipe called "avoid_warning_about_tkinter.patch" which states "_tkinter module needs tk module along with tcl. tk is not yet integrated in yocto so
>>> we skip the check for this module. Avoid a warning by not adding this module to missing variable."
>>> - I have included in my recipe: "python-core python-tkinter" which gave no error, but no tkinter installed and I have tried including "python-core python-modules" which gave me a
>>> lot of python modules, but still no tkinter. (tried "from Tkinter import *" which gave an error and no tkinter in /usr/lib/python2.7)
>>>
>>> Do I manually need to install another package? Is it included or not? Do I need to do my own recipe?
>> To answer my own question:
>>
>> Yes Tkinter is included in Python build but as the patch states it needs tcl as well as tk with tcl already included in Yocto and tk not.
>>
>> Andrei Gherzan wrote a .bb for OE-Core for tk version 8.5.11 which did work for me after bumping it to the latest version 8.6.1.
>>
>> If anybody needs it or wants to integrate it in Yocto here is the bb: (just remember to include tk and tcl in your build or add dependencies for them in python).
>>
>> http://pastebin.com/tRGk0U0c
> Note: there was already a recipe for tk 8.6.0 in meta-oe (always a
> good place to check for missing pieces before crafting your own)
>
Actually there is. Don´t know why I missed that. I just started with 
yocto this week and still get confused where to best look for recipes. 
There is the old openembedded, meta-oe, oe-core/meta, yocto and some are 
floating around in other gits. Would be really nice to have one place to go.

But thanks again for pointing to the meta-oe where I will also look for 
recipes in the future.


  reply	other threads:[~2014-04-04 15:38 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-01 18:59 Is Python Tkinter available for Yocto Jens Lucius
2014-04-04 14:34 ` Jens Lucius
2014-04-04 14:42   ` Gary Thomas
2014-04-04 15:36     ` Jens Lucius [this message]
2014-04-04 16:35       ` Paul Barker
2014-04-10 21:40 ` Building python module after compiling in one recipe Jens Lucius

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=533ED18F.9050604@freenet.de \
    --to=jenslucius@freenet.de \
    --cc=gary@mlbassoc.com \
    --cc=yocto@yoctoproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.