From: timotheemathieu--- via Bug reports for GNU Guix <bug-guix@gnu.org>
To: 71567@debbugs.gnu.org
Subject: bug#71567: python tkinter library not found in guix shell
Date: Sat, 15 Jun 2024 12:22:32 +0200 (CEST) [thread overview]
Message-ID: <ea-mime-666d6b68-a54-6131190c@mailo.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 1491 bytes --]
Hello,
I want to use guix shell for development environment with python, and more precisely, I want to usethe tkinter library in python.
According to https://issues.guix.gnu.org/20889 I believed that tkinter should be automatically included into python but when I launch
guix shell -CN python tk tcl -- python3 -m tkinter
I get
Traceback (most recent call last):
File "/gnu/store/1w5v338qk5m8khcazwclprs3znqp6f7f-python-3.10.7/lib/python3.10/runpy.py", line 187, in _run_module_as_main
mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
File "/gnu/store/1w5v338qk5m8khcazwclprs3znqp6f7f-python-3.10.7/lib/python3.10/runpy.py", line 146, in _get_module_details
return _get_module_details(pkg_main_name, error)
File "/gnu/store/1w5v338qk5m8khcazwclprs3znqp6f7f-python-3.10.7/lib/python3.10/runpy.py", line 110, in _get_module_details
__import__(pkg_name)
File "/gnu/store/1w5v338qk5m8khcazwclprs3znqp6f7f-python-3.10.7/lib/python3.10/tkinter/__init__.py", line 37, in <module>
import _tkinter # If this fails your Python may not be configured for Tk
ModuleNotFoundError: No module named '_tkinter'
whereas, python3 -m tkinter works perfectly well on the host OS (which is a foreign os, not guix-SD). I did a guix pull pretty recently, guix is up to date.
Is this a bug or is there a specific way to install python so that we get tkinter at the same time ?
Thanks.
[-- Attachment #2: Type: text/html, Size: 1717 bytes --]
next reply other threads:[~2024-06-16 13:58 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-15 10:22 timotheemathieu--- via Bug reports for GNU Guix [this message]
2024-06-16 14:09 ` bug#71567: python tkinter library not found in guix shell Tobias Geerinckx-Rice via Bug reports for GNU Guix
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
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ea-mime-666d6b68-a54-6131190c@mailo.com \
--to=bug-guix@gnu.org \
--cc=71567@debbugs.gnu.org \
--cc=timotheemathieu@mailoo.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.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).