All of lore.kernel.org
 help / color / mirror / Atom feed
From: Chris Tapp <opensource@keylevel.com>
To: yocto@lists.yoctoproject.org
Subject: Enabling tk for Python tkinter module
Date: Tue, 28 Sep 2021 22:58:43 +0100	[thread overview]
Message-ID: <D8593103-F731-447D-96B1-40DA4BD326AE@keylevel.com> (raw)

I am trying to get PySimpleGUI running on an RPi4 using meta-raspberrypi with hardknott.

I have created a recipe for PySimpleGUI and added the following to my local.conf:

PACKAGECONFIG_pn-python3 = “tk”
IMAGE_INSTALL_append = " python3 python3-modules python3-pysimplegui tk"

However, the tkinter module fails to load, reporting “No module named _tkinter”, with a note above saying that Python may not be configured for Tk.

Looking on the target, /usr/lib/libtk.8.so is present.

It looks as if there is something else I need to do to get Python to build correctly, but I’m out of ideas ;-)

I’ve found a few bits on the internet that seem related, but they haven’t helped me get things going:
 https://www.mail-archive.com/yocto@yoctoproject.org/msg18232.html
 https://www.yoctoproject.org/pipermail/yocto/2014-July/020547.html

Any pointers on where to look would be appreciated.

--

Chris Tapp
opensource@keylevel.com
www.keylevel.com



             reply	other threads:[~2021-09-28 21:58 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-28 21:58 Chris Tapp [this message]
2021-09-29  1:21 ` [yocto] Enabling tk for Python tkinter module Tim Orling
2021-09-29  9:47   ` Chris Tapp

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=D8593103-F731-447D-96B1-40DA4BD326AE@keylevel.com \
    --to=opensource@keylevel.com \
    --cc=yocto@lists.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.